#include <ATM_Params.h>
Collaboration diagram for ACE_ATM_Params:

Public Methods | |
| ACE_ATM_Params (int rw_flag=1, const char device[]=ACE_XTI_ATM_DEVICE, Param_Info *info=0, Param_Udata *udata=0, int oflag=O_RDWR, int protocol_family=AF_ATM, int protocol=ATM_PROTOCOL_DEFAULT, int type=SOCK_RAW, ACE_Protocol_Info *protocol_info=0, ACE_SOCK_GROUP g=0, u_long flags=ACE_FLAG_MULTIPOINT_C_ROOT|ACE_FLAG_MULTIPOINT_D_ROOT, int reuse_addr=0) | |
| ~ACE_ATM_Params () | |
| Destructor. More... | |
| int | get_protocol_family (void) const |
| Get protocol family. More... | |
| void | set_protocol_family (int) |
| Set protocol family. More... | |
| int | get_protocol (void) const |
| Get protocol. More... | |
| void | set_protocol (int) |
| Set protocol. More... | |
| int | get_type (void) const |
| Get type. More... | |
| void | set_type (int) |
| Set type. More... | |
| ACE_Protocol_Info * | get_protocol_info (void) |
| Get protocol info. More... | |
| void | set_protocol_info (ACE_Protocol_Info *) |
| Set protocol info. More... | |
| ACE_SOCK_GROUP | get_sock_group (void) |
| Get socket group. More... | |
| void | set_sock_group (ACE_SOCK_GROUP) |
| Set socket group. More... | |
| u_long | get_flags (void) |
| Get socket flags. More... | |
| void | set_flags (u_long) |
| Set socket flags. More... | |
| int | get_reuse_addr (void) const |
| Get reuse_addr flag. More... | |
| void | set_reuse_addr (int) |
| Set reuse_addr flag. More... | |
| const char * | get_device (void) const |
| Get device. More... | |
| Param_Info * | get_info (void) const |
| Get info. More... | |
| void | set_info (Param_Info *) |
| Set info. More... | |
| int | get_rw_flag (void) const |
| Get r/w flag. More... | |
| void | set_rw_flag (int) |
| Set r/w flag. More... | |
| Param_Udata * | get_user_data (void) const |
| Get user data. More... | |
| void | set_user_data (Param_Udata *) |
| Set user data. More... | |
| int | get_oflag (void) const |
| Get open flag. More... | |
| void | set_oflag (int) |
| Set open flag. More... | |
| void | dump (void) const |
| Dump the state of an object. More... | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Private Attributes | |
| int | protocol_family_ |
| Protocol family for sockets connections. More... | |
| int | protocol_ |
| Protocol for sockets connections. More... | |
| int | type_ |
| Type for opening sockets. More... | |
| ACE_Protocol_Info * | protocol_info_ |
| Information about the protocol. More... | |
| ACE_SOCK_GROUP | group_ |
| Socket group used (for sockets only). More... | |
| u_long | flags_ |
| Flags for sockets (for sockets only). More... | |
| int | reuse_addr_ |
| Flag for reusing address for opening sockets. More... | |
| const char * | device_ |
| Device name for XTI/ATM connections. More... | |
| Param_Info * | info_ |
| Info for XTI/ATM connections. More... | |
| int | rw_flag_ |
| R/W flag for XTI/ATM connections. More... | |
| Param_Udata * | udata_ |
| User data for XTI/ATM connections. More... | |
| int | oflag_ |
| Open flag for XTI/ATM connections. More... | |
Definition at line 58 of file ATM_Params.h.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Initialize the data members. This class combines options from ACE_SOCK_Connector (<protocol_family>, <protocol>, <type>, <protocol_info>, <group>, and <flags>) and ACE_TLI_Connector (<device>, <info>, <rw_flag>, <oflag>, and <udata>) so that either mechanism can be used transparently for ATM. Definition at line 6 of file ATM_Params.i. References ACE_SOCK_GROUP, ACE_TRACE, Param_Info, and Param_Udata.
00018 : protocol_family_(protocol_family), 00019 protocol_(protocol), 00020 type_(type), 00021 protocol_info_(protocol_info), 00022 group_(g), 00023 flags_(flags), 00024 reuse_addr_(reuse_addr), 00025 device_(device), 00026 info_(info), 00027 rw_flag_(rw_flag), 00028 udata_(udata), 00029 oflag_(oflag) 00030 { 00031 ACE_TRACE ("ACE_ATM_Params::ACE_ATM_Params"); 00032 } |
|
|
Destructor.
Definition at line 36 of file ATM_Params.i. References ACE_TRACE.
00037 {
00038 ACE_TRACE ("ACE_ATM_Params::~ACE_ATM_Params");
00039 }
|
|
|
Dump the state of an object.
Definition at line 17 of file ATM_Params.cpp. References ACE_TRACE.
00018 {
00019 ACE_TRACE ("ACE_ATM_Params::dump");
00020 }
|
|
|
Get device.
Definition at line 155 of file ATM_Params.i. References ACE_TRACE, and device_. Referenced by ACE_ATM_Connector::connect, ACE_ATM_Stream::open, and ACE_ATM_Acceptor::open.
|
|
|
Get socket flags.
Definition at line 123 of file ATM_Params.i. References ACE_TRACE, and flags_. Referenced by ACE_ATM_Stream::open, and ACE_ATM_Acceptor::open.
|
|
|
Get info.
Definition at line 163 of file ATM_Params.i. References ACE_TRACE, and info_. Referenced by ACE_ATM_Connector::connect, ACE_ATM_Stream::open, and ACE_ATM_Acceptor::open.
|
|
|
Get open flag.
Definition at line 211 of file ATM_Params.i. References ACE_TRACE, and oflag_. Referenced by ACE_ATM_Stream::open, and ACE_ATM_Acceptor::open.
|
|
|
Get protocol.
Definition at line 59 of file ATM_Params.i. References ACE_TRACE, and protocol_. Referenced by ACE_ATM_Stream::open, and ACE_ATM_Acceptor::open.
|
|
|
Get protocol family.
Definition at line 43 of file ATM_Params.i. References ACE_TRACE, and protocol_family_. Referenced by ACE_ATM_Stream::open, and ACE_ATM_Acceptor::open.
00044 {
00045 ACE_TRACE ("ACE_ATM_Params::get_protocol_family");
00046 return protocol_family_;
00047 }
|
|
|
Get protocol info.
Definition at line 91 of file ATM_Params.i. References ACE_TRACE, and protocol_info_. Referenced by ACE_ATM_Stream::open, and ACE_ATM_Acceptor::open.
00092 {
00093 ACE_TRACE ("ACE_ATM_Params::get_protocol_info");
00094 return protocol_info_;
00095 }
|
|
|
Get reuse_addr flag.
Definition at line 139 of file ATM_Params.i. References ACE_TRACE, and reuse_addr_. Referenced by ACE_ATM_Stream::open, and ACE_ATM_Acceptor::open.
00140 {
00141 ACE_TRACE ("ACE_ATM_Params::get_reuse_addr");
00142 return reuse_addr_;
00143 }
|
|
|
Get r/w flag.
Definition at line 179 of file ATM_Params.i. References ACE_TRACE, and rw_flag_. Referenced by ACE_ATM_Acceptor::accept, and ACE_ATM_Connector::connect.
|
|
|
Get socket group.
Definition at line 107 of file ATM_Params.i. References ACE_TRACE, and group_. Referenced by ACE_ATM_Stream::open, and ACE_ATM_Acceptor::open.
|
|
|
Get type.
Definition at line 75 of file ATM_Params.i. References ACE_TRACE, and type_. Referenced by ACE_ATM_Stream::open, and ACE_ATM_Acceptor::open.
|
|
|
Get user data.
Definition at line 195 of file ATM_Params.i. References ACE_TRACE, and udata_. Referenced by ACE_ATM_Acceptor::accept, and ACE_ATM_Connector::connect.
|
|
|
Set socket flags.
Definition at line 131 of file ATM_Params.i. References ACE_TRACE, and flags_. Referenced by ACE_ATM_Stream::open.
|
|
|
Set info.
Definition at line 171 of file ATM_Params.i. References ACE_TRACE, info_, and Param_Info.
|
|
|
Set open flag.
Definition at line 219 of file ATM_Params.i. References ACE_TRACE, and oflag_.
|
|
|
Set protocol.
Definition at line 67 of file ATM_Params.i. References ACE_TRACE, and protocol_.
|
|
|
Set protocol family.
Definition at line 51 of file ATM_Params.i. References ACE_TRACE, and protocol_family_.
00052 {
00053 ACE_TRACE ("ACE_ATM_Params::set_protocol_family");
00054 protocol_family_ = family;
00055 }
|
|
|
Set protocol info.
Definition at line 99 of file ATM_Params.i. References ACE_TRACE, and protocol_info_.
00100 {
00101 ACE_TRACE ("ACE_ATM_Params::set_protocol_info");
00102 protocol_info_ = protocol_info;
00103 }
|
|
|
Set reuse_addr flag.
Definition at line 147 of file ATM_Params.i. References ACE_TRACE, and reuse_addr_.
00148 {
00149 ACE_TRACE ("ACE_ATM_Params::set_reuse_addr");
00150 reuse_addr_ = reuse_addr;
00151 }
|
|
|
Set r/w flag.
Definition at line 187 of file ATM_Params.i. References ACE_TRACE, and rw_flag_.
|
|
|
Set socket group.
Definition at line 115 of file ATM_Params.i. References ACE_SOCK_GROUP, ACE_TRACE, and group_.
|
|
|
Set type.
Definition at line 83 of file ATM_Params.i. References ACE_TRACE, and type_.
|
|
|
Set user data.
Definition at line 203 of file ATM_Params.i. References ACE_TRACE, Param_Udata, and udata_.
|
|
|
Declare the dynamic allocation hooks.
Definition at line 164 of file ATM_Params.h. |
|
|
Device name for XTI/ATM connections.
Definition at line 189 of file ATM_Params.h. Referenced by get_device. |
|
|
Flags for sockets (for sockets only).
Definition at line 183 of file ATM_Params.h. |
|
|
Socket group used (for sockets only).
Definition at line 180 of file ATM_Params.h. Referenced by get_sock_group, and set_sock_group. |
|
|
Info for XTI/ATM connections.
Definition at line 192 of file ATM_Params.h. |
|
|
Open flag for XTI/ATM connections.
Definition at line 201 of file ATM_Params.h. |
|
|
Protocol for sockets connections.
Definition at line 171 of file ATM_Params.h. Referenced by get_protocol, and set_protocol. |
|
|
Protocol family for sockets connections.
Definition at line 168 of file ATM_Params.h. Referenced by get_protocol_family, and set_protocol_family. |
|
|
Information about the protocol.
Definition at line 177 of file ATM_Params.h. Referenced by get_protocol_info, and set_protocol_info. |
|
|
Flag for reusing address for opening sockets.
Definition at line 186 of file ATM_Params.h. Referenced by get_reuse_addr, and set_reuse_addr. |
|
|
R/W flag for XTI/ATM connections.
Definition at line 195 of file ATM_Params.h. Referenced by get_rw_flag, and set_rw_flag. |
|
|
Type for opening sockets.
Definition at line 174 of file ATM_Params.h. |
|
|
User data for XTI/ATM connections.
Definition at line 198 of file ATM_Params.h. Referenced by get_user_data, and set_user_data. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002