32#ifndef O2_NO_WEBSOCKETS
65 bool sent_close_command;
66 bool confirmed_ensemble;
82 O2err websocket_upgrade(
const char *key,
int msg_len);
83 O2err process_as_web_socket();
84 const char *find_field(
const char *name,
const char *value,
int length);
86 O2err ws_msg_is_complete(
const char **error);
87 O2err handle_websocket_msg(
const char **error);
90 virtual O2err close();
93 virtual O2err send(
bool block);
115 OVERLAPPED overlapped;
129 virtual void read_operation_completed(
int n);
130 virtual O2err read_eof();
Definition: o2network.h:147
Definition: websock.h:102
O2err
return values used generally by O2 functions
Definition: o2.h:329
@ O2_FAIL
a non-specific error occurred.
Definition: o2.h:339
an O2 message container
Definition: o2.h:690
Definition: o2network.h:57