Jump to content
  • Advertisement
Sign in to follow this  
CRACK123

flushing write buffer immediately after a write request

This topic is 4375 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am doing some socket programming on Solaris and when I write some code it seems to get stuck at a write request from client to the browser. Is there any way to force a write buffer to flushed on a socket. I tried TCP_NODELAY but it does not seem to work Thanks

Share this post


Link to post
Share on other sites
Advertisement
You can't really flush (unless you try the fsync() system call).
If you set TCP_NODELAY to 1 correctly, then it should stop the holding back of data, assuming the receiving end is ready to receive (i e, there's an open window available).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!