Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Attributes | List of all members
NetAddress Struct Reference

`#include <event.h>`

## Public Types
enum | { IPAddress, IPXAddress }
| Acceptable NetAddress types. More...

## Public Attributes
int | type
| Type of address (IPAddress currently) More...
U8 | netNum [4]
U8 | nodeNum [6]
U16 | port

## Detailed Description

Generic network address

This is used to represent IP addresses.

## Member Enumeration Documentation

anonymous enum

Acceptable NetAddress types.

Enumerator
IPAddress |
IPXAddress |

## Member Data Documentation

U8 netNum[4]

For IP: sin_addr
For IPX: sa_netnum

U8 nodeNum[6]

For IP: Not used.
For IPX: sa_nodenum (not used by IP)

U16 port

For IP: sin_port
For IPX: sa_socket

int type

Type of address (IPAddress currently)

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

- platform/event.h