send and looping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I ahve a small question on using send with sockets.
On normal circumstances can I assume that "send always
sends specified bytes completely" or Do I need to
check for the return value and continue looping till
I send the complete data.

 The man pgaes of send say that send normally blocks
 when there is no buffer space left. But the man  
 pages  of select_tut say that "send" is not assured
of
 sending the complete data.

 Can somebody suggestme on what approach do I need to 
take. Hope this is the right place to ask this 
question.

 Thanks and Regards,
 --thomas






http://movies.yahoo.com.au - Yahoo! Movies
- What's on at your local cinema?
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux