Skip to main content

pamoja_coap_server_connect

Function pamoja_coap_server_connect 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_coap_server_connect( server: *mut PamojaCoapServer, ) -> PamojaStatus
Expand description

Binds the server’s socket and starts answering requests.

§Arguments

  • server - the server.

§Returns

PamojaStatus::Ok once bound, or PamojaStatus::Transport if the address cannot be bound.

§Safety

server must be a live handle from pamoja_coap_server_new.