public Server(IO.Context context, ConnectionCallback callback, ITcpServerSocket socket, bool closeOnEnd = false) { this.callback = callback; this.socket = socket; this.closeOnEnd = closeOnEnd; this.Context = context; }
public HttpServer(Context context, HttpConnectionCallback callback, ITcpServerSocket socket, bool closeOnEnd = false) { this.callback = callback; this.socket = socket; this.closeOnEnd = closeOnEnd; this.Context = context; }
public void Dispose() { if (socket != null) { socket.Dispose(); socket = null; } }