public Client(ClientBuilderOptions options, IPacketSerialiser packetSerialiser, IClientPacketProcessor packetProcessor, ILogger logger) { this.options = options; this.packetSerialiser = packetSerialiser; this.packetProcessor = packetProcessor; this.logger = logger; }
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); }
public UdpClientSender(IClient client, IClientPacketProcessor clientPacketProcessor) { _client = client; clientPacketProcessor.SetUdpSocketSender(this); }