#include <Socket.h>
Inheritance diagram for net::Socket:

The socket class can be used to establish communication links between or within networked machines.
Public Methods | |
| Socket (short port=0, int type=SOCK_STREAM) | |
| Socket (const Socket &other) | |
| ~Socket () | |
| void | connect (InetAddress &destAddress, short port) throw (SocketException&) |
| void | listen (void) throw (SocketException&) |
| Socket | accept (void) throw (SocketException&) |
| void | close (void) throw (util::io::IOException&) |
| void | open (void) throw (util::io::IOException&) |
| void | write (const void *msg, int len) throw (util::io::IOException&) |
| void * | read (void *buf, int len) throw (util::io::IOException&) |
| short | getLocalPort (void) |
| short | getRemotePort (void) |
| int | getSocketType (void) |
| InetAddress | getRemoteAddress (void) |
| bool | isConnected (void) |
| bool | isClosed (void) |
| Socket & | operator= (const Socket &other) |