Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <sys/time.h>
#include <sys/types.h>
#include <netdb.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | SOCKET_ERROR -1 |
#define | micro_sleep(n) |
Functions | |
bool | fNET_BytesToRead (int socket) |
void | fNET_close (int socket) |
int | fNET_Recv (int socket, char *data, int bytestoread) |
bool | fNET_Read (int socket, char *data, int bytestoread) |
int | fNET_Write (int socket, int bytestowrite, const char *data) |
char | fNET_fgetc (int socket) |
void | fNET_cleanup () |
void | fNET_startup () |
bool | fNET_getHostByName (const char *hostname, unsigned short port, sockaddr_in &connexto) |
int | fNET_listen (unsigned short port, const char *hostname) |
int | fNET_ConnectTo (const char *hostname, unsigned short port) |
int | fNET_Accept (int hServerSocket) |
int | fNET_AcceptFrom (unsigned short port, const char *hostname) |
#define micro_sleep | ( | n) |
Definition at line 30 of file inet_file.cpp.
Referenced by base_main_loop(), fNET_Read(), fNET_Recv(), main(), UniverseUtil::micro_sleep(), Music::Play(), Muzak::readerThread(), Audio::sleep(), GameUniverse::StartDraw(), and Music::~Music().
#define SOCKET_ERROR -1 |
Definition at line 10 of file inet_file.cpp.
Definition at line 112 of file inet_file.cpp.
int fNET_AcceptFrom | ( | unsigned short | port, |
const char * | hostname | ||
) |
void fNET_cleanup | ( | ) |
void fNET_close | ( | int | socket) |
Definition at line 60 of file inet_file.cpp.
Referenced by main(), and Music::~Music().
int fNET_ConnectTo | ( | const char * | hostname, |
unsigned short | port | ||
) |
Definition at line 108 of file inet_file.cpp.
char fNET_fgetc | ( | int | socket) |
Definition at line 91 of file inet_file.cpp.
References fNET_Recv().
Referenced by main(), my_getchar(), and Muzak::readerThread().
bool fNET_getHostByName | ( | const char * | hostname, |
unsigned short | port, | ||
sockaddr_in & | connexto | ||
) |
Definition at line 99 of file inet_file.cpp.
int fNET_listen | ( | unsigned short | port, |
const char * | hostname | ||
) |
Definition at line 104 of file inet_file.cpp.
void fNET_startup | ( | ) |
Definition at line 87 of file inet_file.cpp.
Referenced by F0rkProcess(), ForwardBytes(), Music::Music(), music_finished(), and Music::~Music().