private void OnTCPConnectionOpened(TCPConnectionArg arg) { TCPConnectionInfo ti = arg.ConnectionInfo; string strConn = string.Format("Open, Device:{4}, Src {0}:{1} -> Dest {2}:{3}", ti.SrcIP, ti.SrcPort, ti.DestIP, ti.DestPort, ti.DeviceId); Utils.Log.Info(strConn); }
private void OnTCPConnectionOpened(TCPConnectionArg arg) { if (this.IsHandleCreated) { BeginInvoke((MethodInvoker)(() => { TCPConnectionInfo ti = arg.ConnectionInfo; string strConn = string.Format("Open, Device:{4}, Src {0}:{1} -> Dest {2}:{3}", ti.SrcIP, ti.SrcPort, ti.DestIP, ti.DestPort, ti.DeviceId); lvConnections.Items.Add(strConn); })); } }
private void OnTCPConnectionClosed(TCPConnectionArg arg) { }