#include "bool.h"
#include <netinet/in.h>
Include dependency graph for hostlookup.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | INetAddr_t |
| Stores an IPv4 or IPv6 network address. More... | |
| struct | SocketAddr_t |
| Stores an IPv4 or IPv6 socket address. More... | |
Defines | |
| #define | EqualAddresses(sa1, sa2) |
| True if two addresses, sans port, are equal. | |
| #define | MAX_HOST_LEN 64 |
| The maximum hostname length supported. | |
Typedefs | |
| typedef INetAddr_t | INetAddr |
| typedef SocketAddr_t | SocketAddr |
Functions | |
| void | DoHostnameLookup (void *) |
| An operation for the I/O Thread that attempts to discover the local system's hostname and address. | |
| int | LookupResult (char *name, INetAddr *addr) |
| Provides the results of a host lookup started by a call to either StartAddrLookup() or StartNameLookup(), or a notice that the operation is in progress. | |
| void | StartAddrLookup (char *name) |
| Starts the process of finding the address of a host based on its name. | |
| void | StartNameLookup (SocketAddr *addr, char *name) |
| Starts the process of finding the full hostname of a machine based on its address. | |
| Bool | StartStrNameLookup (char *addrstr, char *name) |
| Starts the process of finding the full hostname of a machine based on its address. | |
Variables | |
| char | localhostAddrStr [INET6_ADDRSTRLEN] |
| Stores the address of the local system as a string. | |
| char | localhostName [64] |
| Stores the name of the local system. | |
| SocketAddr | outgoingAddr |
| The socket address of the server that the client is in communication with. | |
Copyright (C) 2007 Jeff Jackowski
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Or visit their website at: http://www.gnu.org/
Definition in file hostlookup.h.
1.5.2