Socket_write

Function Socket_write 

Source
pub unsafe extern "C" fn Socket_write(
    self_: Socket,
    buf: *mut u8,
    size: c_int,
) -> c_int
Expand description

send a message through the socket

Implementation of this function is MANDATORY

§Arguments

  • self - client, connection or server socket instance

§Returns

number of bytes transmitted of -1 in case of an error