public ClientCommand(TcpClient tcp) : base(tcp)
 {
     id = nextID;
     nextID++;
     StringBufferForCommands = new StringBuilder();
     SendBuffer = new StringBuilder();
     commands   = new Queue <BaseCommand>();
     counterOfReceivedCommand           = 0;
     counterOfSentCommand               = 0;
     EventHandlersListForClientCommand += new ClientSocketActionEventHandlerForClientCommand(ReceiveNewCommand);
 }
Пример #2
0
 public ClientCommand(TcpClient tcp)
     : base(tcp)
 {
     id = nextID;
     nextID++;
     StringBufferForCommands = new StringBuilder();
     SendBuffer = new StringBuilder();
     commands = new Queue<BaseCommand>();
     counterOfReceivedCommand = 0;
     counterOfSentCommand = 0;
     EventHandlersListForClientCommand += new ClientSocketActionEventHandlerForClientCommand(ReceiveNewCommand);
 }