17 #ifndef HH_SENF_Socket_Protocols_BSDSocketProtocol_ 18 #define HH_SENF_Socket_Protocols_BSDSocketProtocol_ 1 22 #include <boost/cstdint.hpp> 41 std::pair<bool,unsigned>
linger()
const;
47 void linger(
bool enable,
unsigned timeout=0)
const;
60 void priority(boost::uint8_t value)
const;
77 void rcvbuf(
unsigned size)
const;
86 void sndbuf(
unsigned size)
const;
89 template <
unsigned short N>
95 void rcvLowat(
unsigned lowWat)
const;
96 void sndLowat(
unsigned lowWat)
const;
99 void do_attachSocketFilter(::sock_filter * filter,
unsigned short len);
111 bool reuseaddr()
const;
114 void reuseaddr(
bool value)
const;
void mtuDiscovery(int mode) const
unsigned rcvbuf() const
Check receive buffer size.
void detachSocketFilter()
Socket Protocol base class.
void sndLowat(unsigned lowWat) const
unsigned sndbuf() const
Check send buffer size.
boost::uint8_t priority() const
Get packet priority assigned to outgoing packets.
void attachSocketFilter(::sock_filter(&filter)[N])
Protocol facet providing basic BSD socket functionality.
std::pair< bool, unsigned > linger() const
Return current linger status.
int error() const
Get and clear pending socket error.
Protocol facet providing basic connection oriented BSD socket functions.
void rcvLowat(unsigned lowWat) const
SocketProtocol and ConcreteSocketProtocol public header.