#include <sspt_tcpsocket.h>
Public Member Functions | |
sspt_TCPSocket () | |
~sspt_TCPSocket () | |
bool | bindPort (unsigned short port) |
void | connectionLimit (int backlog) |
sspt_TCPSocket * | acceptConnection (char *clientname, int n) |
bool | connectSocket (char *ip, unsigned short port) |
int | descriptor () const |
int | writeData (unsigned char *data, int n) |
int | readData (unsigned char *data, int n) |
sspt_TCPSocket::sspt_TCPSocket | ( | ) |
sspt_TCPSocket::~sspt_TCPSocket | ( | ) |
sspt_TCPSocket* sspt_TCPSocket::acceptConnection | ( | char * | clientname, | |
int | n | |||
) |
bool sspt_TCPSocket::bindPort | ( | unsigned short | port | ) |
void sspt_TCPSocket::connectionLimit | ( | int | backlog | ) |
bool sspt_TCPSocket::connectSocket | ( | char * | ip, | |
unsigned short | port | |||
) |
int sspt_TCPSocket::descriptor | ( | ) | const [inline] |
int sspt_TCPSocket::readData | ( | unsigned char * | data, | |
int | n | |||
) |
int sspt_TCPSocket::writeData | ( | unsigned char * | data, | |
int | n | |||
) |