public NetworkClient(IProtocolInterpreter interpreter, INetworkStrategy networkStrategy) : base(networkStrategy) { this._bufferedPackages = new List <ByteArray>(); this._backupPackages = new List <ByteArray>(); this._interpreter = interpreter; }
public NetworkServer(IProtocolInterpreter interpreter, INetworkStrategy networkStrategy) : base(networkStrategy) { this._clients = new Dictionary <int, ClientSession>(); this._disconnectedClients = new Dictionary <int, ClientSession>(); this._interpreter = interpreter; }
public NetworkClient(IProtocolInterpreter interpreter) : this(interpreter, new TcpNetworkStrategy()) { }
public ProtocolOrchestratorService(IProtocolParser protocolParser, IProtocolInterpreter protocolInterpreter) { _protocolParser = protocolParser; _protocolInterpreter = protocolInterpreter; }