![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Section contents
csocket.oxh
this& = NewHostResolver&:
Create a host resolver object and returns a handle to the created object.
this& |
An value which represents the created host resolver |
If the object could not be created then an error is generated
which should be trapped by an ONERR
handler.
DeleteHostResolver:(BYREF this&)
Destroys the host resolver object.
BYREF this& |
A handle to a host resolver object. A zero value is written back into the variable |
HostResolverCancel:(this&)
Cancels any outstanding operations to the host resolver service.
this& |
A handle to a host resolver object |
HostResolverClose:(this&)
Cloases the connection to the host resolver service.
this& |
A handle to a host resolver object |
HostResolverGetByAddressA:(this&,address&,result&,BYREF status&)
Get the name entry associated with the socket address.
this& |
A handle to a host resolver object |
address& |
A handle to a socket address object |
result& |
A handle to a name entry object |
BYREF status& |
The status of the asynchronous operation |
If the status&
object cannot be created then
an error is generated which should be trapped by an ONERR
handler.
HostResolverGetByNameA:(this&,name$,result&,BYREF status&)
Get the name entry associated with the name.
If called with name$ set to a null hostname, it will return an address of 0.0.0.0 if no interface exists and the address of the interface with the highest speed metric otherwise on the local host. This can be used to determine the IP address of the local host.
this& |
A handle to a host resolver object |
name$ |
The name of the host |
result& |
A handle to a name entry object |
BYREF status& |
The status of the asynchronous operation |
If the status&
object cannot be created then
an error is generated which should be trapped by an ONERR
handler.
HostResolverGetHostNameA:(this&,des&,BYREF status&)
<TBS>
this& |
A handle to a host resolver object |
des& |
A handle to a descriptor |
BYREF status& |
The status of the asynchronous operation |
If the status&
object cannot be created then
an error is generated which should be trapped by an ONERR
handler.
HostResolverGetNextA:(this&,result&,BYREF status&)
<TBS>
this& |
A handle to a host resolver object |
result& |
A handle to a name entry object |
BYREF status& |
The status of the asynchronous operation |
If the status&
object cannot be created then
an error is generated which should be trapped by an ONERR
handler.
err% = HostResolverOpen%:(this&,socketserv&,family&,protocol&)
Opens a connection to the host resolver service.
this& |
A handle to a host resolver object |
socketserv& |
The socket server session; a handle to a SocketServ object |
family& |
Specifies the address family |
protocol& |
Specifies the protocol |
err% |
The result of the operation |
err% = HostResolverSetHostName%:(this&,str$)
<TBS>
this& |
A handle to a host resolver object |
str$ |
A string containing the host name |
err% |
The result of the operation |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |