ACE_ATM_Connector
class.
#include <ace/ATM_Params.h>
class ACE_ATM_Params {
public:
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 ();
int get_protocol_family (void) const;
void set_protocol_family (int);
int get_protocol (void) const;
void set_protocol (int);
int get_type (void) const;
void set_type (int);
ACE_Protocol_Info *get_protocol_info( void );
void set_protocol_info( ACE_Protocol_Info *);
ACE_SOCK_GROUP get_sock_group( void );
void set_sock_group( ACE_SOCK_GROUP );
u_long get_flags( void );
void set_flags( u_long );
int get_reuse_addr (void) const;
void set_reuse_addr (int);
const char* get_device (void) const;
Param_Info* get_info (void) const;
void set_info (Param_Info *);
int get_rw_flag (void) const;
void set_rw_flag (int);
Param_Udata* get_user_data (void) const;
void set_user_data (Param_Udata*);
int get_oflag (void) const;
void set_oflag (int);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
private:
int protocol_family_;
int protocol_;
int type_;
ACE_Protocol_Info *protocol_info_;
ACE_SOCK_GROUP group_;
u_long flags_;
int reuse_addr_;
const char *device_;
Param_Info *info_;
int rw_flag_;
Param_Udata *udata_;
int oflag_;
};
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
);
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.
~ACE_ATM_Params ();
int get_protocol_family (void) const;
void set_protocol_family (int);
int get_protocol (void) const;
void set_protocol (int);
int get_type (void) const;
void set_type (int);
ACE_Protocol_Info *get_protocol_info( void );
void set_protocol_info( ACE_Protocol_Info *);
ACE_SOCK_GROUP get_sock_group( void );
void set_sock_group( ACE_SOCK_GROUP );
u_long get_flags( void );
void set_flags( u_long );
int get_reuse_addr (void) const;
void set_reuse_addr (int);
const char* get_device (void) const;
Param_Info* get_info (void) const;
void set_info (Param_Info *);
int get_rw_flag (void) const;
void set_rw_flag (int);
Param_Udata* get_user_data (void) const;
void set_user_data (Param_Udata*);
int get_oflag (void) const;
void set_oflag (int);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
int protocol_family_;
int protocol_;
int type_;
ACE_Protocol_Info *protocol_info_;
ACE_SOCK_GROUP group_;
u_long flags_;
int reuse_addr_;
const char *device_;
Param_Info *info_;
int rw_flag_;
Param_Udata *udata_;
int oflag_;
joeh@cs.wustl.edu