/// <summary> /// /// </summary> /// <param name="IP"></param> /// <param name="Port"></param> /// <param name="Length">defines size of the I/O buffers</param> public TcpAsyncServer(string IP, int Port, int Length, TcpAsyncCommon.PacketMode PacketMode) { this.IP = IP; this.Port = Port; this.Length = Length; this.PacketMode = PacketMode; }
public TcpAsyncClient(string sIP, int iPORT, int Length, TcpAsyncCommon.PacketMode PacketMode, long timeout_receiver = 0, int SendTimeout_ms = 0) { this.PacketMode = PacketMode; this.TimeoutReceived = new TickTimeout(timeout_receiver, TickTime.Unit.ms, timeout_receiver > 0); this.Length = Length; ServerIP = sIP; ServerPort = iPORT; this.SendTimeout = new TickTimeout(SendTimeout_ms, TickTime.Unit.ms, SendTimeout_ms > 0); DBReceive = new Types.BufferedArray <byte[]>(this.Length); DBSend = new Types.BufferedArray <byte[]>(this.Length); }