#include <socket.h>
Inheritance diagram for CL_Socket:


Public Types | |
| enum | Type { tcp, udp } |
| enum | ShutdownHow { shutdown_receive, shutdown_send } |
Public Methods | |
| CL_Socket (int socket) | |
| Construction:. | |
| CL_Socket (Type type) | |
| construction:. | |
| CL_Socket (const CL_Socket ©) | |
| construction:. | |
| virtual | ~CL_Socket () |
| construction:. | |
| int | get_socket () const |
| Attributes:. | |
| CL_EventTrigger* | get_read_trigger () const |
| attributes:. | |
| CL_EventTrigger* | get_write_trigger () const |
| attributes:. | |
| CL_EventTrigger* | get_exception_trigger () const |
| attributes:. | |
| CL_IPAddress | get_source_address () const |
| attributes:. | |
| CL_IPAddress | get_dest_address () const |
| attributes:. | |
| CL_Signal_v0& | sig_read_triggered () |
| attributes:. | |
| CL_Signal_v0& | sig_write_triggered () |
| attributes:. | |
| CL_Signal_v0& | sig_exception_triggered () |
| attributes:. | |
| void | set_nonblocking (bool nonblocking=true) |
| Operations:. | |
| void | set_nodelay (bool nodelay=true) |
| operations:. | |
| int | send (const void *data, int size) |
| operations:. | |
| int | send (const void *data, int size, const CL_IPAddress &dest) |
| operations:. | |
| int | recv (void *data, int size) |
| operations:. | |
| int | recv (void *data, int size, CL_IPAddress &from) |
| operations:. | |
| void | connect (const CL_IPAddress &address) |
| operations:. | |
| void | shutdown (ShutdownHow how) |
| operations:. | |
| void | bind (const CL_IPAddress &address) |
| operations:. | |
| void | listen (int backlog) |
| operations:. | |
| CL_Socket | accept () |
| operations:. | |
| CL_Socket (class CL_Socket_Generic *impl) | |
| Implementation:. | |
Public Attributes | |
| class CL_Socket_Generic* | impl |
|
|
|
|
|
|
|
|
Construction:.
|
|
|
construction:.
|
|
|
construction:.
|
|
|
construction:.
|
|
|
Implementation:.
|
|
|
operations:.
|
|
|
operations:.
|
|
|
operations:.
|
|
|
attributes:.
|
|
|
attributes:.
|
|
|
attributes:.
|
|
|
Attributes:.
|
|
|
attributes:.
|
|
|
attributes:.
|
|
|
operations:.
|
|
|
operations:.
|
|
|
operations:.
|
|
|
operations:.
|
|
|
operations:.
|
|
|
operations:.
|
|
|
Operations:.
|
|
|
operations:.
|
|
|
attributes:.
|
|
|
attributes:.
|
|
|
attributes:.
|
|
|
Reimplemented in CL_BufferedSocket. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001