Copyright © 2001 - 2002 SILC Project SILC Project Website | SILC Toolkit Reference Manual Index

SILC Toolkit Reference Manual SILC Client Library Using SILC Client Library Client Library Interface SILC Core Library SILC Authentication Interface SILC Message Interface SILC Channel Interface SILC Command Interface SILC Notify Interface SILC Status Types SILC Modes SILC ID Interface SILC ID Cache Interface SILC Argument Interface SILC Attributes Interface Packet Protocol Interface SILC Crypto Library Introduction to SILC RNG SILC RNG Interface SILC Cipher API SILC PKCS API SILC Hash Interface SILC HMAC Interface SILC Math Library SILC MP Interface SILC Math Interface SILC SFTP Library SILC SFTP Interface SFTP Filesystems Interface SILC Key Exchange Library SILC SKE Interface SKE Status Types SKE Diffie Hellman Groups SKE Payloads SILC Utility Library Basic SILC Types SILC Buffer Interface SILC Buffer Format Interface SILC Hash Table Interface SILC Logging Interface SILC Memory Interface SILC Mutex Interface SILC Thread Interface SILC Network Interface SILC Schedule Interface SILC Socket Interface SILC Protocol Interface SILC Config Interface SILC File Util Interface SILC String Util Interface SILC Util Interface SILC List Interface SILC Dynamic List Interface SILC VCard Interface SILC Application Utilities Resource Links SILC Project Website SILC Protocol Documentation SILC White Paper SILC FAQ
Function silc_socket_host_lookup SYNOPSIS
        void silc_socket_host_lookup(SilcSocketConnection sock,
                                     bool port_lookup,
                                     SilcSocketHostLookupCb callback,
                                     void *context,
                                     SilcSchedule schedule);
DESCRIPTION
        Performs asynchronous host name and IP address lookups for the
        specified socket connection. This may be called when the socket
        connection is created and the full IP address and fully qualified
        domain name information is desired. The `callback' with `context'
        will be called after the lookup is performed. The `schedule'
        is the application's scheduler which the lookup routine needs.
        If the socket connection is freed during the lookup the library
        will automatically cancel the lookup and the `callback' will not be
        called.

        If `port_lookup' is TRUE then the remote port of the socket
        connection is resolved. After the information is resolved they
        are accessible using sock->ip and sock->hostname pointers. Note
        that if the both IP and FQDN could not be resolved the sock->hostname
        includes the IP address of the remote host. The resolved port is
        available in sock->port.
SILC Socket Interface SilcSocketConnection SilcSocketConnectionHB SilcSocketConnectionQos SilcSocketType SilcSocketConnectionStruct silc_socket_alloc silc_socket_free silc_socket_dup silc_socket_read silc_socket_write silc_socket_get_error SilcSocketConnectionHBCb silc_socket_set_heartbeat silc_socket_set_qos SilcSocketHostLookupCb silc_socket_host_lookup

Copyright © 2001 - 2002 SILC Project SILC Project Website | SILC Toolkit Reference Manual Index