SoDaRadio-5.0.3-master:8901fb5
|
#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... More... | |
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 55 of file IPSockets.hxx.
|
inline |
Definition at line 57 of file IPSockets.hxx.
int SoDa::IP::NetSocket::get | ( | void * | ptr, |
unsigned int | size | ||
) |
Definition at line 177 of file IPSockets.cxx.
References conn_socket.
Referenced by SoDa::IP::ServerSocket::get(), and main().
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 |
Definition at line 245 of file IPSockets.cxx.
References conn_socket, non_blocking_mode, setBlocking(), and setNonBlocking().
Referenced by SoDa::N200Control::setTXOff(), and SoDa::N200Control::setTXOn().
|
private |
Definition at line 140 of file IPSockets.cxx.
int SoDa::IP::NetSocket::put | ( | const void * | ptr, |
unsigned int | size | ||
) |
Definition at line 164 of file IPSockets.cxx.
References conn_socket, and loopWrite().
Referenced by main(), and SoDa::IP::ServerSocket::put().
int SoDa::IP::NetSocket::putRaw | ( | const void * | ptr, |
unsigned int | size | ||
) |
Definition at line 239 of file IPSockets.cxx.
References conn_socket, and loopWrite().
Referenced by SoDa::N200Control::setTXOff(), and SoDa::N200Control::setTXOn().
|
inline |
Definition at line 87 of file IPSockets.hxx.
Referenced by getRaw(), and SoDa::N200Control::N200Control().
|
inline |
Definition at line 81 of file IPSockets.hxx.
Referenced by SoDa::IP::ClientSocket::ClientSocket(), getRaw(), and SoDa::IP::LineServerSocket::LineServerSocket().
struct sockaddr_in server_address SoDa::IP::NetSocket::client_address |
Definition at line 94 of file IPSockets.hxx.
Referenced by SoDa::IP::ServerSocket::isReady().
int SoDa::IP::NetSocket::conn_socket |
Definition at line 93 of file IPSockets.hxx.
Referenced by SoDa::IP::ClientSocket::ClientSocket(), get(), SoDa::IP::LineServerSocket::getLine(), getRaw(), SoDa::IP::ServerSocket::isReady(), put(), and putRaw().
bool SoDa::IP::NetSocket::non_blocking_mode |
Definition at line 95 of file IPSockets.hxx.
Referenced by getRaw().
int SoDa::IP::NetSocket::portnum |
Definition at line 93 of file IPSockets.hxx.
int SoDa::IP::NetSocket::server_socket |
Definition at line 93 of file IPSockets.hxx.
Referenced by SoDa::IP::ServerSocket::isReady(), and SoDa::IP::ServerSocket::ServerSocket().
struct timeval SoDa::IP::NetSocket::timeout |
Definition at line 97 of file IPSockets.hxx.