senf::ConnectedRawV6SocketProtocol Class Reference
[Protocol Implementations (Concrete Protocol Classes)]

IPv6 RAW Socket Protocol, connected. More...

#include <senf/Socket/Protocols/INet/ConnectedRawINetSocketHandle.hh>

Inheritance diagram for senf::ConnectedRawV6SocketProtocol:
Inheritance graph
[legend]

List of all members.


Detailed Description

IPv6 RAW Socket Protocol, connected.
Socket Handle typedefs:
ConnectedRawV6ClientSocketHandle (ProtocolClientSocketHandle)
Policy Interface:
ClientSocketHandle::read(), ClientSocketHandle::write(), ClientSocketHandle::bind(), ClientSocketHandle::local(), ClientSocketHandle::connect(), ClientSocketHandle::peer()
Address Type:
INet6Address
ConnectedRawV6SocketProtocol provides an internet protocol raw socket based on IPv6 addressing which is connected to certain peer. This socket will put data written to it onto the IPv6 layer: if you call writeto don't include the header! On the other hand `read` will return the packet data on top of the IPv6 layer, excluding the IP header. Note: This behaviour is differs from the behaviour of IPv4 RAW sockets.

This class is utilized as the protocol class of the ProtocolClientSocketHandle via the Socket Handle typedefs above.

Attention:
If socket handle with ConnectedRawV6SocketProtocol is connected via INet6SocketAddress, the port number is interpreted as protocol number for IPv6 layer. Please refer manpage: "man 7 ipv6".
See also:
ConnectedRawV4SocketProtocol

RawV4SocketProtocol

RawV6SocketProtocol

Definition at line 159 of file ConnectedRawINetSocketHandle.hh.


Constructors

void  init_client () const
  Create unconnected client socket for IPPROTO_RAW.
void  init_client (int const &protocol) const
  Create unconnected client socket for protocol.
void  init_client (int const &protocol, INet6SocketAddress const &address) const
  Create client socket and connect.

Member Function Documentation

void senf::ConnectedRawV6SocketProtocol::
init_client ( int const &  protocol,
INet6SocketAddress const &  address )

Create client socket and connect.

Creates a new client socket for the given protocol and connects to the given address.

Parameters:
[in]  protocol  Layer 4 protocol to filter for / to send
[in]  address  local address to connect to
Note:
This member is implicitly called from the // ProtocolClientSocketHandle::ProtocolClientSocketHandle() constructor (??)

Definition at line 82 of file ConnectedRawINetSocketHandle.cc.

void senf::ConnectedRawV6SocketProtocol::
init_client ( int const &  protocol )

Create unconnected client socket for protocol.

Definition at line 72 of file ConnectedRawINetSocketHandle.cc.

void senf::ConnectedRawV6SocketProtocol::
init_client ()

Create unconnected client socket for IPPROTO_RAW.

Note:
This member is implicitly called from the ProtocolClientSocketHandle::ProtocolClientSocketHandle() constructor

Definition at line 66 of file ConnectedRawINetSocketHandle.cc.


The documentation for this class was generated from the following files: