Hello all, I want to implement TCP protocol using Java. I've read Sun documentation and examples but all of them simply open a socket, client waits for server to accept the connection and then sends data.
I wonder how I can implement the three way handshake and data validation using Java? How do server and client exchange sequence number? Does Java provide any class/methods (or at least interface) to implement three way handshake?
Can someone please give me some ideas, or link to some examples?
Thanks in advance,