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  

Ux::SockIPv4 Class Reference
[C++ Wrapper for Standard UNIX Functions]

Inheritance diagram for Ux::SockIPv4:

Ux::Base List of all members.

Detailed Description

Definition at line 37 of file uxsocket.hpp.

Public Member Functions

 SockIPv4 (in_addr_t ip=0)
 SockIPv4 (const char *str)
void set (const char *str)
void set (in_addr_t ip=0)
in_addr_t get_ipv4 (void) const
const char * get_string (char *buf, socklen_t bufsize) const

Protected Attributes

in_addr_t ipv4


Constructor & Destructor Documentation

Ux::SockIPv4::SockIPv4 in_addr_t  ip = 0  )  [inline]
 

Definition at line 42 of file uxsocket.hpp.

References set().

Ux::SockIPv4::SockIPv4 const char *  str  )  [inline]
 

Definition at line 44 of file uxsocket.hpp.

References set().


Member Function Documentation

in_addr_t Ux::SockIPv4::get_ipv4 void   )  const [inline]
 

Definition at line 49 of file uxsocket.hpp.

const char * SockIPv4::get_string char *  buf,
socklen_t  bufsize
const
 

Calls inet_ntop.

Definition at line 40 of file uxsocket.cpp.

References errno, and ipv4.

void Ux::SockIPv4::set in_addr_t  ip = 0  )  [inline]
 

Definition at line 47 of file uxsocket.hpp.

void SockIPv4::set const char *  str  ) 
 

Calls inet_pton. Throws errors from inet_pton, or EINVAL if inet_pton returns 0.

Definition at line 27 of file uxsocket.cpp.

References errno, and ipv4.

Referenced by SockIPv4().


Member Data Documentation

in_addr_t Ux::SockIPv4::ipv4 [protected]
 

Definition at line 39 of file uxsocket.hpp.

Referenced by get_string(), and set().


The documentation for this class was generated from the following files:
Generated on Fri Apr 23 10:57:18 2004 for AUP2 Example Source by doxygen 1.3.1