示例#1
0
        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);
        }
示例#2
0
        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);
        }