Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PString PSTUNClient::GetNatTypeString ( NatTypes  type ) [static]

Get NatTypes enumeration as an English string for the type.

typeNAT Type to get name of

Definition at line 554 of file pstun.cxx.

Referenced by GetNatTypeName().

  static const char * const Names[NumNatTypes] = {
    "Unknown NAT",
    "Open NAT",
    "Cone NAT",
    "Restricted NAT",
    "Port Restricted NAT",
    "Symmetric NAT",
    "Symmetric Firewall",
    "Partially Blocked"

  if (type < NumNatTypes)
    return Names[type];
  return psprintf("<NATType %u>", type);

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index