Defines the member functions for the ACE_SOCK Netlink abstraction. More...
#include <SOCK_Netlink.h>


Public Member Functions | |
| ACE_SOCK_Netlink (void) | |
| Default constructor. | |
| ~ACE_SOCK_Netlink (void) | |
| ACE_SOCK_Netlink (ACE_Netlink_Addr &local, int protocol_family, int protocol) | |
| int | open (ACE_Netlink_Addr &local, int protocol_family, int protocol) |
| ssize_t | recv (void *buf, size_t n, int flags) const |
| ssize_t | send (void *buf, size_t n, int flags) const |
| ssize_t | recv (iovec iov[], int n, ACE_Addr &addr, int flags=0) const |
| ssize_t | send (const iovec iov[], int n, const ACE_Addr &addr, int flags=0) const |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. | |
Defines the member functions for the ACE_SOCK Netlink abstraction.
Netlink sockets are used in Linux as a communication facilty of kernel to user and user to kernel. This code was created so one could use ACE reactor as a gateway to a linux kernel.
| ACE_SOCK_Netlink::ACE_SOCK_Netlink | ( | void | ) |
Default constructor.
| ACE_SOCK_Netlink::~ACE_SOCK_Netlink | ( | void | ) |
| ACE_SOCK_Netlink::ACE_SOCK_Netlink | ( | ACE_Netlink_Addr & | local, | |
| int | protocol_family, | |||
| int | protocol | |||
| ) |
| int ACE_SOCK_Netlink::open | ( | ACE_Netlink_Addr & | local, | |
| int | protocol_family, | |||
| int | protocol | |||
| ) |
opens a RAW socket over an ACE_SOCK and binds it
Recieves an iovec of size n to the netlink socket
| ssize_t ACE_SOCK_Netlink::recv | ( | void * | buf, | |
| size_t | n, | |||
| int | flags | |||
| ) | const |
receives abuffer with the size n
| ssize_t ACE_SOCK_Netlink::send | ( | const iovec | iov[], | |
| int | n, | |||
| const ACE_Addr & | addr, | |||
| int | flags = 0 | |||
| ) | const |
Sends an iovec of size n to the netlink socket
| ssize_t ACE_SOCK_Netlink::send | ( | void * | buf, | |
| size_t | n, | |||
| int | flags | |||
| ) | const |
send a buffer of size n bytes
Declare the dynamic allocation hooks.
Reimplemented from ACE_SOCK.
1.6.1