O2 2.0
A communication protocol for interactive music and media applications.
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Fds_info Class Reference
Inheritance diagram for Fds_info:
O2obj

Public Member Functions

 Fds_info (SOCKET sock, int net_tag, int port, Net_interface *own)
 
void set_events (short events)
 
short get_events ()
 
O2err connect (const char *ip, int tcp_port)
 
O2err can_send ()
 
O2err send_tcp (bool block, O2netmsg_ptr msg)
 
void enqueue (O2netmsg_ptr msg)
 
O2err send (bool block)
 
int read_event_handler ()
 
O2err read_whole_message (SOCKET sock)
 
void message_cleanup ()
 
Fds_infocleanup (const char *error, SOCKET sock)
 
void reset ()
 
void close_socket (bool now)
 
SOCKET get_socket ()
 
- Public Member Functions inherited from O2obj
void * operator new (size_t size)
 
void operator delete (void *ptr)
 

Static Public Member Functions

static Fds_infocreate_tcp_client (const char *ip, int port, Net_interface *own)
 
static Fds_infocreate_tcp_client (Net_address *remote_addr, Net_interface *own)
 
static Fds_infocreate_udp_server (int *port, bool reuse)
 
static Fds_infocreate_tcp_server (int *port, Net_interface *own)
 
static const char * tag_to_string (int tag)
 

Public Attributes

int net_tag
 
int fds_index
 
int delete_me
 
Read_type read_type
 
Write_type write_type
 
int32_t in_length
 
O2netmsg_ptr in_message
 
int in_length_got
 
int in_msg_got
 
O2netmsg_ptr out_message
 
int out_msg_sent
 
int port
 
Net_interfaceowner
 

The documentation for this class was generated from the following files: