Org.Mentalis.Proxy.Client.OnClientSent C# (CSharp) 메소드

OnClientSent() 보호된 메소드

Called when we have sent data to the local client.
When all the data has been sent, we will start receiving again from the remote host.
protected OnClientSent ( IAsyncResult ar ) : void
ar IAsyncResult The result of the asynchronous operation.
리턴 void
        protected void OnClientSent(IAsyncResult ar)
        {
            try {
            int Ret = ClientSocket.EndSend(ar);
            if (Ret > 0) {
                DestinationSocket.BeginReceive(RemoteBuffer, 0, RemoteBuffer.Length, SocketFlags.None, new AsyncCallback(this.OnRemoteReceive), DestinationSocket);
                return;
            }
            } catch {}
            Dispose();
        }