IPInfo Component

The IPInfo control is used to resolve host names to host addresses and vice-versa using asynchronous DNS. The control provides access to other Winsock database functions as well.

(NOTE: The following is a very short description. For more information, please consult the help files that come with the respective package.)


The IPInfo control operates asynchronously. Requests are posted to the control by setting a property like HostName, HostAddress, ServiceName, ServicePort and then waiting for the RequestComplete event. The RequestId property identifies the request.

Up to 100 simultaneous requests can be queued at any moment. PendingRequests shows the number of pending requests, and may also be used to adjust the size of the queue (by dumping a number of the pending requests).

This control requires a Winsock 1.1 compliant TCP/IP stack. This means that the Winsock stack installed in the system must have a version of at least 1.1. In particular, Windows 95, 98, and NT machines with Winsock 2.0 are fully supported.


   PROPERTIES

HostAddress. An Internet Address in dotted format. When set, it initiates a search for the corresponding host name.

HostAliases. Other names corresponding to the host with name HostName.

HostName. The Domain Name of an Internet host. When set, it initiates a search for the corresponding address(es).

LocalHost. The name of the local host. When connected, the IP address of the interface through which the connection was made.

OtherAddresses. Other addresses for the host identified by HostName (for multihomed hosts).

PendingRequests. The number of requests awaiting for completion.

RequestId. The handle of the last request.

ServiceAliases. Other names by which the service specified by ServiceName/ServicePort is known.

ServiceName. A name for a service. When set, it initiates a search for the corresponding port number and protocol.

ServicePort. A port number for a service. When set, it initiates a search for the corresponding service name and protocol.

ServiceProtocol. The protocol of the service specified by ServiceName/ServicePort.

WinsockInfo. Identifying information about the loaded Winsock stack.

WinsockLoaded. Loads and unloads Winsock on demand.

WinsockMaxDatagramSize. Size in bytes of the largest UDP datagram that can be sent or received.

WinsockMaxSockets. Maximum number of sockets available to a single process.

WinsockPath. The path to the Winsock DLL used.

WinsockStatus. The status of the Winsock stack.

   EVENTS

Error. Information about errors during data delivery.

RequestComplete. Fired after an asynchronous request completes.


© 1999 devSoft Inc. - All Rights Reserved.
devSoft Inc.,  P.O.Box 13821 , Research Triangle Park, NC 27709 , USA,