O2 2.0
A communication protocol for interactive music and media applications.
Public Member Functions | Public Attributes | List of all members
Http_conn Class Reference
Inheritance diagram for Http_conn:
Bridge_info Proxy_info O2node Net_interface O2obj

Public Member Functions

 Http_conn (Fds_info *conn, const char *root, int port)
 
O2err websocket_upgrade (const char *key, int msg_len)
 
O2err process_as_web_socket ()
 
const char * find_field (const char *name, const char *value, int length)
 
O2err ws_msg_is_complete (const char **error)
 
O2err handle_websocket_msg (const char **error)
 
O2err send_msg_later (O2message_ptr msg)
 
virtual O2err close ()
 
virtual O2err accepted (Fds_info *conn)
 
virtual O2err deliver (O2netmsg_ptr msg)
 
virtual O2err send (bool block)
 
- Public Member Functions inherited from Bridge_info
 Bridge_info (Bridge_protocol *proto_)
 
O2err send_to_taps (O2message_ptr msg)
 
virtual void show (int indent)
 
virtual bool local_is_synchronized ()
 
O2status status (const char **process)
 
- Public Member Functions inherited from Proxy_info
 Proxy_info (const char *key, int tag)
 
virtual void remove ()
 
void delete_fds_info ()
 
virtual bool schedule_before_send ()
 
O2message_ptr pre_send (int *tcp_flag)
 
void co_info (Fds_info *fds_info, const char *msg)
 
- Public Member Functions inherited from O2node
 O2node (const char *key_, int tag_)
 
virtual const char * get_proc_name ()
 
- Public Member Functions inherited from O2obj
void * operator new (size_t size)
 
void operator delete (void *ptr)
 
- Public Member Functions inherited from Net_interface
virtual O2err connected ()
 
virtual O2err writeable ()
 

Public Attributes

const char * root
 
int port
 
Vec< char > inbuf
 
int inf
 
Http_readerreader
 
Http_connnext_pending
 
bool is_web_socket
 
bool sent_close_command
 
bool confirmed_ensemble
 
int maskx
 
int payload_offset
 
int ws_msg_len
 
O2message_ptr outgoing
 
- Public Attributes inherited from Bridge_info
int id
 
Bridge_protocolproto
 
- Public Attributes inherited from O2node
int tag
 
O2string key
 
O2nodenext
 
- Public Attributes inherited from Net_interface
Fds_infofds_info
 

Member Function Documentation

◆ accepted()

virtual O2err Http_conn::accepted ( Fds_info conn)
inlinevirtual

Implements Net_interface.

◆ deliver()

O2err Http_conn::deliver ( O2netmsg_ptr  msg)
virtual

Reimplemented from Proxy_info.

◆ send()

O2err Http_conn::send ( bool  block)
virtual

Implements Bridge_info.


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