protected virtual void OnAcceptConnection(Socket socket) { var xSocket = new XSocket(socket); _clientsConnected.Add(xSocket); OnAccept?.Invoke(this, new XSocketArgs(xSocket)); }
public XSocketArgs(XSocket xSocket) { XSocket = xSocket; }
protected virtual void OnAcceptConnection(Socket socket) { var xSocket = new XSocket(socket); _clientsConnected.Add(xSocket); OnAccept?.Invoke(this, new XSocketArgs(xSocket)); }
public XSocketArgs(XSocket xSocket) { XSocket = xSocket; }