mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
*** empty log message ***
This commit is contained in:
parent
050cf18c96
commit
6a6e61b4bd
3 changed files with 5 additions and 1 deletions
|
@ -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
1
unix.c
|
@ -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);
|
||||
|
|
1
win32.c
1
win32.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue