TcpServerSocket_create

Function TcpServerSocket_create 

Source
pub unsafe extern "C" fn TcpServerSocket_create(
    address: *const c_char,
    port: c_int,
) -> ServerSocket
Expand description

Create a new TcpServerSocket instance

Implementation of this function is MANDATORY if server functionality is required.

§Arguments

  • address - ip address or hostname to listen on
  • port - the TCP port to listen on

§Returns

the newly create TcpServerSocket instance