public override void SetEncoderDecoder(PacketEncoder packetEncoder, PacketDecoder packetDecoder)
 {
     _encoder?.Dispose();
     _decoder?.Dispose();
     _encoder = packetEncoder;
     _decoder = packetDecoder;
 }
 public SocketSshConnection(ILogger logger, SequencePool sequencePool, Socket socket) :
     base(sequencePool)
 {
     _logger        = logger;
     _socket        = socket;
     _receiveBuffer = sequencePool.RentSequence();
     _sendBuffer    = sequencePool.RentSequence();
     _decoder       = new PacketDecoder(SequencePool);
     _encoder       = new PacketEncoder();
 }
Exemple #3
0
 public abstract void SetEncoderDecoder(PacketEncoder packetEncoder, PacketDecoder packetDecoder);