579aa9d31d
Save pointer to Player struct in CNSocket.
...
This is an insignificant optimization now, but will be necessary when we
start switching around the the algorithms and datastructures used in
proximity detection.
2020-09-12 01:22:58 +02:00
45a33758a5
Account for the size of packet length and ID in validation functions.
2020-09-08 03:06:55 +02:00
4df812f996
Implemented crates (dropping and opening).
...
Also fixed a bug in vaildOutVarPacket().
2020-08-28 22:22:24 +02:00
67d899efe6
Implemented proper validation of variable-length packets.
...
Also changed output buffer in pcAttackNpcs() from dynamically to
statically allocated. This in itself is temporary as I have a better
idea as to how we can allocate buffers with a bit less boilerplate.
2020-08-28 22:18:28 +02:00
16c11dada0
Fixed a use-after-free and a memory leak.
2020-08-26 00:09:31 +02:00
16bca39dae
added simple timer system to CNShardServer
2020-08-24 16:11:40 -05:00
28ad1a0c25
fix windows support for sockets
2020-08-24 13:23:28 -05:00
e99feb03d5
Add verbosity levels.
2020-08-23 23:09:31 +02:00
651ccba932
Replace ifdef guards with #pragma once
...
tl;dr this has potentially significant compilation speed benefits.
2020-08-23 19:14:54 +02:00
94b0dc724e
major refactoring
2020-08-22 18:31:09 -05:00
35b424c531
fixed warnings for VC++
2020-08-22 13:38:27 -05:00
94cb89dd6b
fixed warnings for windows mingw
2020-08-19 15:42:44 -05:00
24d30a05bf
added heartbeat support
2020-08-18 20:34:39 -05:00
b2325eb308
login server moved to main thread
2020-08-18 19:52:02 -05:00
47b76b422c
added sanity checks
2020-08-18 19:11:31 -05:00
9d366e3720
inital commit
2020-08-18 15:42:30 -05:00