ClientConnectedEventArgs.cs 500 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net.Sockets;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace SWRIS.Events
  8. {
  9. public class ClientConnectedEventArgs : EventArgs
  10. {
  11. public Socket ClientSocket { get; }
  12. public string IpAddress { get; }
  13. public ClientConnectedEventArgs(Socket clientSocket, string ipAddress)
  14. {
  15. ClientSocket = clientSocket;
  16. IpAddress = ipAddress;
  17. }
  18. }
  19. }