Portal Home > Knowledgebase > Articles Database > send() on non-blocking socket


send() on non-blocking socket




Posted by VPSForge-Ray, 11-14-2011, 07:47 AM
Should I check the socket if its writeable before using send()? I do not need to check if the data that I need to send will be sent or not. Is it bad to just issue send() to the socket even if the data will not be sent for whatever reason (eg: buffer is full) Am I wrong that adding select would just add more overhead to the software than just sending the data and forget about it even if its sent or not?

Posted by fabin, 11-14-2011, 08:03 AM
In general, if you are able to bind() or accept() the connection, then send() can be used to send data. Which language are you using?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Backups (Views: 797)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.