#include <Netlink_Addr.h>
Inheritance diagram for ACE_Netlink_Addr:


Public Member Functions | |
| ACE_Netlink_Addr (void) | |
| Default constructor. | |
| ACE_Netlink_Addr (const ACE_Netlink_Addr &) | |
| Copy constructor. | |
| ACE_Netlink_Addr (const sockaddr_nl *, int len) | |
| Creates an ACE_INET_Addr from a sockaddr_in structure. | |
| ~ACE_Netlink_Addr (void) | |
| Dtor. | |
| int | set (const ACE_Netlink_Addr &naddr) |
| void | set (int pid, int gid) |
| int | set (const sockaddr_nl *, int len) |
| int | get_pid (void) const |
| int | get_gid (void) const |
| virtual void * | get_addr (void) const |
| int | get_addr_size (void) const |
| virtual void | set_addr (void *, int len=sizeof(sockaddr_nl)) |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. | |
Private Member Functions | |
| int | determine_type (void) const |
| void | reset (void) |
Private Attributes | |
| sockaddr_nl | nl_ |
Definition at line 41 of file Netlink_Addr.h.
|
|
Default constructor.
|
|
|
Copy constructor.
Definition at line 36 of file Netlink_Addr.cpp. References set().
|
|
||||||||||||
|
Creates an ACE_INET_Addr from a sockaddr_in structure.
Definition at line 48 of file Netlink_Addr.cpp. References set().
00049 {
00050 this->set (un, len);
00051 }
|
|
|
Dtor.
|
|
|
|
|
|
Reimplemented from ACE_Addr. |
|
|
|
|
|
Definition at line 60 of file Netlink_Addr.cpp. References nl_.
00061 {
00062 return this->nl_.nl_groups;
00063 }
|
|
|
Definition at line 54 of file Netlink_Addr.cpp. References nl_.
00055 {
00056 return this->nl_.nl_pid;
00057 }
|
|
|
set nl_
|
|
||||||||||||
|
set nl_ to nl_
Definition at line 42 of file Netlink_Addr.cpp. References ACE_OS::memcpy().
00043 {
00044 (void) ACE_OS::memcpy ((void *) &this->nl_,un,len);
00045 return 0;
00046 }
|
|
||||||||||||
|
sets the pid and groups fields of member nl_
|
|
|
Definition at line 26 of file Netlink_Addr.cpp. References ACE_Addr::base_set(), ACE_Addr::get_size(), ACE_Addr::get_type(), ACE_OS::memset(), and nl_. Referenced by ACE_Netlink_Addr().
00027 {
00028 ACE_OS::memset ((void *) &this->nl_,0,sizeof this->nl_);
00029 this->nl_.nl_family = AF_NETLINK;
00030 this->base_set (sa.get_type (), sa.get_size ());
00031 return 0;
00032 }
|
|
||||||||||||
|
Set a pointer to the address Reimplemented from ACE_Addr. |
|
|
Declare the dynamic allocation hooks.
Reimplemented from ACE_Addr. Definition at line 91 of file Netlink_Addr.h. |
|
|
Definition at line 104 of file Netlink_Addr.h. |
1.3.6