Exemple #1
0
 /// <summary>
 /// Should not be used. (use TcpConnectionManager.GetTcpCommandSender() instead)
 /// </summary>
 /// <param name="connection"></param>
 public TcpCommandSender(Socket connection, CommandConverter converter)
     : base(connection, converter.LengthInBytes + TcpCommandMessage.MESSAGE_NUMBER_LENGTH, converter)
 {
     ACK_MESSAGE_SIZE = messageGenerator.GetAckMessageSize();
 }
 public TcpMessageGenerator(CommandConverter converter)
 {
     commandConverter = converter;
 }
Exemple #3
0
 protected TcpCommandIOBase(Socket connection, int receiveBufferSize, CommandConverter commandConverter)
 {
     Connection       = connection;
     receiveBuffer    = new byte[receiveBufferSize];
     messageGenerator = new TcpMessageGenerator(commandConverter);
 }
 /// <summary>
 /// should not be used. (use TcpConnectionManager.GetTcpCommandReceiver() instead)
 /// </summary>
 /// <param name="connection"></param>
 public TcpCommandReceiver(Socket connection, CommandConverter converter)
     : base(connection, connection.ReceiveBufferSize, converter)
 {
 }