-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathX360WebServer.h
More file actions
44 lines (31 loc) · 943 Bytes
/
X360WebServer.h
File metadata and controls
44 lines (31 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**************************************************************************
* Simple Webserver port from pc to Xbox 360 by Quadrant2005 2021
*
**************************************************************************/
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <winsockx.h>
#pragma warning(disable:4761) //[QBS]
#ifndef INADDR_NONE
#define INADDR_NONE 0xffffffff
#endif /* INADDR_NONE */
void errexit(const char *, ...);
void errexit(const char *, ...);
u_short portbase = 0; /* port base, for test servers */
/*------------------------------------------------------------------------
* errexit - print an error message and exit
*------------------------------------------------------------------------
*/
/*VARARGS1*/
void
errexit(const char *format, ...)
{
va_list args;
va_start(args, format);
vfprintf(stderr, format, args);
va_end(args);
WSACleanup();
exit(1);
}