protected virtual void ErrorOccured(SocketErrorEventArgs e) { SocketErrorEventHandler handler = OnError; if (handler != null) { handler(this, e); } }
protected virtual void OnError(SocketErrorEventArgs e) { SocketErrorEventHandler temp = SocketError; if (temp != null) { SocketError(this, e); } }