Skip to main content

pamoja_gateway_packet_token

Function pamoja_gateway_packet_token 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_packet_token( packet: *const PamojaGatewayPacket, ) -> u16
Expand description

Returns a packet’s token, which pairs it with its answer.

§Arguments

  • packet - the packet.

§Returns

The token, or 0 if packet is null.

§Safety

packet must be a live handle, or null.