Hi,
To ensure that we have proper version/platform/compiler information,
please make sure you fill out the appropriate problem report form
(PRF), which is in
$ACE_ROOT/PROBLEM-REPORT-FORM
$TAO_ROOT/PROBLEM-REPORT-FORM
or in
$ACE_ROOT/BUG-REPORT-FORM
$TAO_ROOT/BUG-REPORT-FORM
in older versions of ACE+TAO. Make sure to include this information
when asking any questions about ACE+TAO since otherwise we have to
"guess" what version/platform/compiler/options you've using, which is
error-prone and slows down our responsiveness.
>> I am using ACE_SOCK_Dgram in my client and server. If I start one
>> client and one server, then server recevies all the packets
>> successfully.
>>
>> But if I start more than one client simultaneously, then server does
>> not receive all the packets and send and recv methods are not throwing
>> any errors .
That's no surprise - you're probably sending the packets faster than
the kernel can allocate buffer space for them.
>> Do I need to set any flag in send and recv methods of ACE_SOCK_Dgram ?
No, that won't make any differencde - plus, there are no such flags.
>> My clients and server are running on the same machine. So UDP packets
>> should not get misplaced..
That assumption is misplaced - you can't assume ANYTHING about the
reliability of UDP. If you want to make sure all the packets are
received, you'll either need to use TCP, UNIX domain sockets, or
implement a retransmission layer atop UDP.
Take care,
Doug
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Institute for Software Integrated Systems WEB:
www.dre.vanderbilt.edu/~schmidt
Vanderbilt University, Nashville TN, 37203 NET: d.schmidt@...