SoDaRadio-12.2.0-cut_dependencies:6c82803
Loading...
Searching...
No Matches
SoDa::UD::ServerSocket Class Reference

#include <UDSockets.hxx>

Inheritance diagram for SoDa::UD::ServerSocket:
SoDa::UD::NetSocket

Public Member Functions

 ServerSocket (const std::string &path)
 ~ServerSocket ()
bool isReady (size_t required_len=32)
int get (void *ptr, unsigned int size, bool len_prefix=true)
int put (const void *ptr, unsigned int size, bool len_prefix=true)
void setDebug (bool v)
Public Member Functions inherited from SoDa::UD::NetSocket
 NetSocket ()
int put (const void *ptr, unsigned int size, bool len_prefix=true)
int get (void *ptr, unsigned int size, bool len_prefix=true)

Static Public Member Functions

static ServerSocketPtr make (const std::string &path)

Private Attributes

bool debug
bool ready
std::string mailbox_pathname

Additional Inherited Members

Public Attributes inherited from SoDa::UD::NetSocket
int server_socket
int conn_socket
int portnum
struct sockaddr_un server_address client_address
struct timeval timeout

Detailed Description

Definition at line 71 of file UDSockets.hxx.

Constructor & Destructor Documentation

◆ ServerSocket()

SoDa::UD::ServerSocket::ServerSocket ( const std::string & path)

Referenced by make().

◆ ~ServerSocket()

SoDa::UD::ServerSocket::~ServerSocket ( )
inline

Member Function Documentation

◆ get()

int SoDa::UD::ServerSocket::get ( void * ptr,
unsigned int size,
bool len_prefix = true )
inline

Definition at line 86 of file UDSockets.hxx.

References SoDa::UD::NetSocket::get(), and ready.

◆ isReady()

bool SoDa::UD::ServerSocket::isReady ( size_t required_len = 32)

Referenced by put().

◆ make()

ServerSocketPtr SoDa::UD::ServerSocket::make ( const std::string & path)
inlinestatic

Definition at line 80 of file UDSockets.hxx.

References ServerSocket().

◆ put()

int SoDa::UD::ServerSocket::put ( const void * ptr,
unsigned int size,
bool len_prefix = true )
inline

Definition at line 92 of file UDSockets.hxx.

References isReady(), SoDa::UD::NetSocket::put(), and ready.

◆ setDebug()

void SoDa::UD::ServerSocket::setDebug ( bool v)
inline

Definition at line 101 of file UDSockets.hxx.

References debug.

Member Data Documentation

◆ debug

bool SoDa::UD::ServerSocket::debug
private

Definition at line 106 of file UDSockets.hxx.

Referenced by setDebug().

◆ mailbox_pathname

std::string SoDa::UD::ServerSocket::mailbox_pathname
private

Definition at line 108 of file UDSockets.hxx.

Referenced by ~ServerSocket().

◆ ready

bool SoDa::UD::ServerSocket::ready
private

Definition at line 107 of file UDSockets.hxx.

Referenced by get(), and put().


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