I wrote my own multi-player server. Everything is functioning fine.
It's amazing to get to play my game against others..
However, I have a serious latency issue.
The biggest problem so far:
I am using TCP/IP over WIFI.
The clients are Android-Java, and the server is JAVA-Windows.
I do not think I want to resort to using UDP, as I am doing Lock-Step so I need a reliable & ordered stream.
My bandwidth requirements are trivial ( < 1kbps )
I have noticed that latency is a bit high (hundreds of milliseconds over WiFi LAN). As I am new to this I am wondering, is there anything I can do to reduce TCP latency?
Right now I am calling flush() after every write() to the outputstream. It is not good enough.
My implementation is very naive (this is my first time), so I am probably overlooking some very simple solutions here.
Edited by SillyCow, 30 July 2013 - 02:26 PM.