Function

Purplepmp_create_map

Declaration [src]

gboolean
purple_pmp_create_map (
  PurplePmpType type,
  unsigned short privateport,
  unsigned short publicport,
  int lifetime
)

Description [src]

Remove the NAT-PMP mapping for a specified type on a specified port.

Parameters

type PurplePmpType
 

The PurplePmpType.

privateport unsigned short
 

The private port on which we are listening locally.

publicport unsigned short
 

The public port on which we are expecting a response.

lifetime int
 

The lifetime of the mapping. It is recommended that this be PURPLE_PMP_LIFETIME.

Return value

Returns: gboolean
 

TRUE if successful; FALSE if unsuccessful.