Added listen method and pending connections management in TCPSocketServer class