kelphis Posted October 4, 2005 Posted October 4, 2005 how do you flush the data from an asyncronous tcp socket? apparently the tcp socket likes to decide when it wants to send the data based on the packet size. Quote
Diesel Posted October 7, 2005 Posted October 7, 2005 There's no such thing as an asynchronous tcp socket. The data over the socket is being sent asynchronously using tcp, but it is still a regular socket. You could send datagram packets on the socket at the same time. Anyway, once data is sent, you can't do anything but read it and throw it out if you don't want it. If your not performing handshaking, it would help. Quote
kelphis Posted October 20, 2005 Author Posted October 20, 2005 How would hand shaking help? And how would i do that? i just need to know how to flush a socket. I cant believe that they are designed the way they are. Why would the socket just let data sit in its buffer forever until a desirable amount of data is sent. There should be some way around this. Quote
rot13 Posted December 14, 2005 Posted December 14, 2005 ... You can send single bytes if you want. Show us your code. Quote
HJB417 Posted December 14, 2005 Posted December 14, 2005 disable nagle algorithm using setsocketoptions. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.