Exemplo n.º 1
0
        private void CreateTransmitter()
        {
            if (_transmitter != null)
            {
                _transmitter.Sent        -= TransmitterOnSent;
                _transmitter.SocketError -= Shutdown;
            }

            _transmitter              = _factory.CreateLetterTransmitter(Socket);
            _transmitter.Sent        += TransmitterOnSent;
            _transmitter.SocketError += Shutdown;
            _transmitter.Start();
        }
Exemplo n.º 2
0
        private void CreateTransmitter()
        {
            if(_transmitter != null) {
                _transmitter.Sent -= TransmitterOnSent;
                _transmitter.SocketError -= Shutdown;
            }

            _transmitter = _factory.CreateLetterTransmitter(Socket);
            _transmitter.Sent += TransmitterOnSent;
            _transmitter.SocketError += Shutdown;
            _transmitter.Start();
        }