#include <Socket.h>

Public Member Functions | |
| Socket () | |
| virtual | ~Socket () |
| void | write (char *data_in, int unsigned long) throw (SocketDisconnectedException) |
| void | write (char *data_in) throw (SocketDisconnectedException) |
| void | writeLine (char *data_in) throw (SocketDisconnectedException) |
| char * | read (unsigned long numbytes) throw (SocketDisconnectedException) |
| char * | readUntil (char endchar) throw (SocketDisconnectedException) |
| char * | readLine () throw (SocketDisconnectedException) |
| bool | isDataWaiting () throw (SocketDisconnectedException) |
| bool | isConnected () |
| void | getHostIP (string &str_in) |
| void | getHostName (string &str_in) |
| void | shutdown () throw (SocketFailedException) |
| void | close () throw (SocketFailedException) |
| Socket & | operator<< (string &s) throw (SocketDisconnectedException) |
| Socket & | operator<< (const char *s) throw (SocketDisconnectedException) |
| Socket & | operator<< (Socket &(*f)(Socket &)) |
| Socket & | operator>> (string &s) throw (SocketDisconnectedException) |
Static Public Member Functions | |
| static void | getLocalHostName (string &str_in) throw (SocketFailedException) |
| static void | getLocalHostAddrs (vector< string > &strvect_in) throw (SocketFailedException) |
| static void | initSockets () throw (SocketFailedException) |
| static void | shutdownSockets () throw (SocketFailedException) |
Public Attributes | |
| int | sock_handle |
| struct sockaddr_in addr | local_addr |
Protected Attributes | |
| struct hostent * | host |
| const char * | address |
| int | port |
Friends | |
| Socket & | endl (Socket &cs) throw (SocketDisconnectedException) |
| Socket::Socket | ( | ) |
| Socket::~Socket | ( | ) | [virtual] |
| void Socket::write | ( | char * | data_in, | |
| int unsigned | long | |||
| ) | throw (SocketDisconnectedException) |
| void Socket::write | ( | char * | data_in | ) | throw (SocketDisconnectedException) |

| void Socket::writeLine | ( | char * | data_in | ) | throw (SocketDisconnectedException) |

| char * Socket::read | ( | unsigned long | numbytes | ) | throw (SocketDisconnectedException) |
| char * Socket::readUntil | ( | char | endchar | ) | throw (SocketDisconnectedException) |
| char * Socket::readLine | ( | ) | throw (SocketDisconnectedException) |

| bool Socket::isDataWaiting | ( | ) | throw (SocketDisconnectedException) |
| bool Socket::isConnected | ( | ) |
| void Socket::getHostIP | ( | string & | str_in | ) |
| void Socket::getHostName | ( | string & | str_in | ) |

| void Socket::getLocalHostName | ( | string & | str_in | ) | throw (SocketFailedException) [static] |
| void Socket::getLocalHostAddrs | ( | vector< string > & | strvect_in | ) | throw (SocketFailedException) [static] |

| void Socket::shutdown | ( | ) | throw (SocketFailedException) |
| void Socket::close | ( | ) | throw (SocketFailedException) |
| Socket & Socket::operator<< | ( | string & | s | ) | throw (SocketDisconnectedException) |

| Socket & Socket::operator<< | ( | const char * | s | ) | throw (SocketDisconnectedException) |

| Socket & Socket::operator>> | ( | string & | s | ) | throw (SocketDisconnectedException) |

| void Socket::initSockets | ( | ) | throw (SocketFailedException) [static] |
| void Socket::shutdownSockets | ( | ) | throw (SocketFailedException) [static] |
| Socket& endl | ( | Socket & | cs | ) | throw (SocketDisconnectedException) [friend] |
struct hostent* Socket::host [read, protected] |
const char* Socket::address [protected] |
int Socket::port [protected] |
struct sockaddr_in addr Socket::local_addr [read] |
1.5.6