Socket (superclass) |
Constructors: |
Socket(void);
Socket(int sd);
Socket(ENetwork Network, EProtocol Protocol);
Socket(Socket& sock);
|
General Description: |
General socket class -- not intended for direct instantiation. |
Methods |
void Bind(HostAddress& Addr); |
Bind socket to port/interface. |
void CloseInput(void) const; |
Close input stream. |
void CloseOutput(void) const; |
Close output stream. |
int Send(Message& Msg, int Options=0) const; |
Send message to connected site.int Send(HostAddress& Addr, Message& Msg, |
int Options=0) const; |
Send directed message.int Receive(Message& Msg, int Options=0) |
const; |
Receive message from connection.int Receive(HostAddress& Addr, Message& Msg, |
int Options=0) const; |
Receive directed message. |
void PermitRoute(bool Setting); |
Allow routable packets. |
void KeepAlive(bool Setting); |
Keep connection alive. |
void ShareAddress(bool Setting); |
Share port/interface address. |
int GetReceiveSize(void); |
|
void SetReceiveSize(int Bytes); |
Get/set receive buffer size. |
int GetSendSize(void); |
|
void SetSendSize(int Bytes); |
Get/set send buffer size. |
int GetMinReceive(void); |
|
void SetMinReceive(int Bytes); |
Get/set minimum watermark for SIGIO receive signal. |
int GetMinSend(void); |
|
void SetMinSend(int Bytes); |
Get/set minimum watermark for SIGIO send signal. |
struct timeval GetReceiveTimeout(void); |
|
void SetReceiveTimeout(struct timeval& val); |
Get/set time before aborting a receive. |
struct timeval GetSendTimeout(void); |
|
void SetSendTimeout(struct timeval& val); |
Get/set time before aborting a send. |
ENetwork GetType(void); |
Get the socket type (network). |
virtual int GetTTL(void); |
|
virtual void SetTTL(int Hops); |
Get/set the time-to-live. |
int GetError(void); |
Get any pending errors. |
Exceptions Thrown |
NetException, FileException, NetConnectException, NetIOException, NetConfigException, |