using System.Net; namespace Team.Communicate.EventArg { public class TcpClientStatusEventArgs : System.EventArgs { public ConnectStatus Status { get; private set; } public IPEndPoint RemoteEndPoint { get; private set; } public TcpClientStatusEventArgs(ConnectStatus status, IPEndPoint remoteEndPoint) { Status = status; RemoteEndPoint = remoteEndPoint; } } public enum ConnectStatus { Disconnected, Connecting, Connected }; }