#include <winsock2.h>
#include <iphlpapi.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
◆ _CRT_SECURE_NO_DEPRECATE
| #define _CRT_SECURE_NO_DEPRECATE |
◆ _CRT_SECURE_NO_WARNINGS
| #define _CRT_SECURE_NO_WARNINGS |
◆ _CRTDBG_MAP_ALLOC
| #define _CRTDBG_MAP_ALLOC |
◆ closeConnection()
| void closeConnection |
( |
SOCKET |
s | ) |
|
◆ emu_connectServer()
| int emu_connectServer |
( |
SOCKET |
s, |
|
|
char * |
ip, |
|
|
int |
port |
|
) |
| |
◆ emu_create_socket()
| SOCKET emu_create_socket |
( |
| ) |
|
◆ emu_socket_close()
| void emu_socket_close |
( |
| ) |
|
◆ emu_socket_init()
◆ emu_start_server()
| void emu_start_server |
( |
SOCKET |
s, |
|
|
SOCKADDR_IN * |
con, |
|
|
unsigned short |
port |
|
) |
| |
◆ recvData()
| int recvData |
( |
SOCKET |
s, |
|
|
char * |
recvbuf, |
|
|
int |
size |
|
) |
| |
◆ sendData()
| int sendData |
( |
SOCKET |
s, |
|
|
char * |
sendbuf |
|
) |
| |
◆ waitForClient()
| void waitForClient |
( |
SOCKET * |
s, |
|
|
SOCKADDR * |
clientaddr, |
|
|
int * |
clientlen |
|
) |
| |
◆ wsaData