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); }
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); }