Example #1
0
 /// <summary>
 /// This method should be called when the channel has been opened.
 /// </summary>
 public void HandleChannelOpened()
 {
     Transport = new AnpTransport(Sock);
     Status = EAnpThreadChannelStatus.Open;
     Worker.NotifyChannelOpened(ChannelID);
 }
Example #2
0
 public EAnpServerThreadChannel(EAnpServerThread thread, Socket sock)
     : base(thread)
 {
     Sock = sock;
     Transport = new AnpTransport(Sock);
     Status = EAnpThreadChannelStatus.Handshake;
 }
Example #3
0
 /// <summary>
 /// Close the connection to ktlstunnel.
 /// </summary>
 public void Disconnect()
 {
     tunnel.Disconnect();
     transport = null;
 }
Example #4
0
 /// <summary>
 /// Kill ktlstunnel.
 /// </summary>
 public void Terminate()
 {
     tunnel.Terminate();
     transport = null;
 }
Example #5
0
 /// <summary>
 /// Create an AnpTransport when the tunnel is connected.
 /// </summary>
 public void CreateTransport()
 {
     transport = new AnpTransport(tunnel.EndTls());
     transport.BeginRecv();
 }