#include <network_delivery_socket.h>
Inheritance diagram for CL_UniformSocket:


Public Methods | |
| virtual int | get_socket () |
| CL_UniformSocket (CL_ConnectionProvider *provider) | |
| virtual | ~CL_UniformSocket () |
| virtual bool | try_connect (unsigned long remote_ip_network_format, int port) |
| virtual bool | init_socket (int init_socket=-1) |
| virtual bool | peek () |
| virtual CL_ConnectionPacket | receive () |
| retval: True if a message can be received by a call to receive(). | |
| virtual void | send (CL_ConnectionPacket message) |
| virtual bool | connection_lost () |
| param: message - Message/data to be sent. | |
| bool | send_avail () |
Protected Types | |
| enum | { expect_magic, expect_packet_size, expect_packet_data, packet_finished } |
Protected Methods | |
| unsigned long | read_int () |
| void | write_int (unsigned long value) |
| void | write_data (void *data, unsigned int size) |
| bool | read_avail () |
| bool | require_avail (unsigned int size) |
| bool | get_avail (void *buf, unsigned int size) |
Protected Attributes | |
| CL_SOCKET | sock |
| bool | is_connection_lost |
| char* | cur_message |
| int | cur_message_size |
| enum CL_UniformSocket:: { ... } | recv_state |
| CL_ConnectionProvider* | provider |
Private Attributes | |
| std::string | recv_buffer |
| std::queue<std::string> | send_buffer |
| int | send_pos |
|
|
Definition at line 93 of file network_delivery_socket.h. |
|
|
|
|
|
|
|
|
param: message - Message/data to be sent.
Reimplemented from CL_Connection. Reimplemented in CL_UniformAcceptSocket. |
|
|
|
|
|
Definition at line 64 of file network_delivery_socket.h. |
|
|
|
|
|
Reimplemented from CL_Connection. Reimplemented in CL_UniformAcceptSocket. |
|
|
|
|
|
|
|
|
retval: True if a message can be received by a call to receive().
Reimplemented from CL_Connection. Reimplemented in CL_UniformAcceptSocket. |
|
|
|
|
|
Reimplemented from CL_Connection. Reimplemented in CL_UniformAcceptSocket. |
|
|
|
|
|
Reimplemented in CL_UniformAcceptSocket. |
|
|
|
|
|
|
|
|
Definition at line 85 of file network_delivery_socket.h. |
|
|
Definition at line 86 of file network_delivery_socket.h. |
|
|
Definition at line 83 of file network_delivery_socket.h. |
|
|
Definition at line 105 of file network_delivery_socket.h. |
|
|
Definition at line 109 of file network_delivery_socket.h. |
|
|
|
|
|
Definition at line 110 of file network_delivery_socket.h. |
|
|
Definition at line 111 of file network_delivery_socket.h. |
|
|
Definition at line 82 of file network_delivery_socket.h. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001