.TH "bark_net_cbs" 3 "Bark" \" -*- nroff -*- .ad l .nh .SH NAME bark_net_cbs \- Main-thread network event callbacks dispatched by \fBbark_net_poll()\fP\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .SS "Public Attributes" .in +1c .ti -1c .RI "void(* \fBon_ws_open\fP )(void *user, \fBbark_ws_t\fP *ws)" .br .ti -1c .RI "void(* \fBon_ws_msg\fP )(void *user, \fBbark_ws_t\fP *ws, const uint8_t *data, size_t len, int is_text)" .br .ti -1c .RI "void(* \fBon_ws_close\fP )(void *user, \fBbark_ws_t\fP *ws, int code)" .br .ti -1c .RI "void(* \fBon_http_resp\fP )(void *user, uint32_t req_id, int status, const uint8_t *body, size_t len, const char *content_type)" .br .in -1c .SH "Detailed Description" .PP Main-thread network event callbacks dispatched by \fBbark_net_poll()\fP\&. .SH "Member Data Documentation" .PP .SS "void(* bark_net_cbs::on_http_resp) (void *user, uint32_t req_id, int status, const uint8_t *body, size_t len, const char *content_type)" Fired when a request issued via \fBbark_http_get()\fP or \fBbark_http_post()\fP completes\&. .SS "void(* bark_net_cbs::on_ws_close) (void *user, \fBbark_ws_t\fP *ws, int code)" Fired when a WebSocket connection closes with RFC 6455 close \fRcode\fP\&. .SS "void(* bark_net_cbs::on_ws_msg) (void *user, \fBbark_ws_t\fP *ws, const uint8_t *data, size_t len, int is_text)" Fired for each incoming WebSocket text (\fRis_text\fP != 0) or binary message\&. .SS "void(* bark_net_cbs::on_ws_open) (void *user, \fBbark_ws_t\fP *ws)" Fired when a WebSocket connection enters \fBBARK_WS_OPEN\fP\&. .SH "Author" .PP Generated automatically by Doxygen for Bark from the source code\&.