senf::INetSocketProtocol Class Reference
[Protocol Facets]

Generic addressing type independent INet protocol facet. More...

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

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

List of all members.


Detailed Description

Generic addressing type independent INet protocol facet.

Definition at line 49 of file INetSocketProtocol.hh.


Public Member Functions

void  bindInterface (std::string const &iface) const
  Bind socket to specific interface.
std::string  bindInterface ()
  Get bound interface.

Member Function Documentation

std::string senf::INetSocketProtocol::
bindInterface ()

Get bound interface.

Returns the interface, the socket is currently bound to. Returns the empty string, if not bound to any interface.

Returns:
Bound interface name

Definition at line 49 of file INetSocketProtocol.cc.

void senf::INetSocketProtocol::
bindInterface ( std::string const &  iface )

Bind socket to specific interface.

When a socket is bound to an interface, it will only receive data received on that interface. If the interface name is empty, the binding is removed.

Parameters:
[in]  iface  name of interface to bind to or empty to remove binding
Implementation note:
Sets the SO_BINDTODEVICE socket option

Definition at line 42 of file INetSocketProtocol.cc.


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