The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-12-2009
quant quant is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 1
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:
first

second

third


fourth

fourth an half

five
h an half
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0