Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "config.h"
#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 |
Functions | |
bool | INET_BytesToRead (int socket) |
void | INET_close (int socket) |
void | INET_cleanup () |
int | INET_Recv (int socket, char *data, int bytestoread) |
bool | INET_Read (int socket, char *data, int bytestoread) |
int | INET_Write (int socket, int bytestowrite, const char *data) |
void | INET_startup () |
char | INET_fgetc (int socket) |
bool | INET_getHostByName (const char *hostname, unsigned short port, sockaddr_in &connexto) |
int | INET_listen (unsigned short port, const char *hostname) |
int | INET_Accept (int hServerSocket) |
int | INET_AcceptFrom (unsigned short port, const char *hostname) |
int | INET_ConnectTo (const char *hostname, unsigned short port) |
#define SOCKET_ERROR -1 |
Definition at line 9 of file inet.cpp.
Referenced by INET_listen(), and INET_Read().
Definition at line 164 of file inet.cpp.
Referenced by INET_AcceptFrom().
int INET_AcceptFrom | ( | unsigned short | port, |
const char * | hostname | ||
) |
Definition at line 177 of file inet.cpp.
References INET_Accept(), INET_close(), and INET_listen().
Referenced by main().
Definition at line 26 of file inet.cpp.
Referenced by ForkedProcess(), ForwardBytes(), Music::Listen(), main(), and my_bytestoread().
void INET_cleanup | ( | ) |
Definition at line 56 of file inet.cpp.
Referenced by main(), and Music::~Music().
void INET_close | ( | int | socket) |
Definition at line 48 of file inet.cpp.
Referenced by FinishOlde(), INET_AcceptFrom(), main(), and Music::~Music().
int INET_ConnectTo | ( | const char * | hostname, |
unsigned short | port | ||
) |
Definition at line 184 of file inet.cpp.
References fprintf, INET_getHostByName(), and VsnetOSS::socket().
Referenced by mmoc::connectTo(), main(), and Music::Music().
char INET_fgetc | ( | int | socket) |
Definition at line 91 of file inet.cpp.
References INET_Read().
Referenced by Music::Listen(), main(), my_getchar(), and my_getstring().
bool INET_getHostByName | ( | const char * | hostname, |
unsigned short | port, | ||
sockaddr_in & | connexto | ||
) |
Definition at line 98 of file inet.cpp.
References VsnetOSS::memcpy(), and sizeof().
Referenced by INET_ConnectTo(), and INET_listen().
int INET_listen | ( | unsigned short | port, |
const char * | hostname | ||
) |
Definition at line 122 of file inet.cpp.
References INET_getHostByName(), VsnetOSS::socket(), and SOCKET_ERROR.
Referenced by INET_AcceptFrom().
Definition at line 66 of file inet.cpp.
References VsnetOSS::recv(), and SOCKET_ERROR.
Referenced by INET_fgetc(), and mmoc::listenThread().
Definition at line 62 of file inet.cpp.
References VsnetOSS::recv().
Referenced by ForwardBytes(), and mmoc::listenThread().
void INET_startup | ( | ) |
Definition at line 79 of file inet.cpp.
Referenced by FinishOlde(), ForwardBytes(), ForwardFileBytes(), main(), Music::Music(), music_finished(), mmoc::send(), and Music::~Music().