Logo Search packages:      
Sourcecode: galaxium version File versions  Download package

void Org::Mentalis::Network::ProxySocket::ProxySocket::OnResolved ( IAsyncResult  asyncResult  )  [inline, private]

Called when the specified hostname has been resolved.

Parameters:
asyncResult The result of the asynchronous operation.

Definition at line 231 of file ProxySocket.cs.

                                                              {
                  try {
                        IPHostEntry dns = Dns.EndResolve(asyncResult);
                        base.BeginConnect(new IPEndPoint(dns.AddressList[0], RemotePort), new AsyncCallback(this.OnConnect), State);
                  } catch (Exception e) {
                        OnHandShakeComplete(e);
                  }
            }


Generated by  Doxygen 1.6.0   Back to index