enet  v1.3.12
reliable UDP networking library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ENet socket functions

Functions

ENET_API ENetSocket enet_socket_accept (ENetSocket, ENetAddress *)
 
ENET_API int enet_socket_bind (ENetSocket, const ENetAddress *)
 
ENET_API int enet_socket_connect (ENetSocket, const ENetAddress *)
 
ENET_API ENetSocket enet_socket_create (ENetSocketType)
 
ENET_API void enet_socket_destroy (ENetSocket)
 
ENET_API int enet_socket_get_address (ENetSocket, ENetAddress *)
 
ENET_API int enet_socket_get_option (ENetSocket, ENetSocketOption, int *)
 
ENET_API int enet_socket_listen (ENetSocket, int)
 
ENET_API int enet_socket_receive (ENetSocket, ENetAddress *, ENetBuffer *, size_t)
 
ENET_API int enet_socket_send (ENetSocket, const ENetAddress *, const ENetBuffer *, size_t)
 
ENET_API int enet_socket_set_option (ENetSocket, ENetSocketOption, int)
 
ENET_API int enet_socket_shutdown (ENetSocket, ENetSocketShutdown)
 
ENET_API int enet_socket_wait (ENetSocket, enet_uint32 *, enet_uint32)
 
ENET_API int enet_socketset_select (ENetSocket, ENetSocketSet *, ENetSocketSet *, enet_uint32)
 

Detailed Description

Function Documentation

ENET_API ENetSocket enet_socket_accept ( ENetSocket  ,
ENetAddress  
)
ENET_API int enet_socket_bind ( ENetSocket  ,
const ENetAddress  
)

#include <include/enet/enet.h>

References ENET_HOST_TO_NET_16.

Referenced by enet_host_create().

Here is the caller graph for this function:

ENET_API int enet_socket_connect ( ENetSocket  ,
const ENetAddress  
)

#include <include/enet/enet.h>

References ENET_HOST_TO_NET_16.

ENET_API ENetSocket enet_socket_create ( ENetSocketType  )

#include <include/enet/enet.h>

References ENET_SOCKET_TYPE_DATAGRAM.

Referenced by enet_host_create().

Here is the caller graph for this function:

ENET_API void enet_socket_destroy ( ENetSocket  )

#include <include/enet/enet.h>

Referenced by enet_host_create(), and enet_host_destroy().

Here is the caller graph for this function:

ENET_API int enet_socket_get_address ( ENetSocket  ,
ENetAddress  
)

#include <include/enet/enet.h>

References ENET_NET_TO_HOST_16.

Referenced by enet_host_create().

Here is the caller graph for this function:

ENET_API int enet_socket_get_option ( ENetSocket  ,
ENetSocketOption  ,
int  
)

#include <include/enet/enet.h>

References ENET_SOCKOPT_ERROR, and int().

Here is the call graph for this function:

ENET_API int enet_socket_listen ( ENetSocket  ,
int   
)

#include <include/enet/enet.h>

ENET_API int enet_socket_receive ( ENetSocket  ,
ENetAddress ,
ENetBuffer ,
size_t   
)
ENET_API int enet_socket_send ( ENetSocket  ,
const ENetAddress ,
const ENetBuffer ,
size_t   
)
ENET_API int enet_socket_shutdown ( ENetSocket  ,
ENetSocketShutdown   
)

#include <include/enet/enet.h>

ENET_API int enet_socket_wait ( ENetSocket  ,
enet_uint32 ,
enet_uint32   
)

#include <include/enet/enet.h>

References ENET_SOCKET_WAIT_INTERRUPT, ENET_SOCKET_WAIT_NONE, ENET_SOCKET_WAIT_RECEIVE, and ENET_SOCKET_WAIT_SEND.

Referenced by enet_host_service().

Here is the caller graph for this function:

ENET_API int enet_socketset_select ( ENetSocket  ,
ENetSocketSet ,
ENetSocketSet ,
enet_uint32   
)

#include <include/enet/enet.h>