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

#include <UDSockets.hxx>

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

Public Member Functions

 NetSocket ()
int put (const void *ptr, unsigned int size, bool len_prefix=true)
int get (void *ptr, unsigned int size, bool len_prefix=true)

Public Attributes

int server_socket
int conn_socket
int portnum
struct sockaddr_un server_address client_address
struct timeval timeout

Private Member Functions

int loopWrite (int fd, const void *ptr, unsigned int nbytes)

Detailed Description

Definition at line 51 of file UDSockets.hxx.

Constructor & Destructor Documentation

◆ NetSocket()

SoDa::UD::NetSocket::NetSocket ( )
inline

Definition at line 53 of file UDSockets.hxx.

References timeout.

Member Function Documentation

◆ get()

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

◆ loopWrite()

int SoDa::UD::NetSocket::loopWrite ( int fd,
const void * ptr,
unsigned int nbytes )
private

◆ put()

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

Member Data Documentation

◆ client_address

struct sockaddr_un server_address SoDa::UD::NetSocket::client_address

Definition at line 64 of file UDSockets.hxx.

◆ conn_socket

int SoDa::UD::NetSocket::conn_socket

◆ portnum

int SoDa::UD::NetSocket::portnum

Definition at line 63 of file UDSockets.hxx.

◆ server_socket

int SoDa::UD::NetSocket::server_socket

Definition at line 63 of file UDSockets.hxx.

Referenced by SoDa::UD::ServerSocket::~ServerSocket().

◆ timeout

struct timeval SoDa::UD::NetSocket::timeout

Definition at line 66 of file UDSockets.hxx.

Referenced by NetSocket().


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