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::SockIPv6 Class Reference
[C++ Wrapper for Standard UNIX Functions]

Inheritance diagram for Ux::SockIPv6:

Ux::Base List of all members.

Detailed Description

Definition at line 57 of file uxsocket.hpp.

Public Member Functions

 SockIPv6 (uint8_t *ip=NULL)
 SockIPv6 (const char *str)
void set (const char *str)
void set (uint8_t *ip=NULL)
const uint8_t * get_ipv6 (void) const
const char * get_string (char *buf, socklen_t bufsize) const

Protected Attributes

uint8_t ipv6 [16]

Constructor & Destructor Documentation

Ux::SockIPv6::SockIPv6 uint8_t *  ip = NULL  )  [inline]

Definition at line 62 of file uxsocket.hpp.

References set().

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

Definition at line 64 of file uxsocket.hpp.

References set().

Member Function Documentation

const uint8_t* Ux::SockIPv6::get_ipv6 void   )  const [inline]

Definition at line 68 of file uxsocket.hpp.

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

Calls inet_ntop.

Definition at line 74 of file uxsocket.cpp.

References errno, and ipv6.

void SockIPv6::set uint8_t *  ip = NULL  ) 

Sets object to zeros.

Definition at line 50 of file uxsocket.cpp.

References ipv6.

void SockIPv6::set const char *  str  ) 

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

Definition at line 61 of file uxsocket.cpp.

References errno, and ipv6.

Referenced by SockIPv6().

Member Data Documentation

uint8_t Ux::SockIPv6::ipv6[16] [protected]

Definition at line 59 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