Пример #1
0
 public Client(ClientBuilderOptions options,
               IPacketSerialiser packetSerialiser,
               IClientPacketProcessor packetProcessor,
               ILogger logger)
 {
     this.options          = options;
     this.packetSerialiser = packetSerialiser;
     this.packetProcessor  = packetProcessor;
     this.logger           = logger;
 }
Пример #2
0
 public Client(ClientBuilderOptions options,
               IPacketSerialiser packetSerialiser,
               IClientPacketProcessor packetProcessor,
               ILogger <Client> logger)
 {
     this.options          = options;
     this.packetSerialiser = packetSerialiser;
     this.packetProcessor  = packetProcessor;
     this.logger           = logger;
     this.pingPacketBuffer = Encoding.ASCII.GetBytes("aaaaaaaaaaaaaaaaaaaaaaaa");
     this.pingOptions      = new PingOptions(64, true);
 }
Пример #3
0
 public UdpClientSender(IClient client, IClientPacketProcessor clientPacketProcessor)
 {
     _client = client;
     clientPacketProcessor.SetUdpSocketSender(this);
 }