Example #1
0
 ///// <summary>
 ///// TCP 服务客户端套接字数据发送
 ///// </summary>
 //internal new ClientSocketSender Sender;
 /// <summary>
 /// TCP 服务客户端套接字
 /// </summary>
 /// <param name="ipAddress"></param>
 /// <param name="port"></param>
 /// <param name="log"></param>
 /// <param name="maxInputSize"></param>
 internal ClientSocket(IPAddress ipAddress, int port, ILog log, int maxInputSize) : base(ipAddress, port, log, maxInputSize)
 {
     ClientCommand.Command command = ClientCommand.CheckCommand.Get(this);
     command.FreeLock = 1;
     CommandQueue     = command;
 }
Example #2
0
 ///// <summary>
 ///// TCP 服务客户端套接字数据发送
 ///// </summary>
 //internal new ClientSocketSender Sender;
 /// <summary>
 /// TCP 服务客户端套接字
 /// </summary>
 /// <param name="ipAddress"></param>
 /// <param name="port"></param>
 /// <param name="log"></param>
 /// <param name="maxInputSize"></param>
 internal ClientSocket(IPAddress ipAddress, int port, ILog log, int maxInputSize) : base(ipAddress, port, log, maxInputSize)
 {
     ClientCommand.Command command = ClientCommand.CheckCommand.Get(this);
     Interlocked.Exchange(ref command.FreeLock, 1);
     CommandQueue = command;
 }