TcpClientStatusEventArgs.cs 549 B

123456789101112131415161718192021222324
  1. using System.Net;
  2. namespace Team.Communicate.EventArg
  3. {
  4. public class TcpClientStatusEventArgs : System.EventArgs
  5. {
  6. public ConnectStatus Status { get; private set; }
  7. public IPEndPoint RemoteEndPoint { get; private set; }
  8. public TcpClientStatusEventArgs(ConnectStatus status, IPEndPoint remoteEndPoint)
  9. {
  10. Status = status;
  11. RemoteEndPoint = remoteEndPoint;
  12. }
  13. }
  14. public enum ConnectStatus
  15. {
  16. Disconnected,
  17. Connecting,
  18. Connected
  19. };
  20. }