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


Detailed Description

Socket options example [Sec. 8.3].

Definition in file sktopt.c.

Go to the source code of this file.

Enumerations

enum  OPT_TYPE { OT_INT, OT_LINGER, OT_TIMEVAL }

Functions

void show (int skt, int level, int option, const char *name, OPT_TYPE type)
void showall (int skt, const char *caption)
int main (void)


Enumeration Type Documentation

enum OPT_TYPE
 

Enumeration values:
OT_INT 
OT_LINGER 
OT_TIMEVAL 

Definition at line 30 of file sktopt.c.


Function Documentation

int main void   ) 
 

Definition at line 98 of file sktopt.c.

References close(), EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, exit(), showall(), and socket().

void show int  skt,
int  level,
int  option,
const char *  name,
OPT_TYPE  type
[static]
 

Definition at line 32 of file sktopt.c.

References errno, getsockopt(), OT_INT, OT_LINGER, OT_TIMEVAL, timeval::tv_sec, and timeval::tv_usec.

Referenced by showall().

void showall int  skt,
const char *  caption
[static]
 

Definition at line 66 of file sktopt.c.

References OT_INT, OT_LINGER, OT_TIMEVAL, and show().

Referenced by main().


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