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; }
public ServerEvent(ClientSocket client, SocketEventType eventType, string description = null) : this(eventType, description) { try { _address = client.Address; } catch { _address = "Unknown"; } }
public SocketEventArgs(SocketEventType e, NetworkPlayer remote) { socketEvent = e; endpoint = remote; }
private ServerEvent(SocketEventType eventType, string description = null) : this(description) { _eventType = eventType; }
public ServerEvent(string address, SocketEventType eventType, string description = null) : this(eventType, description) { _address = address; }