Logo Search packages:      
Sourcecode: egoboo version File versions  Download package

unix.c File Reference

Detailed Description

ENet Unix system specific functions.

Definition in file unix.c.

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

Go to the source code of this file.


#define MSG_NOSIGNAL   0


int enet_address_get_host (const ENetAddress *address, char *name, size_t nameLength)
int enet_address_set_host (ENetAddress *address, const char *name)
void enet_deinitialize (void)
int enet_initialize (void)
ENetSocket enet_socket_accept (ENetSocket socket, ENetAddress *address)
int enet_socket_connect (ENetSocket socket, const ENetAddress *address)
ENetSocket enet_socket_create (ENetSocketType type, const ENetAddress *address)
void enet_socket_destroy (ENetSocket socket)
int enet_socket_receive (ENetSocket socket, ENetAddress *address, ENetBuffer *buffers, size_t bufferCount)
int enet_socket_send (ENetSocket socket, const ENetAddress *address, const ENetBuffer *buffers, size_t bufferCount)
int enet_socket_wait (ENetSocket socket, enet_uint32 *condition, enet_uint32 timeout)
enet_uint32 enet_time_get (void)
void enet_time_set (enet_uint32 newTimeBase)


static enet_uint32 timeBase = 0

Generated by  Doxygen 1.6.0   Back to index