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

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. |
|
| 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.
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.
| [in] | iface | name of interface to bind to or empty to remove binding |
Definition at line 42 of file INetSocketProtocol.cc.