![]() | |
| Entire Class Index | Main Class Index | Cross Index | Global Index |
This is the lowlevel raw socket interface in clanlib.
Contained in: global
Derived from:
none
Derived by:
none
Group: Network (Sockets)
#include <ClanLib/network.h>
public function member index: |
||
Construction: |
||
| CL_Socket | (); | |
| CL_Socket | (int socket); | |
| CL_Socket | (Type type); | |
| CL_Socket | (const CL_Socket& copy); | |
| virtual | ~CL_Socket | (); |
Attributes: |
||
| int | get_socket | () const; |
| CL_EventTrigger* | get_read_trigger | () const; |
| CL_EventTrigger* | get_write_trigger | () const; |
| CL_EventTrigger* | get_exception_trigger | () const; |
| CL_IPAddress | get_source_address | () const; |
| CL_IPAddress | get_dest_address | () const; |
Operations: |
||
| CL_Socket& | operator = | (const CL_Socket& other); |
| void | set_nonblocking | (bool nonblocking = true); |
| void | set_nodelay | (bool nodelay = true); |
| int | send | (const void* data, int size); |
| int | send | (const void* data, int size, const CL_IPAddress& dest); |
| int | send | (const std::string& string); |
| void | push | (const std::string& string); |
| int | recv | (void* data, int size); |
| int | recv | (void* data, int size, CL_IPAddress& from); |
| void | connect | (const CL_IPAddress& address); |
| void | shutdown | (ShutdownHow how); |
| void | bind | (const CL_IPAddress& address); |
| void | listen | (int backlog); |
| CL_Socket | accept | (); |
Signals: |
||
| CL_Signal_v0& | sig_read_triggered | (); |
| CL_Signal_v0& | sig_write_triggered | (); |
| CL_Signal_v0& | sig_exception_triggered | (); |
| CL_Signal_v0& | sig_disconnected | (); |
Implementation: |
||
| CL_Socket | (class CL_Socket_Generic* impl); | |