public void Listen(int port) { if (ServerSocket != null) { throw new Exception("Socket already running!"); } ServerSocket = ServerSocketBuilder.Build(); ServerSocket.listen(port); }
public void Listen(int port) { if (ServerSocket != null) { throw new Exception("Socket already running!"); } ServerSocket = ServerSocketBuilder.Build(); ServerSocket.listen(port); }