pub unsafe extern "C" fn pomp_ctx_send_msg(
ctx: *mut pomp_ctx,
msg: *const pomp_msg,
) -> c_intExpand description
Send a message to a context. For server it will broadcast to all connected clients. If there is no connection, the message is lost and no error is returned. For client, if there is no connection, -ENOTCONN is returned. @param ctx : context. @param msg : message 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.