Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

net::Socket Class Reference

#include <Socket.h>

Inheritance diagram for net::Socket:

GeneralFile List of all members.

Detailed Description

A 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)


The documentation for this class was generated from the following files:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.