Example #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();
        }
Example #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();
        }