Exemplo n.º 1
0
 public ListenPortToRemoteEndpointForwardService(SOCKServer parent)
 {
     Parent = parent;
     RemoteClient = new SocketClient();
     Listener = new SocketListener();
     Listener.OnNewConnection += new SocketListener.DelegateNewConnectedSocket(Listener_OnNewConnection);
     RemoteClient.ReceiveHandlerBytes += new SocketClient.SocketReceiveHandler(RemoteClient_ReceiveHandlerBytes);
     RemoteClient.DisconnectHandler += new SocketClient.SocketEventHandler(RemoteClient_DisconnectHandler);
 }
Exemplo n.º 2
0
 public SOCKSServerSession(Socket s, SOCKServer parent)
 {
     Init(s, null);
     Parent = parent;
     ConnectClient = new SocketClient();
     ConnectClient.DisconnectHandler += new SocketEventHandler(ConnectClient_DisconnectHandler);
     ConnectClient.ReceiveHandlerBytes += new SocketReceiveHandler(ConnectClient_ReceiveHandlerBytes);
 }