Alibek Omarov
4ce2475602
engine: common: move network cvars to static allocation
2 years ago
Alibek Omarov
8f207362a5
public: remove Q_sprintf, and patch all code that used it to use Q_snprintf instead
2 years ago
Alibek Omarov
2e7306e96a
engine: network: fix missing newline in IP port allocation error message
2 years ago
Alibek Omarov
12efcf1c44
engine: network: remove some totally ununsed functions
2 years ago
Alibek Omarov
93a7ccd14f
engine: network: add net_gai_state_t enum for NET_StringToAdrNB result value
2 years ago
Alibek Omarov
c2992afb4a
engine: network: make all HTTP commands and cvars restricted, except http_addcustomserver. Also zero http_useragent by default (it's autogenerated now)
2 years ago
Alibek Omarov
b99e7a6304
engine: network: include build info to default HTTP useragent
2 years ago
Alibek Omarov
116a605248
engine: common: replace some obvious va uses by temp buffer and Q_snprintf or equivalent code
2 years ago
Alibek Omarov
6b62f9c1b9
engine: convert Cvar_Get with va to Cvar_Getf
2 years ago
fgsfds
7424b29e56
engine: initial psvita build support
2 years ago
Alibek Omarov
b5b6b8b785
engine: network: fix some unitialized sockaddr_storage's
2 years ago
fgsfds
b73c16c216
engine: net_ws: pass correct sockaddr lengths where needed
2 years ago
fgsfds
0ba4ef678c
engine: net_ws: pass correct sockaddr lengths where needed
2 years ago
Alibek Omarov
eaf9a9283a
Revert "engine: network: do not read from uninitialized sockaddr storage"
...
This reverts commit 4f78ec01cf
.
2 years ago
Alibek Omarov
4f78ec01cf
engine: network: do not read from uninitialized sockaddr storage
2 years ago
Alibek Omarov
1119a9ac22
engine: network: reenable DNS resolving in separate thread for Windows
2 years ago
Alibek Omarov
e621c98602
engine: network: do not crash if one of v4 or v6 socket opening failed but crash if both. Fix hostport/clientport cvars usage
2 years ago
Alibek Omarov
f3400c983e
engine: network: fix address comparator
2 years ago
Alibek Omarov
18c94b6ec4
engine: common: add network address comparator function
2 years ago
Andrey Akhmichin
177ed2c603
engine: common: simplify strings operations.
2 years ago
Alibek Omarov
e97310c441
engine: common: net_ws: fix uninitialized family in IPSocket
2 years ago
Alibek Omarov
8b6f12418e
engine: common: make few network cvars privileged
2 years ago
Alibek Omarov
ac05acf6dc
engine: network: I'm fucking blind
2 years ago
Alibek Omarov
3e1db432df
engine: network: fix IPv4 private address checks according to RFC1918
...
Thanks to @Mr0maks for the fix
2 years ago
SNMetamorph
d8724f0be4
engine: common: net_ws: disabled read-only flag for ip cvar
3 years ago
SNMetamorph
36b0d47f5f
engine: common: net_ws: fixed sockets reinitialization in NET_OpenIP
3 years ago
SNMetamorph
6891ed8064
engine: common: net_ws: backported NAT bypass feature
3 years ago
SNMetamorph
8f91830997
engine: added changeport parameter for NET_Config
3 years ago
Tim Schumacher
a1ce5faac2
Engine: Keep HTTP from endlessly formatting NaN values
...
For whatever reason, our progress count for HTTP downloads stays at 0.
This results in the engine calculating a NaN progress value many times
each frame, which results in a significant performance hit.
3 years ago
Alibek Omarov
2b8b3e1993
engine: server: new IP filter, rewritten with IPv6 in mind
3 years ago
Alibek Omarov
b0a889d1a1
engine: bring back simple netadr_t, as we don't care about IPv4-to-IPv6 mapped addresses anymore
3 years ago
Alibek Omarov
bd1bfea695
engine: second iteration of IPv6 support
...
Made code smaller
Fixed problem where v6 and v4 socket can't use same port
Added support for v4-to-v6 mapped addresses, although it's kept unused
Probably final version
3 years ago
Alibek Omarov
b072b627a2
engine: enable getaddrinfo on Windows, fix build
3 years ago
Alibek Omarov
59fba30a52
engine: IPv6 support
...
* v6 equivalent cvars
* hostname resolving for v6
* fix for nonblocking hostname resolve (inverted check)
* enabled by default, probably should be disabled for dedicated servers
3 years ago
Alibek Omarov
f67d0ffa5a
engine: common: fix broken function name and strings after find&replace in socket code
3 years ago
Alibek Omarov
36702aafe7
engine: rename FCVAR_LOCALONLY and CMD_LOCALONLY into FCVAR_PRIVILEGED and CMD_PRIVILEGED
3 years ago
Alibek Omarov
8a9231628e
engine: restrict potentially harmful or related to user settings engine cvars
3 years ago
Alibek Omarov
94dc74a37f
engine: restrict potentially harmful engine commands
3 years ago
Alibek Omarov
29a8bfb1dc
engine: common: fix ParseFile calls
3 years ago
Alibek Omarov
0efc5e82ec
engine: fix some const qualifier lose and pointer-to-int casts
3 years ago
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
4 years ago
Andrey Akhmichin
abd9778ef3
engine: common: simplified strings operations.
4 years ago
Andrey Akhmichin
e3b547c8a9
public: rename mathlib to xash3d_mathlib.
5 years ago
mittorn
7d0e45b507
network: restore WSAsize_t define for win32
5 years ago
mittorn
2b90790071
network: add stub for systems without BSD sockets, WATTCP support
5 years ago
Alibek Omarov
e11a08064d
engine: fix implicit-fallthrough, uninitialized, enum-conversation compiler diagnostics
5 years ago
Alibek Omarov
c07109e69c
engine: fix -Wincompatible-pointer-types, add it to Werror list
5 years ago
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
5 years ago
Alibek Omarov
edf3fcd398
engine: common: explicitly cast literals to floats, include tgmath when needed
5 years ago
Alibek Omarov
d2a8cfe614
Revert "engine: client: implement connectionprogress partially"
...
This reverts commit cb417a3d51
.
This commit breaks demo playback. Figure out why, then revert it back.
5 years ago