private bool OnBeforeAccept(Socket socket) { if (BeforeAccept != null) { TcpEventArgs e = new TcpEventArgs(socket); BeforeAccept.Invoke(this, e); return !e.Cancelled; } return true; }
private bool OnBeforeAccept(TcpClient tcp) { if (BeforeAccept != null) { TcpEventArgs e = new TcpEventArgs(tcp); BeforeAccept.Invoke(this, e); return !e.Cancelled; } return true; }