![]() |
SoDaRadio-12.2.0-cut_dependencies:6c82803
|
#include <IPSockets.hxx>
Public Member Functions | |
| 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 () |
Public Attributes | |
| int | server_socket |
| int | conn_socket |
| int | portnum |
| struct sockaddr_in server_address | client_address |
| bool | non_blocking_mode |
| struct timeval | timeout |
Private Member Functions | |
| int | loopWrite (int fd, const void *ptr, unsigned int nbytes) |
Definition at line 56 of file IPSockets.hxx.
|
inline |
Definition at line 58 of file IPSockets.hxx.
References timeout.
| int SoDa::IP::NetSocket::get | ( | void * | ptr, |
| unsigned int | size ) |
Referenced by SoDa::IP::ServerSocket::get().
| int SoDa::IP::NetSocket::getRaw | ( | const void * | ptr, |
| unsigned int | size, | ||
| unsigned int | usec_timeout = 0 ) |
get a raw string of <size> bytes...
| ptr | pointer to a buffer |
| size | don't return until we've gotten <size> bytes, or timed out |
| usec_timeout | return FALSE if we wait longer than this, 0 says don't timeout |
|
private |
| int SoDa::IP::NetSocket::put | ( | const void * | ptr, |
| unsigned int | size ) |
Referenced by SoDa::IP::ServerSocket::put().
| int SoDa::IP::NetSocket::putRaw | ( | const void * | ptr, |
| unsigned int | size ) |
|
inline |
Definition at line 89 of file IPSockets.hxx.
References conn_socket, and non_blocking_mode.
|
inline |
Definition at line 83 of file IPSockets.hxx.
References conn_socket, and non_blocking_mode.
Referenced by SoDa::IP::LineServerSocket::LineServerSocket().
| struct sockaddr_in server_address SoDa::IP::NetSocket::client_address |
Definition at line 96 of file IPSockets.hxx.
| int SoDa::IP::NetSocket::conn_socket |
Definition at line 95 of file IPSockets.hxx.
Referenced by SoDa::IP::ClientSocket::~ClientSocket(), SoDa::IP::ServerSocket::~ServerSocket(), SoDa::IP::LineServerSocket::getLine(), setBlocking(), and setNonBlocking().
| bool SoDa::IP::NetSocket::non_blocking_mode |
Definition at line 97 of file IPSockets.hxx.
Referenced by setBlocking(), and setNonBlocking().
| int SoDa::IP::NetSocket::portnum |
Definition at line 95 of file IPSockets.hxx.
Referenced by SoDa::IP::ClientSocket::ClientSocket(), SoDa::IP::LineServerSocket::LineServerSocket(), and SoDa::IP::ServerSocket::ServerSocket().
| int SoDa::IP::NetSocket::server_socket |
Definition at line 95 of file IPSockets.hxx.
Referenced by SoDa::IP::ServerSocket::~ServerSocket().
| struct timeval SoDa::IP::NetSocket::timeout |
Definition at line 99 of file IPSockets.hxx.
Referenced by NetSocket().