*** empty log message ***

This commit is contained in:
eihrul 2007-05-31 08:04:23 +00:00
parent 050cf18c96
commit 6a6e61b4bd
3 changed files with 5 additions and 1 deletions

View file

@ -44,7 +44,9 @@ typedef enum
enum
{
ENET_HOST_ANY = 0, /**< specifies the default server host */
ENET_HOST_BROADCAST = 0xFFFFFFFF /**< specifies a subnet-wide broadcast */
ENET_HOST_BROADCAST = 0xFFFFFFFF, /**< specifies a subnet-wide broadcast */
ENET_PORT_ANY = 0 /**< specifies that a port should be automatically chosen */
};
/**

1
unix.c
View file

@ -193,6 +193,7 @@ enet_socket_create (ENetSocketType type, const ENetAddress * address)
(struct sockaddr *) & sin,
sizeof (struct sockaddr_in)) == -1 ||
(type == ENET_SOCKET_TYPE_STREAM &&
address -> port != ENET_PORT_ANY &&
listen (newSocket, SOMAXCONN) == -1))
{
close (newSocket);

View file

@ -142,6 +142,7 @@ enet_socket_create (ENetSocketType type, const ENetAddress * address)
sizeof (struct sockaddr_in)) == SOCKET_ERROR ||
(type == ENET_SOCKET_TYPE_STREAM &&
address != NULL &&
address -> port != ENET_PORT_ANY &&
listen (newSocket, SOMAXCONN) == SOCKET_ERROR))
{
closesocket (newSocket);