// 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(); }
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); }
public void Close() { if (!m_disposed) { m_readAllHelper = null; Serializer = null; SerializerAsync = null; Deserializer = null; DeserializerAsync = null; Client.Close(); Client = null; m_disposed = true; } }
// Constructor public AmTcpMuxer(SslEgg egg) { RemoteEndPoint = (IPEndPoint)egg.TcpSocket.Client.RemoteEndPoint; m_client = egg.SslStream; m_stream = new ReadAggregatorWritePassthrough(m_client); }