diff options
author | eihrul <eihrul> | 2005-06-08 01:13:28 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2005-06-08 01:13:28 +0000 |
commit | fd57f842d5e45fe8642cc0dd4ba73de359e0db37 (patch) | |
tree | 4d56250344590f7326663d5e2acd0788b787f847 /include | |
parent | 59d5c26e3811e0ebfa4878e29886d8f4aadbdd6f (diff) | |
download | enet-fd57f842d5e45fe8642cc0dd4ba73de359e0db37.tar.gz enet-fd57f842d5e45fe8642cc0dd4ba73de359e0db37.zip |
added broadcasting
Diffstat (limited to 'include')
-rw-r--r-- | include/enet/enet.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h index b855018..6ed12af 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -44,7 +44,8 @@ typedef enum enum { - ENET_HOST_ANY = 0 + ENET_HOST_ANY = 0, /**< specifies the default server host */ + ENET_HOST_BROADCAST = 0xFFFFFFFF /**< specifies a subnet-wide broadcast */ }; /** @@ -52,11 +53,14 @@ enum * * The host must be specified in network byte-order, and the port must be in host * byte-order. The constant ENET_HOST_ANY may be used to specify the default - * server host. + * server host. The constant ENET_HOST_BROADCAST may be used to specify the + * broadcast address (255.255.255.255). This makes sense for enet_host_connect, + * but not for enet_host_create. Once a server responds to a broadcast, the + * address is updated from ENET_HOST_BROADCAST to the server's actual IP address. */ typedef struct _ENetAddress { - enet_uint32 host; /**< may use ENET_HOST_ANY to specify default server host */ + enet_uint32 host; enet_uint16 port; } ENetAddress; |