[Ace-users] [ace-users] Subject: Proactor: Linux proactor always returns errno 14 (Bad Address) with UDP socket

alexander libman alexander.libman at earthlink.net
Fri Feb 22 10:54:48 CST 2008


In addition to my previous message:
actually  using  aio_read instead of recvmsg can work,  but you will lose the address where the message came from.
To substitute sendmsg with aio_write  UDP socket should be in "connected" mode, as connect for UDP just specifies default address to send messages.



-----Original Message-----
>From: alexander libman <alexander.libman at earthlink.net>
>Sent: Feb 22, 2008 10:42 AM
>To: "Douglas C. Schmidt" <schmidt at dre.vanderbilt.edu>, fernando.fcavalcanti at gmail.com, ace-users at cse.wustl.edu
>Subject: Re: [ace-users] Subject: Proactor: Linux proactor always	returns	errno 14 (Bad Address) with UDP socket
>
>
>Hi all,
>
>ACE_Proactor does not support UDP for POSIX as there are no POSIX API calls such 
>imaginable aio_recvmsg and aio_sendmsg.
>read  -> aio_read
>write -> aio_write
>recvmsg -> ???
>sendmsg -> ???
>
>Thank you,
>Alex
>
> 
>
>
>-----Original Message-----
>>From: "Douglas C. Schmidt" <schmidt at dre.vanderbilt.edu>
>>Sent: Feb 21, 2008 8:58 PM
>>To: fernando.fcavalcanti at gmail.com, ace-users at cse.wustl.edu
>>Subject: Re: [ace-users] Subject: Proactor: Linux proactor always returns	errno 14 (Bad Address) with UDP socket
>>
>>Hi Fernando,
>>
>>>ACE_POSIX_Asynch_Read_Dgram_Result::complete (...) and
>>>ACE_POSIX_Asynch_Write_Dgram_Result::complete (...) also needed to be
>>>updated so as to move the pointers in the message block when we read/
>>>send bytes asynchronously.
>>>
>>>
>>>I will continue posting here all changes I make locally... I have no
>>>clue how to update the actual ACE distribution code or what is the
>>>process on submitting bug fixes.
>>
>>Pleaes see
>>
>>ACE_ROOT/docs/ACE-bug-process.html
>>
>>for information on how to submit fixes.  The ACE_POSIX_Asynch stuff is
>>old and not widely tested - largely because async I/O on POSIX
>>OS platforms hasn't been very stable historically.  If you can help
>>improve this stuff it would be great.  If you have any question about
>>the process after reading that webpage please let us know.
>>
>>Thanks,
>>
>>        Doug
>>
>>-- 
>>Dr. Douglas C. Schmidt                       Professor and Associate Chair
>>Electrical Engineering and Computer Science  TEL: (615) 343-8197
>>Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
>>Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu
>>
>>_______________________________________________
>>ace-users mailing list
>>ace-users at mail.cse.wustl.edu
>>http://mail.cse.wustl.edu/mailman/listinfo/ace-users
>
>_______________________________________________
>ace-users mailing list
>ace-users at mail.cse.wustl.edu
>http://mail.cse.wustl.edu/mailman/listinfo/ace-users



More information about the Ace-users mailing list