Sending with Asynchronous Sockets
I know how to accept, recieve, and read with Asynchronous sockets but I am not sure how I should be sending data. If I call send() does it send the data right away or does it just post a FD_WRITE message, and than I send it in my FD_WRITE handler? Should I be using WSASend() instead of send()?
But if I just use send() does the data get sent right away? Or do I have to do something in FD_WRITE?
The data is sent right away. You have to be careful, because if the other end is a bit slow, then it''s buffer may fill up, and send() will block until the other end is ready. That''s no good if you need to be doing other things. Generally, send() is OK though. Especially if you receive lots and send little.
codeka.com - Just click it.
codeka.com - Just click it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement