ACE_SOCK_Netlink Class Reference

Defines the member functions for the ACE_SOCK Netlink abstraction. More...

#include <SOCK_Netlink.h>

Inheritance diagram for ACE_SOCK_Netlink:

Inheritance graph
[legend]
Collaboration diagram for ACE_SOCK_Netlink:

Collaboration graph
[legend]
List of all members.

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.


Detailed Description

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.

Definition at line 44 of file SOCK_Netlink.h.


Constructor & Destructor Documentation

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
 


Member Function Documentation

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

ssize_t ACE_SOCK_Netlink::recv iovec  iov[],
int  n,
ACE_Addr addr,
int  flags = 0
const
 

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


Member Data Documentation

ACE_SOCK_Netlink::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented from ACE_SOCK.

Definition at line 92 of file SOCK_Netlink.h.


The documentation for this class was generated from the following file:
Generated on Thu Nov 9 11:29:56 2006 for ACE by doxygen 1.3.6