Torque2D Reference
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
NetAddress Struct Reference

#include <platformNet.h>

Public Types

enum  Type { IPAddress , IPV6Address , IPBroadcastAddress , IPV6MulticastAddress }
 Acceptable NetAddress types. More...
 

Public Member Functions

bool isSameAddress (const NetAddress &other) const
 
bool isSameAddressAndPort (const NetAddress &other) const
 
bool isEqual (const NetAddress &other) const
 
U32 getHash () const
 

Public Attributes

S32 type
 Type of address (IPAddress currently)
 
union { 
 
   struct { 
 
      U8   netNum [4] 
 
   }   ipv4 
 
   struct { 
 
      U8   netNum [16] 
 
      U32   netFlow 
 
      U32   netScope 
 
   }   ipv6 
 
   struct { 
 
      U8   netNum [16] 
 
      U8   netFlow [4] 
 
      U8   netScope [4] 
 
   }   ipv6_raw 
 
address 
 
U16 port
 

Detailed Description

Generic network address

This is used to represent IP addresses.

Member Enumeration Documentation

◆ Type

enum Type

Acceptable NetAddress types.

Enumerator
IPAddress 
IPV6Address 
IPBroadcastAddress 
IPV6MulticastAddress 

Member Function Documentation

◆ getHash()

U32 getHash ( ) const

◆ isEqual()

bool isEqual ( const NetAddress other) const
inline

◆ isSameAddress()

bool isSameAddress ( const NetAddress other) const
inline

◆ isSameAddressAndPort()

bool isSameAddressAndPort ( const NetAddress other) const
inline

Member Data Documentation

◆ [union]

union { ... } address

◆ [struct]

struct { ... } ipv4

◆ [struct]

struct { ... } ipv6

◆ [struct]

struct { ... } ipv6_raw

◆ netFlow [1/2]

U32 netFlow

◆ netFlow [2/2]

U8 netFlow[4]

◆ netNum

U8 netNum[16]

◆ netScope [1/2]

U32 netScope

◆ netScope [2/2]

U8 netScope[4]

◆ port

U16 port

◆ type

S32 type

Type of address (IPAddress currently)


The documentation for this struct was generated from the following files: