Exemplo n.º 1
0
 /// <summary>
    /// 构造函数,使用一个特定的编码器来初始化
    /// </summary>
    /// <param name="_coder">报文编码器</param>
 public TcpCliImpl(string ip, int port, Coder coder)
 {
     svrIP   = ip;
     svrPort = port;
     _coder  = coder;
 }
Exemplo n.º 2
0
 /// <summary>
    /// 默认构造函数,使用默认的编码格式
    /// </summary>
 public TcpCliImpl(string ip, int port)
 {
     svrIP   = ip;
     svrPort = port;
     _coder  = new Coder(Coder.EncodingMothord.Default);
 }