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