private void OnSocketError(string strEndPoint, System.Net.Sockets.SocketError errorCode) { if (this.InvokeRequired) { OVRSocketErrorHandler delegateSocketError = new OVRSocketErrorHandler(OnInokeSocketError); this.Invoke(delegateSocketError, strEndPoint, errorCode); return; } OnInokeSocketError(strEndPoint, errorCode); }
private void OnConnectionDroped(string strEndPoint, System.Net.Sockets.SocketError errorCode) { if (this.InvokeRequired) { OVRSocketErrorHandler delegateConnectionDroped = new OVRSocketErrorHandler(OnInokeConnectionDroped); this.Invoke(delegateConnectionDroped, strEndPoint, errorCode); return; } OnInokeConnectionDroped(strEndPoint, errorCode); }