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