Begins an asynchronous request to resolve a DNS host name or IP address in dotted-quad notation to an IPAddress instance.
[Visual Basic]Friend Function BeginDns( _
ByVal host As String, _
ByVal callback As Org.Mentalis.Network.ProxySocket.HandShakeComplete _
) As Org.Mentalis.Network.ProxySocket.IAsyncProxyResult
[C#]
internal IAsyncProxyResult BeginDns(
string host,
HandShakeComplete callback
);
Parameters
- host
- The host to resolve.
- callback
- The method to call when the hostname has been resolved.
Return Value
An IAsyncResult instance that references the asynchronous request.
Exceptions
Exception Type | Condition |
---|---|
System.Net.Sockets.SocketException | There was an error while trying to resolve the host. |
See Also
ProxySocket Class | ProxySocket Members | Org.Mentalis.Network.ProxySocket Namespace