![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Real-Time In Real Life | iBot | Cartoons for Geeks | 0 | 05-18-2009 06:30 PM |
| Get real value from real-time systems | iBot | Complex Event Processing RSS News | 0 | 01-14-2008 02:10 AM |
| capturing real time | wisher115 | UNIX for Dummies Questions & Answers | 2 | 09-22-2006 10:26 PM |
| EPOCH to real time? | TheEngineer | UNIX for Advanced & Expert Users | 5 | 07-18-2006 09:30 AM |
| log users real time | chanfle | UNIX for Dummies Questions & Answers | 3 | 03-22-2006 05:31 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
problem with real-time
hello every1,
i'm very hope so anyone here have experience with lib rt like aio linux based. In first I've a problem with receiving data from aio_buf, i.e. I have received it, but if the next data size less then pervious I've got a noise from a socket. I've tried to fix it by different ways, but unfortunately still didn't. And second... Standard i\o doesn't work here, how I can write to socket handle so as to reply on received message? Code:
char *buf;
// whatever
static const struct aiocb *list[5] = {&a_read,NULL,NULL,NULL,NULL};
ret = aio_read( &a_read );
while (aio_suspend( list, 5, NULL ) == 0){
ret = aio_read( &a_read );
puts(&a_read.aio_buf[0]);
buf[10]="1234567\n";
write(sock, buf, 11);
};
Quote:
|
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|