MCPcopy Create free account
hub / github.com/acl-dev/acl / on_ws_frame_data

Method on_ws_frame_data

lib_acl_cpp/samples/aio/websocket/main.cpp:213–222  ·  view source on GitHub ↗

@override

Source from the content-addressed store, hash-verified

211
212 // @override
213 bool on_ws_frame_data(char* data, size_t dlen)
214 {
215 acl::string buf;
216 buf.copy(data, dlen);
217 printf("%s", buf.c_str());
218 fflush(stdout);
219
220 //(void) write(1, data, dlen);
221 return true;
222 }
223
224 // @override
225 bool on_ws_frame_finish(void)

Callers 1

handle_ws_dataMethod · 0.45

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected