MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / internal_deinit

Function internal_deinit

src/humblenet/src/libsocket.cpp:359–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359void internal_deinit(internal_context_t* ctx) {
360 // how to destroy connection factory
361 if (!ctx) return;
362
363 libwebsocket_context_destroy( ctx->websocket );
364 if( ctx->webrtc )
365 libwebrtc_destroy_context( ctx->webrtc );
366
367 delete ctx;
368}
369
370void internal_set_data(internal_socket_t* socket, void* user_data) {
371 socket->user_data = user_data;

Callers 2

humblenet_p2p_shutdownFunction · 0.85
mainFunction · 0.85

Calls 2

Tested by 1

mainFunction · 0.68