Module crab_nat::pcp

source ·

Structs§

  • The values that must be explicitly defined for all PCP single-port and peer mapping requests.
  • A mapping to a peer’s socket address through the gateway (i.e., the PCP server).
  • A port mapping on the gateway using PCP to map all ports to our client through the PCP server.

Enums§

Constants§

Functions§

  • Attempts to remove PCP port mappings for our client from the gateway.
  • Attempts to open a mapping to a remote peer’s socket address.
  • Attempts to map a port on the gateway using PCP. Will try to use the given external port if it is Some, otherwise it will let the gateway choose.
  • Attempts to map all ports on the gateway to the corresponding port on our client using PCP. If the protocol is None, it will try to map all ports for all protocols. Otherwise, only the specified protocol will be mapped.

Type Aliases§

  • A unqie session identifier for a PCP client.