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