pub unsafe extern "C" fn pomp_ctx_send_raw_buf(
ctx: *mut pomp_ctx,
buf: *mut pomp_buffer,
) -> c_intExpand description
Send a buffer to a raw context. For server it will broadcast to all connected clients. If there is no connection, no buffer is sent and no error is returned. For client, if there is no connection, -ENOTCONN is returned. @param ctx : context. @param buf : buffer to send. @return 0 in case of success, negative errno value in case of error.
@remarks the operation will be queued automatically for later processing in case the underlying socket buffer is full. Use ‘pomp_ctx_set_socket_cb’ to have more information about completion.