Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

vpr::SocketIpOpt Class Reference

IP-level options for sockets. More...

#include <SocketIpOpt.h>

Inheritance diagram for vpr::SocketIpOpt:

Inheritance graph
[legend]
Collaboration diagram for vpr::SocketIpOpt:

Collaboration graph
[legend]
List of all members.

Public Methods

vpr::ReturnStatus getTypeOfService (vpr::SocketOptions::TypeOfService &tos)
vpr::ReturnStatus setTypeOfService (const vpr::SocketOptions::TypeOfService &tos)
vpr::ReturnStatus getTimeToLive (vpr::Int32 &ttl)
vpr::ReturnStatus setTimeToLive (const vpr::Int32 ttl)

Detailed Description

IP-level options for sockets.

Definition at line 54 of file SocketIpOpt.h.


Member Function Documentation

vpr::ReturnStatus vpr::SocketIpOpt::getTypeOfService vpr::SocketOptions::TypeOfService   tos [inline]
 

Definition at line 60 of file SocketIpOpt.h.

References vpr::ReturnStatus::success, and vpr::SocketOptions::Data::type_of_service.

00061    {
00062       vpr::SocketOptions::Data option;
00063       vpr::ReturnStatus retval;
00064 
00065       retval = getOption(vpr::SocketOptions::IpTypeOfService, option);
00066 
00067       if ( retval.success() )
00068       {
00069          tos = option.type_of_service;
00070       }
00071 
00072       return retval;
00073    }

vpr::ReturnStatus vpr::SocketIpOpt::setTypeOfService const vpr::SocketOptions::TypeOfService   tos [inline]
 

Definition at line 78 of file SocketIpOpt.h.

References vpr::SocketOptions::Data::type_of_service.

00079    {
00080       vpr::SocketOptions::Data option;
00081       option.type_of_service = tos;
00082       return setOption(vpr::SocketOptions::IpTypeOfService, option);
00083    }

vpr::ReturnStatus vpr::SocketIpOpt::getTimeToLive vpr::Int32   ttl [inline]
 

Definition at line 88 of file SocketIpOpt.h.

References vpr::SocketOptions::Data::ip_ttl, and vpr::ReturnStatus::success.

00089    {
00090       vpr::SocketOptions::Data option;
00091       vpr::ReturnStatus retval;
00092 
00093       retval = getOption(vpr::SocketOptions::IpTimeToLive, option);
00094 
00095       if ( retval.success() )
00096       {
00097          ttl = option.ip_ttl;
00098       }
00099 
00100       return retval;
00101    }

vpr::ReturnStatus vpr::SocketIpOpt::setTimeToLive const vpr::Int32    ttl [inline]
 

Definition at line 106 of file SocketIpOpt.h.

References vpr::SocketOptions::Data::ip_ttl.

00107    {
00108       vpr::SocketOptions::Data option;
00109       option.ip_ttl = ttl;
00110       return setOption(vpr::SocketOptions::IpTimeToLive, option);
00111    }


The documentation for this class was generated from the following file:
Generated on Sun May 2 14:46:56 2004 for VR Juggler Portable Runtime by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002