/// <summary> /// Initializes a new instance of the <see cref="texter.Netw"/> class. This is for the server only. /// </summary> /// <param name="port">Port.</param> public JcNetworking(int port) { this.port = port; mytype = ntype.SERVER; Server(); jce = new JcEncryption("2", "9", "8"); timeoutTime = 10000; }
/// <summary> /// 带参数的构造函数 /// </summary> /// <param name="_zkNumber">钻孔编号</param> /// <param name="_name">试验编号</param> /// <param name="_depth">试验深度</param> /// <param name="_value">试验击数</param> /// <param name="_type">试验类型</param> public ZkNTest(string _zkNumber, string _name, double _depth, double _value, ntype _type) { this.zkNumber = _zkNumber; this.name = _name; this.depth = _depth; this.testValue = _value; this.type = _type; }
/// <summary> /// Initializes a new instance of the <see cref="texter.Netw"/> class. This is for the client only. /// </summary> /// <param name="ip">Ip.</param> /// <param name="port">Port.</param> public JcNetworking(string ip, int port) { this.ip = ip; this.port = port; mytype = ntype.CLIENT; Client(); jce = new JcEncryption("2", "9", "8"); timeoutTime = 10000; }