Org.Mentalis.Proxy.Client.OnRemoteSent C# (CSharp) Method

OnRemoteSent() protected method

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.
return 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();
        }