class SocketConnection

SocketConnection is a subclass of ByteStreamConnection that reads and writes bytes to/from a socket. More...

Definition#include <sysadm/SocketConnection.h>
InheritsByteStreamConnection
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

SocketConnection is a subclass of ByteStreamConnection that reads and writes bytes to/from a socket.

 SocketConnection (int sock)

Constructor. SocketConnection() assumes ownership of "sock", meaning that it will be closed in ~SocketConnection().

SocketConnection ()

Destructor.

String  remoteHostName ()

[virtual]

Get the name of the host at the other end of the connection.

Reimplemented from Connection.

void  sendData (const void* data, size_t nbytes)

[protected virtual]

Send data to our peer.

Reimplemented from ByteStreamConnection.

ssize_t  receiveData (void* data, size_t nbytes)

[protected virtual]

Receive data from our peer.

Reimplemented from ByteStreamConnection.


Generated by: rusty@irem on Mon Sep 18 18:07:52 2000, using kdoc 2.0a36.