class Network


Public Methods

[more]virtual int connectTo(string host, int port)
connect to a specified host returning a socket identifier
[more]virtual bool isConnected()
true iff connected to a host
[more]virtual int availableData()
Return how much available data there is waiting to be read
[more]virtual int status()
Return status
[more]virtual void sendData(const char* data, int len)
Send data
[more]virtual void disconnect()
Disconnect
[more]virtual void socketData(char* &data, int &len)
Call to retrieve all data available
[more]virtual void checkForData()
update socket and check for data
[more]virtual int getSock()
return socket handle
[more]virtual void setOwner(Protocol* p)
Set our owner.


Documentation

ovirtual int connectTo(string host, int port)
connect to a specified host returning a socket identifier

ovirtual bool isConnected()
true iff connected to a host

ovirtual int availableData()
Return how much available data there is waiting to be read

ovirtual int status()
Return status

ovirtual void sendData(const char* data, int len)
Send data

ovirtual void disconnect()
Disconnect

ovirtual void socketData(char* &data, int &len)
Call to retrieve all data available

ovirtual void checkForData()
update socket and check for data

ovirtual int getSock()
return socket handle

ovirtual void setOwner(Protocol* p)
Set our owner. The protocol instance we should pass all incoming data to


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.