#include <ZeSocket.h>
Public Member Functions | |
ZeSocket (int type=SOCK_STREAM) throw (net_error) | |
ZeSocket (SOCKET s, bool dummy) throw (net_error) | |
virtual | ~ZeSocket () |
void | connect (const Url &url, short int port) throw (net_error) |
void | send (const std::string &s) throw (net_error) |
void | send (const ZeBuffer< byte > &buffer) throw (net_error) |
void | send (const byte *buf, size_t size) throw (net_error) |
std::string | receiveString (int maxbytes=0) throw (std::runtime_error) |
std::string | receiveLine () throw (net_error) |
ZeBuffer< byte > | receive (int maxbytes=0) throw (std::runtime_error) |
ZeBuffer< byte > | receiveNoWait () throw (std::runtime_error) |
std::string | receiveStringNoWait () throw (net_error) |
void | close () throw (net_error) |
bool | eof () throw (net_error) |
const std::string & | getLocalName () const |
int | howMuchToRead () const |
Protected Attributes | |
bool | m_eof |
SOCKET | m_socket |
int | type |
sockaddr_in | m_sockaddr |
Private Member Functions | |
ZeSocket (const ZeSocket ©) | |
void | operator= (const ZeSocket ©) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|