hi HGM,hgm wrote:I am now checking how I can port this to Linux, but I get the impression that all this socket stuff is pretty much platform independent. Is it really a matter of just changing a few #includes?
Good project, very useful as well.
Sockets work diff under linux than windows. Both claim to be easier, but it's a pain for communication over the internet.
I have Diep already for many years working over network via GUI.
Your protocol is not sufficient. It's too easy to hack and mess up in this manner.
What's needed is things like password as well and in accepting GUI you need also DoS.
What i do there for chess server i built is use non-blocking manners. Also the protocol specs i have here for DEP protocol seem interesting.
A thing i stumbled upon is you need a reconnect. I have implemented that in DEP protocol.
So DEP protocol sees no difference between whether data gets from the NET or from a GUI.
You use a special GUI to GUI protocol here. Maybe let's set it up correct, will be most interesting
I'll dig up what i do there in Diep for you (engine can act as a server) for DEP protocol (diep engine protocol by the way):