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

OnRemoteSent() 보호된 메소드

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