Alibek Omarov
|
639eaa9416
|
engine: split HTTP client into a separate file
|
2024-10-27 17:07:35 +03:00 |
|
Alibek Omarov
|
fa1e92b127
|
engine: request file from server if HTTP locations failed
|
2024-10-26 20:24:31 +03:00 |
|
Alibek Omarov
|
fe429fe213
|
engine: common: net_ws: fix HTTP request when server have custom port and/or doesn't have slash at the end of URL. Set Accept: */* just in case.
|
2024-10-26 05:14:51 +03:00 |
|
Alibek Omarov
|
fee236a050
|
engine: common: net_ws: make NET_IsLocalAddress inline
|
2024-10-19 14:08:27 +03:00 |
|
Alibek Omarov
|
f52c825bf5
|
engine: make some global variables static and const, make even more functions static if possible
|
2024-10-14 19:19:46 +03:00 |
|
Alibek Omarov
|
232a8c1148
|
engine: common: net_ws: don't expect more than 5 splits for GoldSrc protocol
|
2024-10-14 05:17:03 +03:00 |
|
Alibek Omarov
|
61342547ce
|
engine: common: add support for GoldSrc split packet
|
2024-10-08 03:28:02 +03:00 |
|
Alibek Omarov
|
3a1bb12830
|
engine: client: rename CL_LegacyMode to CL_Protocol
|
2024-10-08 03:27:09 +03:00 |
|
Alibek Omarov
|
67af41cce8
|
engine: common: net_ws: more minor refactoring, avoid memcpy for same type structs
|
2024-10-02 23:30:42 +03:00 |
|
Alibek Omarov
|
e2c96e62e1
|
engine: common: net_ws: drop IPv4 mapped as IPv6 support, it's an artifact from dual-stacking experiments and not used anymore
|
2024-10-02 23:26:28 +03:00 |
|
Alibek Omarov
|
2ecae442fc
|
engine: common: net_ws: minor refactoring
|
2024-10-02 23:25:12 +03:00 |
|
Alibek Omarov
|
a1060b0eb5
|
engine: add v6only master servers, add v6only flag for NET_StringToAdrNB
|
2024-10-02 23:23:08 +03:00 |
|
Alibek Omarov
|
ddd8de888f
|
engine: add macro XASH_NO_IPV6_RESOLVE to completely skip resolving addresses with family AF_INET6
|
2024-10-02 23:21:25 +03:00 |
|
Alibek Omarov
|
87775faeca
|
engine: common: properly check if we can destroy resolve mutexes. Add net_resolve_debug cvar to enable printing resolve thread debug messages.
|
2024-10-02 22:16:51 +03:00 |
|
Alibek Omarov
|
47d1f3459c
|
engine: common: try to implement DNS resolve thread through SDL2 functions if SDL2 build is enabled
|
2024-10-02 00:55:53 +03:00 |
|
Alibek Omarov
|
712b354421
|
engine: common: replace same struct type memcpys by assignments
|
2024-07-31 00:06:22 +03:00 |
|
Alibek Omarov
|
7bb5175084
|
Turn downloaded/ and custom/ into com_strings.h definitions, like sound path and saves path
|
2024-07-30 15:25:20 +03:00 |
|
Alibek Omarov
|
d56e53a347
|
Replace hardcoded functions names by __func__ macro
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
|
2024-06-19 06:53:42 +03:00 |
|
Alibek Omarov
|
484e4cb225
|
engine: common: net_ws: less verbose HTTP client, fix printing header size in case of an error
|
2024-05-31 00:07:14 +03:00 |
|
Alibek Omarov
|
75d476f9df
|
engine: fix -Wmissing-prototypes
|
2024-01-28 09:55:18 +03:00 |
|
Alibek Omarov
|
46f30e215c
|
common: replace netadr.h with compatible definition from GPL Quake-2 sources
|
2024-01-12 23:09:38 +03:00 |
|
Alibek Omarov
|
4c3c3529e9
|
engine: network: rename length variable to something that makes sense. Add usage line to http_addcustomserver
|
2023-11-26 23:20:46 +03:00 |
|
Alibek Omarov
|
7051b844ff
|
engine: network: set HTTP buffer to 8kb on all systems, without depending on random constant like BUFSIZ
|
2023-11-26 23:19:49 +03:00 |
|
Alibek Omarov
|
9e107e900c
|
engine: network: fix async NS resolve
If we're currently running NS resolving thread, any request would block.
Co-Authored-by: mittorn <mittorn@sibmail.com>
|
2023-10-24 18:11:31 +03:00 |
|
Alibek Omarov
|
b9ca0d4563
|
engine: common: network: more simple IP address copying from sockaddr to netadr_t and back
|
2023-10-22 20:02:14 +03:00 |
|
mittorn
|
b949da291e
|
engine: fix strict aliasing issues found by an old armv7hf compiler
|
2023-10-22 20:02:14 +03:00 |
|
Alibek Omarov
|
34fa1b5ec8
|
engine: remove PORT_CLIENT, we should randomize client port by default, thus allowing easier connections from same IP address
|
2023-10-05 11:06:04 +03:00 |
|
Alibek Omarov
|
e4ae386964
|
engine: network: fix incorrect usage of qboolean, when it should be net_gai_state_t
|
2023-09-12 20:40:14 +03:00 |
|
Alibek Omarov
|
c1c27c5f18
|
engine: net_ws: fix printing multicast IPv6 address
|
2023-08-03 01:11:54 +03:00 |
|
Alibek Omarov
|
b39378a6da
|
engine: common: fix warning about read-only cvar. In fact, we should force set them.
|
2023-07-22 05:50:38 +03:00 |
|
Alibek Omarov
|
4ce2475602
|
engine: common: move network cvars to static allocation
|
2023-05-27 21:52:58 +03:00 |
|
Alibek Omarov
|
8f207362a5
|
public: remove Q_sprintf, and patch all code that used it to use Q_snprintf instead
|
2023-04-26 05:20:45 +03:00 |
|
Alibek Omarov
|
2e7306e96a
|
engine: network: fix missing newline in IP port allocation error message
|
2023-04-17 04:37:16 +03:00 |
|
Alibek Omarov
|
12efcf1c44
|
engine: network: remove some totally ununsed functions
|
2023-04-03 03:13:50 +03:00 |
|
Alibek Omarov
|
93a7ccd14f
|
engine: network: add net_gai_state_t enum for NET_StringToAdrNB result value
|
2023-04-03 00:15:35 +03:00 |
|
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)
|
2023-03-31 01:22:41 +03:00 |
|
Alibek Omarov
|
b99e7a6304
|
engine: network: include build info to default HTTP useragent
|
2023-03-31 01:16:17 +03:00 |
|
Alibek Omarov
|
116a605248
|
engine: common: replace some obvious va uses by temp buffer and Q_snprintf or equivalent code
|
2023-03-13 06:08:36 +03:00 |
|
Alibek Omarov
|
6b62f9c1b9
|
engine: convert Cvar_Get with va to Cvar_Getf
|
2023-03-13 05:19:32 +03:00 |
|
fgsfds
|
7424b29e56
|
engine: initial psvita build support
|
2023-03-11 07:09:14 +03:00 |
|
Alibek Omarov
|
b5b6b8b785
|
engine: network: fix some unitialized sockaddr_storage's
|
2023-02-08 20:00:51 +03:00 |
|
fgsfds
|
b73c16c216
|
engine: net_ws: pass correct sockaddr lengths where needed
|
2023-02-05 23:51:48 +03:00 |
|
Alibek Omarov
|
eaf9a9283a
|
Revert "engine: network: do not read from uninitialized sockaddr storage"
This reverts commit 4f78ec01cf .
|
2023-01-31 04:33:27 +03:00 |
|
Alibek Omarov
|
4f78ec01cf
|
engine: network: do not read from uninitialized sockaddr storage
|
2023-01-31 04:14:18 +03:00 |
|
Alibek Omarov
|
1119a9ac22
|
engine: network: reenable DNS resolving in separate thread for Windows
|
2023-01-13 08:09:16 +03:00 |
|
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
|
2022-12-30 02:06:15 +03:00 |
|
Alibek Omarov
|
f3400c983e
|
engine: network: fix address comparator
|
2022-12-15 12:25:03 +03:00 |
|
Alibek Omarov
|
18c94b6ec4
|
engine: common: add network address comparator function
|
2022-12-12 06:30:47 +03:00 |
|
Andrey Akhmichin
|
177ed2c603
|
engine: common: simplify strings operations.
|
2022-12-04 22:37:45 +03:00 |
|
Alibek Omarov
|
e97310c441
|
engine: common: net_ws: fix uninitialized family in IPSocket
|
2022-12-02 21:21:53 +03:00 |
|