|
Torque2D 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 | |
Generic network address
This is used to represent IP addresses.
| enum Type |
Acceptable NetAddress types.
| Enumerator | |
|---|---|
| IPAddress | |
| IPV6Address | |
| IPBroadcastAddress | |
| IPV6MulticastAddress | |
| U32 getHash | ( | ) | const |
|
inline |
|
inline |
|
inline |
| union { ... } address |
| struct { ... } ipv4 |
| struct { ... } ipv6 |
| struct { ... } ipv6_raw |
| U32 netFlow |
| U8 netFlow[4] |
| U8 netNum[16] |
| U32 netScope |
| U8 netScope[4] |
| U16 port |
| S32 type |
Type of address (IPAddress currently)