|
|
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:
src | source IPv6 address. |
dst | destination IPv6 address. |
payload | pointer to IPv6 packet payload. |
len | length 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]