Skip to main content

ddsrt_socket_ext_init

Function ddsrt_socket_ext_init 

Source
pub unsafe extern "C" fn ddsrt_socket_ext_init(
    sockext: *mut ddsrt_socket_ext_t,
    sock: ddsrt_socket_t,
)
Expand description

@brief Initialize an “extended socket” based on a normal socket

@note The “extended socket” currently only serves as a holder for the WSARecvMsg pointer on Windows.

@param[out] sockext the extended socket @param[in] sock the socket (file descriptor) created by @ref ddsrt_socket