PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

I need TCP_NODELAY !!!!!!!!

Hello,

I need to use this socket option! I found that it does not work. Is it true ? Can I make it work ??
Can we read your mind and know what you’re doing… no
:) sorry.
The problem is that I'm writing a multiplayer game on PPC platform. It will run over bluetooth and wifi media. The BT part is ready and working but there is a problem with wifi. It uses TCP and winsock, in my network model the server performs one send each frame, so 32 per second. The issue with TCP is that it accumulates data that user want to send and pushes them in bigger packets . This generates ping around 200ms what is very wrong for my network model. So there is a socket option called TCP_NODELAY that turns off the data accumulation. I used it on PC and it worked great, but results obtained on PPC and google says that there is/was a bug in the PPC winsock library and the TCP_NODELAY does not work. I want to ask if there is a possibility to patch or something the socket lib so this socket option will work.

No I can't and wont change my network model, I know that UDP solves the problem but I would prefer to not use it.
If TCP_NODELAY doesn't work for some reason (weird), then your only alternative is to use UDP. Life is not easy.
Why don't you query TCP_MAXSEG and send that amount of data each frame?

Dan East