コード例 #1
0
 /// <summary>
 /// 构造函数,使用一个特定的编码器来初始化
 /// </summary>
 /// <param name="_coder">报文编码器</param>
 public TcpCli(Coder coder, string saveFilePath)
 {
     _coder    = coder;
     _filePath = saveFilePath;
 }
コード例 #2
0
 /// <summary>
 /// 默认构造函数,使用默认的编码格式
 /// </summary>
 public TcpCli(string saveFilePath)
 {
     _coder    = new Coder(Coder.EncodingMothord.Default);
     _filePath = saveFilePath;
 }