2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c8/adi.c File Reference


Detailed Description

getaddrinfo test program [Sec. 8.2.6]

Definition in file adi.c.

Go to the source code of this file.

Defines

#define main   main1
#define REQUEST   "GET / HTTP/1.0\r\n\r\n"

Functions

void a1 (void)
int main (void)
void a3 (void)


Define Documentation

#define main   main1
 

Definition at line 48 of file adi.c.

#define REQUEST   "GET / HTTP/1.0\r\n\r\n"
 

Definition at line 107 of file adi.c.

Referenced by main(), and main1().


Function Documentation

void a1 void   )  [static]
 

getaddrinfo test program AUP2, Sec. 8.02.6

Copyright 2003 by Marc J. Rochkind. All rights reserved. May be copied only for purposes and under conditions described on the Web page www.basepath.com/aup/copyright.htm.

The Example Files are provided "as is," without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. The author and his publisher are not responsible for any damages, direct or incidental, resulting from the use or non-use of these Example Files.

The Example Files may contain defects, and some contain deliberate coding mistakes that were included for educational reasons. You are responsible for determining if and how the Example Files are to be used.

Definition at line 31 of file adi.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, exit(), and getaddrinfo().

void a3 void   )  [static]
 

Definition at line 72 of file adi.c.

References addrinfo::ai_family, addrinfo::ai_next, addrinfo::ai_socktype, EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, exit(), gai_strerror(), and getaddrinfo().

int main void   ) 
 

Definition at line 50 of file adi.c.

References addrinfo::ai_family, addrinfo::ai_next, addrinfo::ai_socktype, ec_ai, EC_CLEANUP_BGN, EC_CLEANUP_END, exit(), getaddrinfo(), inet_ntoa(), ntohs(), sockaddr_in::sin_addr, and sockaddr_in::sin_port.


Generated on Fri Apr 23 10:57:10 2004 for AUP2 Example Source by doxygen 1.3.1