21 #ifndef HH_SENF_Socket_Protocols_BSDAddressingPolicy_ 22 #define HH_SENF_Socket_Protocols_BSDAddressingPolicy_ 1 44 static void do_local(
FileHandle const & handle,
struct sockaddr * addr, socklen_t * len);
45 static void do_peer(
FileHandle const & handle,
struct sockaddr * addr, socklen_t * len);
46 static void do_bind(
FileHandle const & handle,
struct sockaddr
const * addr, socklen_t len);
74 template <
class Address>
79 template <
class SPolicy>
81 typename IfCommunicationPolicyIs<SPolicy,ConnectedCommunicationPolicy>::type * = 0);
83 template <
class SPolicy>
92 static void local(
FileHandle const & handle, Address & addr);
98 template <
class SPolicy>
100 typename IfCommunicationPolicyIs<SPolicy,ConnectedCommunicationPolicy>::type * = 0);
102 template <
class SPolicy>
112 static void bind(
FileHandle const & handle, Address
const & addr);
CommunicationPolicy public header.
static void do_local(FileHandle const &handle, struct sockaddr *addr, socklen_t *len)
BSDSocketAddress public header.
static void do_peer(FileHandle const &handle, struct sockaddr *addr, socklen_t *len)
static void do_connect(FileHandle const &handle, struct sockaddr const *addr, socklen_t len)
Policy defining socket addressing.
Basic file handle wrapper.
GenericBSDSocketAddress Address
void connect(connector::FastActiveOutput< PacketType > &source, connector::FastPassiveInput< PacketType > &target)
basic SocketHandle supporting protocol and policy abstraction
FileHandle public header.
static void do_bind(FileHandle const &handle, struct sockaddr const *addr, socklen_t len)
Non-template implementation class of BSDAddressingPolicyMixin template.
SocketHandle public header.
Template for generic AddressingPolicy implementation based on the BSD socket API. ...
Generic BSD sockaddr storage.