class RawSocket6

Base class for raw sockets. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Protected Members


Detailed Description

Base class for raw sockets. Supports write only.

 RawSocket6 (uint32_t protocol)
throw (RawSocket6Exception)

RawSocket6

 ~RawSocket6 ()

~RawSocket6

[virtual]

inline uint32_t  protocol ()

protocol

[const]

ssize_t  write (const IPv6& src, const IPv6& dst, const uint8_t* payload, size_t len)

write

[const]

Write data to raw socket.

Parameters:

srcsource IPv6 address.
dstdestination IPv6 address.
payloadpointer to IPv6 packet payload.
lenlength of payload in bytes.

Returns: number of bytes written on success. If return value is negative check errno for system errors. Invalid IPv6 fields may cause packet to be rejected before being passed to system, in which case errno will not indicate an error. The error is recorded in the xlog.

int32_t _fd

_fd

[protected]

uint32_t _pf

_pf

[protected]


Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:05 2005, using kdoc $.