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/sktcl.c File Reference


Detailed Description

inet_addr example [Sec. 8.2.3]

Definition in file sktcl.c.

Go to the source code of this file.

Defines

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

Functions

int main (void)
int main1 (void)


Define Documentation

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

Definition at line 26 of file sktcl.c.


Function Documentation

int main void   ) 
 

Definition at line 28 of file sktcl.c.

References close(), connect(), EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, exit(), htons(), inet_addr(), read(), REQUEST, sockaddr_in::sin_addr, sockaddr_in::sin_family, sockaddr_in::sin_port, socket(), and write().

int main1 void   ) 
 

Definition at line 52 of file sktcl.c.

References close(), connect(), EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, exit(), htonl(), htons(), read(), REQUEST, sockaddr_in::sin_addr, sockaddr_in::sin_family, sockaddr_in::sin_port, socket(), and write().


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