Exemplo n.º 1
0
 public TCPEvent(DateTime timestamp, UInt32 resourceId, SocketEventType type,
                 IPEndpoint localEndpoint, IPEndpoint remoteEndpoint)
 {
     this.timestamp = timestamp;
     this.resourceId = resourceId;
     this.type = type;
     this.localEndpoint = localEndpoint;
     this.remoteEndpoint = remoteEndpoint;
 }
Exemplo n.º 2
0
 public ServerEvent(ClientSocket client, SocketEventType eventType, string description = null)
     : this(eventType, description)
 {
     try
     {
         _address = client.Address;
     }
     catch
     {
         _address = "Unknown";
     }
 }
Exemplo n.º 3
0
 public SocketEventArgs(SocketEventType e, NetworkPlayer remote)
 {
     socketEvent = e;
     endpoint = remote;
 }
Exemplo n.º 4
0
 private ServerEvent(SocketEventType eventType, string description = null)
     : this(description)
 {
     _eventType = eventType;
 }
Exemplo n.º 5
0
 public ServerEvent(string address, SocketEventType eventType, string description = null)
     : this(eventType, description)
 {
     _address = address;
 }