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

Socket

The socket class. More...
The socket class is a simple wrapper over the socket descriptor.

Features of the socket class:

Using the socket class:

 extern sockaddr* address;
 char[1024] buffer;
 socket s(AF_INET, SOCK_STREAM);
 s.connect(address, sizeof(sockaddr_in));
 s.read(buffer, 1024);
 s.shutdown();

Note that this socket class is an exposition of the operating system primitives; the true generic representation of a communication stream is the basic_socketbuf template class.


Generated on Sat May 21 21:25:46 2005 for Socket Streams Library by  doxygen 1.4.3