Org.Mentalis.Proxy.Client.OnClientSent C# (CSharp) Méthode

OnClientSent() protected méthode

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.
Résultat 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();
        }