Networking Forums

Networking Forums > Computer Networking > Linux Networking > Why failing sendto/send transmit complete datagram/packet anyway??

Reply
Thread Tools Display Modes

Why failing sendto/send transmit complete datagram/packet anyway??

 
 
maruk2@hotmail.com
Guest
Posts: n/a

 
      06-14-2007, 06:13 PM
I ran some tests with UDP sendto() and TCP send() under heavy
traffic.
Even though the tests were on Windows Vista using Winsock 2.2,
only the standard BSD socket functions were used.
All sockets were non-blocking.

I noticed that when sendto/send fail with error code WSAENOBUFS
(insufficient buffer space or full queue), or WSAEWOULDBLOCK
(non-blocking socket operation could not be completed immediately)
then the corresponding datagram or packet was transmitted anyway
and the remote client received it.

Is it expected?

I assumed sendto/send failing with return value < 0 and any
error code do not send any data.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using sendto(...) with packet sockets? jan.chludzinski@gmail.com Linux Networking 0 05-14-2008 03:13 PM
How to send out a packet urgently? Bill Unruh Linux Networking 8 11-28-2007 06:13 PM
Does anyone know how to send UDP packet through HTTP proxy? feiman Linux Networking 2 02-12-2007 09:15 PM
About send packet with BROADCAST addr? Who can help me. bighead_csu@hotmail.com Linux Networking 3 06-05-2006 05:50 AM
How to send a packet to wake on lan steve Windows Networking 0 02-12-2004 02:30 PM



1 2 3 4 5 6 7 8 9 10 11