SoDaRadio-12.2.0-cut_dependencies:6c82803
Loading...
Searching...
No Matches
SoDa::IP::ClientSocket Class Reference

#include <IPSockets.hxx>

Inheritance diagram for SoDa::IP::ClientSocket:
SoDa::IP::NetSocket

Public Member Functions

 ClientSocket (const char *hostname, int portnum, TransportType transport=TCP)
 ~ClientSocket ()
Public Member Functions inherited from SoDa::IP::NetSocket
 NetSocket ()
int put (const void *ptr, unsigned int size)
int get (void *ptr, unsigned int size)
int putRaw (const void *ptr, unsigned int size)
int getRaw (const void *ptr, unsigned int size, unsigned int usec_timeout=0)
 get a raw string of <size> bytes...
void setNonBlocking ()
void setBlocking ()

Private Attributes

struct hostent * server

Additional Inherited Members

Public Attributes inherited from SoDa::IP::NetSocket
int server_socket
int conn_socket
int portnum
struct sockaddr_in server_address client_address
bool non_blocking_mode
struct timeval timeout

Detailed Description

Definition at line 125 of file IPSockets.hxx.

Constructor & Destructor Documentation

◆ ClientSocket()

SoDa::IP::ClientSocket::ClientSocket ( const char * hostname,
int portnum,
TransportType transport = TCP )

◆ ~ClientSocket()

SoDa::IP::ClientSocket::~ClientSocket ( )
inline

Definition at line 128 of file IPSockets.hxx.

References SoDa::IP::NetSocket::conn_socket.

Member Data Documentation

◆ server

struct hostent* SoDa::IP::ClientSocket::server
private

Definition at line 130 of file IPSockets.hxx.


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