Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ZeSocket Class Reference

#include <ZeSocket.h>

List of all members.

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< bytereceive (int maxbytes=0) throw (std::runtime_error)
ZeBuffer< bytereceiveNoWait () 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 &copy)
void operator= (const ZeSocket &copy)

Constructor & Destructor Documentation

ZeSocket::ZeSocket int  type = SOCK_STREAM  )  throw (net_error)

ZeSocket::ZeSocket SOCKET  s,
bool  dummy
throw (net_error)

ZeSocket::~ZeSocket  )  [virtual]

ZeSocket::ZeSocket const ZeSocket copy  )  [private]

Member Function Documentation

void ZeSocket::close  )  throw (net_error)

void ZeSocket::connect const Url url,
short int  port
throw (net_error)

bool ZeSocket::eof  )  throw (net_error)

const string & ZeSocket::getLocalName  )  const

int ZeSocket::howMuchToRead  )  const

void ZeSocket::operator= const ZeSocket copy  )  [private]

ZeBuffer< unsigned char > ZeSocket::receive int  maxbytes = 0  )  throw (std::runtime_error)

string ZeSocket::receiveLine  )  throw (net_error)

ZeBuffer< byte > ZeSocket::receiveNoWait  )  throw (std::runtime_error)

string ZeSocket::receiveString int  maxbytes = 0  )  throw (std::runtime_error)

string ZeSocket::receiveStringNoWait  )  throw (net_error)

void ZeSocket::send const byte buf,
size_t  size
throw (net_error)

void ZeSocket::send const ZeBuffer< byte > &  buffer  )  throw (net_error)

void ZeSocket::send const std::string &  s  )  throw (net_error)

Member Data Documentation

bool ZeSocket::m_eof [protected]

sockaddr_in ZeSocket::m_sockaddr [protected]

SOCKET ZeSocket::m_socket [protected]

int ZeSocket::type [protected]

The documentation for this class was generated from the following files:
Generated on Thu Jun 16 00:13:15 2005 for Netlib for Abuse! by  doxygen 1.4.3