2680be9a29
add constexpr version of our crc calculator so that we can migrate toward simple comparisons and switches for isType checks
DarthArgus2016-09-29 20:13:52 +00:00
b5595e66e6
add maxConnectionsPerIP configurable to the connection server
DarthArgus2016-09-29 16:19:39 +00:00
150a80efa8
add connections per ip limit to the connection server (public port only)
DarthArgus2016-09-29 11:07:01 -05:00
59fc45626a
more cleanup, and add "random udp data" strikes... needs refined/tested/made sure it works
DarthArgus2016-09-29 08:27:24 +00:00
2ea868bdb6
implement proper blacklisting at the lowest possible level, with strikes so that people repeatedly hitting enter with connection issues don't get insta banned
DarthArgus2016-09-29 07:30:07 +00:00
af9701a816
clion, your formatting is pissing me off
DarthArgus2016-09-29 03:48:11 +00:00
ce705d4df5
this should pass through a proper disconnect reason, and hopefully also prevent us from seeing onConnectionClosed be called back
DarthArgus2016-09-28 22:36:08 -05:00
d88e3a9b58
cleanup the implementation and make it build properly
DarthArgus2016-09-27 20:43:43 +00:00
a4663d8879
in theory this will let us track connection counts per ip more efficiently using an unordered_map
DarthArgus2016-09-27 15:27:09 -05:00
93735f9c3c
silence unless the client has a legit station id
DarthArgus2016-09-26 00:52:44 -05:00
5e890f9c07
fix aforementioned bugs/mistakes/typos probably need to add the SOE logging class to this one, or give it a log output location or something at some point
DarthArgus2016-09-26 05:25:18 +00:00
e395177e8f
this probably has at least one mistake/bug/typo but will move our DoS protection into the low level UDP lib
DarthArgus2016-09-26 00:29:29 -05:00
dec4946da5
doesn't seem that flto wants to work, despite it working earlier :(
DarthArgus2016-08-25 07:14:47 +00:00
088480ad11
add mulodi function (using tor's example) as it is missing in llvm when using m32 on 64 hosts... also tweak a default config flag and enhance some of our ldflags and cflags - having mulodi allows us to finally use flto!
DarthArgus2016-08-25 05:47:29 +00:00
d7392f2f40
No need to reserve, insert will handle any reallocating that needs to happen efficiently
apathy2016-08-21 18:10:20 -07:00
09b288a36e
use empty as we always init the var
DarthArgus2016-08-21 19:16:00 +00:00
17265362de
getString: check if null before casting
DarthArgus2016-08-21 18:23:47 +00:00
dd9417642c
for nullable types we'll need to create a proper function outside the template for them
DarthArgus2016-08-21 18:21:33 +00:00
8b614c5769
return a proper T null instead of an empty T
DarthArgus2016-08-21 17:04:48 +00:00
0595b456b9
Reserve enough space before inserting.
apathy2016-08-21 10:30:42 -07:00
33c42720a8
Change encoding/decoding binary data to use base64 vs utf-8 to prevent bad characters in the oracle string encoding.
apathy2016-08-21 10:00:05 -07:00
06925a9219
change to use bools as passed from the frontend (yay! less comparisons!)
DarthArgus2016-08-21 03:52:51 +00:00
268727ce16
reduce the stats we're collecting... if we only need player count we can probably nuke everything but that, right @stellab @swgnoobs ?
DarthArgus2016-08-20 15:01:11 +00:00
e0e39df051
forgot something, now time to sleep
DarthArgus2016-08-20 14:21:42 +00:00
e517f98f9c
Consider all bazaars (not just the restuss ones) as persisted.
apathy2016-08-20 06:45:19 -07:00
f7d5eeb160
so the result buffer/string wasn't being parsed by the json class because even using the "proper" ways of comparing the char * to "application/json" weren't working...ugh
DarthArgus2016-08-20 13:44:33 +00:00
5f0e741a72
make the webAPI more generic so that we can use it in a more standardized fashion
DarthArgus2016-08-20 11:19:23 +00:00
e0d9f58ba0
update nlohmann's json to v2.0.2
DarthArgus2016-08-20 07:41:19 +00:00
00fef810e7
prevent the insanity of specifying (usually) defaults
DarthArgus2016-08-06 02:00:49 +00:00
a9fa196e5f
did i say simpler? i'm not sure if this is more or less simple...but it is secure and operates how we need... @apathy audit please?
DarthArgus2016-08-05 01:09:25 +00:00
04ed17a152
correct some of my erroneous snprintfs
DarthArgus2016-07-31 07:20:21 +00:00
1dff426bbe
enable more thread safety and buffer safety
DarthArgus2016-07-31 05:45:10 +00:00
ed4a4d54ee
test this theory and see if this keeps the prod server (more threads) from dumping java...if so i'll make this value configurable
DarthArgus2016-07-27 05:05:22 +00:00
74ade42185
this rids us of connection warnings on shutdown
DarthArgus2016-07-27 01:27:26 +00:00
80b0db5327
another patch by apathy to remove shared_ptr
DarthArgus2016-07-25 05:25:38 +00:00
d9b4adb7e8
per apathy - other files/libs will need this where boost is used - [PATCH] Replace boost::shared_ptr usage with std::shared_ptr
DarthArgus2016-07-25 05:20:32 +00:00
3129127815
via apathy - Replace push_back with emplace_back to create a default object which is immediately accessed following the changed line via .back()
DarthArgus2016-07-25 05:17:05 +00:00
e65b05ada9
mostly template initializations to prevent undefined behavior in the (unlikely) chance some of these properties are used
DarthArgus2016-07-24 21:25:03 -07:00