Unix Domain Datagram Socket Protocol. More...

#include <senf/Socket/Protocols/UN/UNDatagramSocketHandle.hh>

Inheritance diagram for senf::UNDatagramSocketProtocol:

Constructors

void init_client () const
 Create unconnected client socket. More...
 
void init_client (UNSocketAddress const &address) const
 Create client socket and bind. More...
 

Additional Inherited Members

- Public Types inherited from senf::ConcreteSocketProtocol< UNDatagramSocket_Policy, UNDatagramSocketProtocol >
typedef UNDatagramSocket_Policy Policy
 The protocols policy. More...
 
- Public Member Functions inherited from senf::ConcreteSocketProtocol< UNDatagramSocket_Policy, UNDatagramSocketProtocol >
Policy const & policy () const
 Access the policy instance. More...
 
 ~ConcreteSocketProtocol ()=0
 
- Public Member Functions inherited from senf::SocketProtocol
virtual void state (SocketStateMap &map, unsigned lod) const
 Return socket state information. More...
 
int fd () const
 Get file descriptor. More...
 
 SocketProtocol ()
 
virtual ~SocketProtocol ()=0
 
- Public Member Functions inherited from senf::UNSocketProtocol
virtual void close ()
 Close socket. More...
 
virtual void terminate () const
 Forcibly close socket. More...
 
unsigned available () const
 Return (maximum) number of bytes available for reading without < blocking. More...
 
bool eof () const
 Check for end-of-file condition. More...
 
- Public Member Functions inherited from senf::BSDSocketProtocol
std::pair< bool, unsigned > linger () const
 Return current linger status. More...
 
void linger (bool enable, unsigned timeout=0) const
 Change linger status. More...
 
boost::uint8_t priority () const
 Get packet priority assigned to outgoing packets. More...
 
void priority (boost::uint8_t value) const
 Set packet priority (e.g. TOS) More...
 
int error () const
 Get and clear pending socket error. More...
 
unsigned rcvbuf () const
 Check receive buffer size. More...
 
void rcvbuf (unsigned size) const
 Change receive buffer size. More...
 
unsigned sndbuf () const
 Check send buffer size. More...
 
void sndbuf (unsigned size) const
 Change size of send buffer. More...
 
template<unsigned short N>
void attachSocketFilter (::sock_filter(&filter)[N])
 
void detachSocketFilter ()
 
void mtuDiscovery (int mode) const
 
void rcvLowat (unsigned lowWat) const
 
void sndLowat (unsigned lowWat) const
 
- Public Member Functions inherited from senf::AddressableBSDSocketProtocol
bool reuseaddr () const
 Return current reuseaddr state. More...
 
void reuseaddr (bool value) const
 Set reuseraddr state. More...
 
- Protected Member Functions inherited from senf::ConcreteSocketProtocol< UNDatagramSocket_Policy, UNDatagramSocketProtocol >
ClientSocketHandle< PolicyclientHandle () const
 Get client handle for associated socket. More...
 
ServerSocketHandle< PolicyserverHandle () const
 Get server handle for associated socket. More...
 
- Protected Member Functions inherited from senf::SocketProtocol
FileHandle fh () const
 Get a FileHandle for this instance. More...
 
void fd (int) const
 Initialize file descriptor. More...
 

Detailed Description

Unix Domain Datagram Socket Protocol.

Socket Handle typedefs:
UNDatagramClientSocketHandle (ProtocolClientSocketHandle)
Policy Interface: (to be checked)
ClientSocketHandle::read(), ClientSocketHandle::readfrom(), ClientSocketHandle::writeto(), ClientSocketHandle::bind(), ClientSocketHandle::local()
Address Type:
UNSocketAddress

UNDatagramSocketProtocol provides an datagram protocol socket based on the unix domain addressing.

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

Definition at line 63 of file UNDatagramSocketHandle.hh.

Member Function Documentation

◆ init_client() [1/2]

void senf::UNDatagramSocketProtocol::init_client ( ) const

Create unconnected client socket.

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

Definition at line 31 of file UNDatagramSocketHandle.cc.

◆ init_client() [2/2]

void senf::UNDatagramSocketProtocol::init_client ( UNSocketAddress const &  address) const

Create client socket and bind.

Creates a new client socket and bind to the given address.

Parameters
[in]addresslocal address to bind to
Note
This member is implicitly called from the ProtocolClientSocketHandle::ProtocolClientSocketHandle() constructor

Definition at line 39 of file UNDatagramSocketHandle.cc.


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