I am attempting to write a reliable udp protocol, however I am confused as to when the server hands the connection over to a socket. In java, a tcp server listens on a specific port then on accept, returns a socket.
Socket clientSocket = server.accept();
Does the accept method return a socket after the syn bit exchange or when the state is Established?