示例#1
0
        // Constructor
        public AmTcpDemuxer(SslEgg egg)
        {
            RemoteEndPoint = (IPEndPoint)egg.TcpSocket.Client.RemoteEndPoint;
            m_client       = egg.SslStream;
            m_stream       = new ReadAggregatorWritePassthrough(m_client);

            m_serviceThread = new Thread(serviceLoop);
            m_serviceThread.Start();
        }
示例#2
0
 public FtClient(SslStream sslClient)
 {
     Client            = sslClient;
     m_readAllHelper   = new ReadAggregatorWritePassthrough(sslClient);
     Serializer        = new SerializationAdapter(m_readAllHelper);
     SerializerAsync   = new SerializationAdapterAsync(m_readAllHelper);
     Deserializer      = new DeserializationAdapter(m_readAllHelper);
     DeserializerAsync = new DeserializationAdapterAsync(m_readAllHelper);
 }
示例#3
0
        public void Close()
        {
            if (!m_disposed)
            {
                m_readAllHelper   = null;
                Serializer        = null;
                SerializerAsync   = null;
                Deserializer      = null;
                DeserializerAsync = null;

                Client.Close();
                Client = null;

                m_disposed = true;
            }
        }
示例#4
0
 // Constructor
 public AmTcpMuxer(SslEgg egg)
 {
     RemoteEndPoint = (IPEndPoint)egg.TcpSocket.Client.RemoteEndPoint;
     m_client       = egg.SslStream;
     m_stream       = new ReadAggregatorWritePassthrough(m_client);
 }