public TcpServerFlow(string name) { link = new TcpServer(name); Add(link); link.HeartbeatEventHandler = OnHeartbeatEvent; this.name = name; Resolution = Time.TicksInSecond; // 1-second frame resolution HeartbeatTimeout = 15; Timer = new x2.Flows.Timer(OnTimer); }
public TcpClientFlow(string name, TcpClient link) { this.link = link; Add(link); link.HeartbeatEventHandler = OnHeartbeatEvent; this.name = name; Resolution = Time.TicksInSecond; // 1-second frame resolution HeartbeatTimeout = 15; Timer = new x2.Flows.Timer(OnTimer); }