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.


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

Declare the dynamic allocation hooks.

Reimplemented from ACE_SOCK.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Fri Sep 11 03:58:14 2009 for ACE by  doxygen 1.6.1