unix.c File Reference


Detailed Description

#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include "enet/enet.h"

Defines

#define ENET_BUILDING_LIB   1
#define MSG_NOSIGNAL   0

Typedefs

typedef int socklen_t

Functions

int enet_initialize (void)
 Initializes ENet globally.
void enet_deinitialize (void)
 Shuts down ENet globally.
enet_uint32 enet_time_get (void)
 Returns the wall-time in milliseconds.
void enet_time_set (enet_uint32 newTimeBase)
 Sets the current wall-time in milliseconds.
int enet_address_set_host (ENetAddress *address, const char *name)
 Attempts to resolve the host named by the parameter hostName and sets the host field in the address parameter if successful.
int enet_address_get_host_ip (const ENetAddress *address, char *name, size_t nameLength)
 Gives the printable form of the ip address specified in the address parameter.
int enet_address_get_host (const ENetAddress *address, char *name, size_t nameLength)
 Attempts to do a reverse lookup of the host field in the address parameter.
ENetSocket enet_socket_create (ENetSocketType type, const ENetAddress *address)
int enet_socket_connect (ENetSocket socket, const ENetAddress *address)
ENetSocket enet_socket_accept (ENetSocket socket, ENetAddress *address)
void enet_socket_destroy (ENetSocket socket)
int enet_socket_send (ENetSocket socket, const ENetAddress *address, const ENetBuffer *buffers, size_t bufferCount)
int enet_socket_receive (ENetSocket socket, ENetAddress *address, ENetBuffer *buffers, size_t bufferCount)
int enet_socket_wait (ENetSocket socket, enet_uint32 *condition, enet_uint32 timeout)


Function Documentation

enet_uint32 enet_time_get ( void   ) 

Its initial value is unspecified unless otherwise set.


Generated on Wed Jun 6 14:33:50 2007 for enet by  doxygen 1.5.1