Lion Kortlepel
8b753ab6ea
ignore SIGPIPE in sendfile() implementation of mod sending
2024-07-14 17:01:08 +02:00
Lion Kortlepel
b097acfd4a
use sendfile64
2024-07-14 16:17:39 +02:00
Lion Kortlepel
bd76e28ca6
use sendfile to send mods on linux
2024-07-14 15:33:26 +02:00
Lion Kortlepel
eaedeb5324
add IPv6 support
2024-07-12 15:45:50 +02:00
Lucca Jiménez Könings
29f4d0d286
run clang-format
2024-06-26 14:06:06 +02:00
Lucca Jiménez Könings
2451e08b01
update remaining sections of code after merge
2024-06-26 12:31:47 +02:00
Lucca Jiménez Könings
25739cb1bd
Merge branch 'minor' into 158-bug-running-settings-help-returns-nothing
2024-06-26 11:43:38 +02:00
Lion Kortlepel
07a8d49046
fix tcp send also
2024-06-22 23:56:18 +02:00
Lion Kortlepel
bfb0675efa
send large packets over tcp
2024-06-22 23:51:01 +02:00
SaltySnail
e94cfd641d
remove debug print
2024-06-10 23:16:45 +02:00
SaltySnail
91bc7dea79
Update src/TNetwork.cpp
...
Co-authored-by: Lion <development@kortlepel.com >
2024-06-10 23:12:23 +02:00
SaltySnail
5dab48af92
fix #247 , add allow guests config setting.
2024-06-10 22:06:09 +02:00
sla-ppy
566f0b55f7
remove debug info
2024-05-28 14:53:19 +02:00
sla-ppy
58a7e39419
add more info to return to pkToUser endpoint
2024-05-28 14:15:41 +02:00
Lucca Jiménez Könings
8c15b87628
Refactor all references to settings to use new Settings type
...
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com >
2024-05-15 12:52:09 +02:00
Lucca Jiménez Könings
13e641b3a3
Remove interfering legacy code (http,password,etc)
...
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com >
2024-05-15 12:45:19 +02:00
sla-ppy
e852245bae
add mutex to openid
2024-02-08 23:29:10 +01:00
Lion Kortlepel
aff537afdf
add AGPL-3.0 license header
2024-01-23 21:00:11 +01:00
Lion Kortlepel
4228e18c90
reset default ID to 0
2024-01-09 15:34:33 +01:00
Lion Kortlepel
a4eb10b6a4
fix MP.GetPositionRaw
2024-01-09 15:34:33 +01:00
Lion Kortlepel
0166e488d0
fix calling GlobalParser as static
2024-01-09 15:34:33 +01:00
Lion Kortlepel
11fe5ad200
fix invalid timeout value
2023-12-05 18:00:34 +01:00
Lion Kortlepel
667da22b0e
Merge remote-tracking branch 'origin/master' into new-buildsystem
2023-12-05 17:59:05 +01:00
Lion Kortlepel
22805af716
fix crash in authentication
2023-12-03 17:43:41 +01:00
Anonymous275
d677d8d58d
rename Hash function to HashPassword
...
move HashPassword to cpp only
move check to line 285
2023-01-15 17:12:35 +00:00
Anonymous275
4b30918659
- add 120 seconds timeout
2023-01-15 17:12:35 +00:00
Anonymous275
688e46f524
- fix linux build
2023-01-15 17:12:35 +00:00
Anonymous275
9f59c27b1f
- add hash function
...
- add password config
- add debug messages for password stages
- add pass boolean for heartbeat
- adjust network codes
2023-01-15 17:12:35 +00:00
Lion Kortlepel
b024533f90
fix crash when the header of a TCP packet is negative
2022-10-31 11:31:15 +01:00
Lion Kortlepel
f9251ff92c
add more warning prints on unexpected cases
2022-10-31 11:31:15 +01:00
Lion Kortlepel
99f41c28cb
fix #135 by making onPlayerDisconnect blocking, and calling it before removing the player
...
before, the handlers were not waited for, so the client was usually
destructed before lua got to the actual event handler call. Now, the
handler is called and waited on, and once all handlers are done, the
client is properly removed from the players internally, thus making
calls to GetPlayerName, GetPlayerIdentifiers, etc. return nil etc.
2022-10-31 11:31:15 +01:00
Lion Kortlepel
917c501faf
fix typo causing beammp forum id not to show in identifiers ( fix #137 )
2022-10-22 21:16:31 +02:00
Lion Kortlepel
92632b53b5
fix binary data breaking in UDPRcvFromClient
2022-10-15 23:30:09 +02:00
Lion Kortlepel
87965433c2
change log levels of common warnings and errors to debug
...
this hides a lot of the "standard" errors we get behind the debug flag.
for example, disconnecting a disconnected player would be such an error
2022-10-15 23:16:16 +02:00
Lion Kortlepel
94c0547a35
fix crash when the client disconnects while sending first identify setting
2022-10-15 23:16:16 +02:00
Lion Kortlepel
064e71e59f
fix client version check
2022-10-15 23:16:16 +02:00
Lion Kortlepel
4320a91e5c
use message() instead of what() for ec
2022-10-15 23:16:16 +02:00
Lion Kortlepel
67d02d4cf2
remove unused error check
2022-10-15 23:16:16 +02:00
Lion Kortlepel
88f5db514f
remove unused headers
2022-10-06 00:46:35 +02:00
Lion Kortlepel
e595192829
rename header to boost errc
2022-10-06 00:43:17 +02:00
Lion Kortlepel
917e3f98ab
fix github actions dependencies for linux to use proper boost version
2022-10-06 00:36:57 +02:00
Lion Kortlepel
c42a523532
remove SO_SNDTIMEO for now
2022-10-06 00:24:13 +02:00
Lion Kortlepel
231b13a0e7
fix a ghost client bug
2022-10-05 18:17:18 +02:00
Lion Kortlepel
7d2e4d4581
replace tcp networking with boost::asio tcp networking
2022-10-05 18:17:04 +02:00
Lion Kortlepel
7446526a19
fix binding of udp server socket
...
it was not binding properly because it wasn't open()ed, i guess
2022-10-05 13:06:36 +02:00
Lion Kortlepel
6e97a3cd6e
switch udp networking to boost implementation
2022-10-05 12:14:25 +02:00
Lion Kortlepel
5d3dff3c88
add identifiers (beammp id, ip) as an argument to onPlayerAuth
2022-10-03 15:31:32 +02:00
Lion Kortlepel
24c98eb2b2
add more compile-time diagnostics, implement fixes for them
...
Before, a lot of common errors went unnoticed, due to insufficient
compiler diagnostics. This commit fixes this by adding a lot of new
diagnostics, and fixing the issues found by this.
2022-09-26 12:02:05 +02:00
Lion Kortlepel
fd7b11f436
fix event loop timing issue
...
The event loop tries to run no faster than every 10ms. If it detects
that it goes faster, it would incorrectly calculate the difference, and
then wait (what I assume was) way too long or too short.
Either way, now it's fixed and it correctly works, even when introducing
new lua states.
2022-07-20 14:33:19 +02:00
Mackenzie
04bbdff6b7
Add code from EvanMulawski
2022-07-12 22:59:41 +01:00