Commit Graph

722 Commits

Author SHA1 Message Date
1cdeb151bf Same copyright header change to stuff in the loops folder. 2022-02-10 11:01:52 +01:00
6221c9ed03 Directly add license header to the files I took from trantor in the containers, and log folders. 2022-02-10 10:38:37 +01:00
3534817831 Remove trantor NonCopyable inheritances from core. 2022-02-10 10:05:10 +01:00
b8e0579a2a Remove all TRANTOR_EXPORT defines from core. 2022-02-10 09:52:56 +01:00
482599541d Clean up the drogon web backend's SCsub. 2022-02-10 09:50:51 +01:00
6024258bf3 Also moved unit tests from trantor to the core. 2022-02-10 09:48:53 +01:00
e1a3ba0179 Move the rest of the net related things from trantor to core. 2022-02-10 09:42:13 +01:00
f1a528fbcf Also moved Wepoll. 2022-02-10 09:02:18 +01:00
735fe772f6 Renamed cc files to cpp. 2022-02-10 08:50:18 +01:00
e78b34f274 Also move windows support. 2022-02-10 08:47:31 +01:00
2fc39f37dc Remove the ObjectPool from trantor. 2022-02-10 08:44:44 +01:00
fc6381a6e5 Also moved TimingWheel to core. 2022-02-10 08:39:37 +01:00
556fa194ab Moved the task queues from trantor to core. 2022-02-10 08:31:28 +01:00
26f428e330 Also move defines.h from trantor to core. 2022-02-10 08:17:27 +01:00
9543341423 Move event loops from trantor to core. 2022-02-10 01:24:36 +01:00
6a29af9963 Moved lock free queue to core. 2022-02-10 00:56:28 +01:00
aeaecd4b76 Moved trantor's logger to core. It's a bit messy right now, but It will get cleaned up later. 2022-02-10 00:50:19 +01:00
94fd22eee9 Make Socket noncopyable, without inheritance. 2022-02-09 23:48:12 +01:00
0e6ad2d135 Moved socket from trantor to core. 2022-02-09 23:21:11 +01:00
1fbf6a22c1 Remove now unneeded file. 2022-02-09 21:41:34 +01:00
7105acff50 Remove unneeded includes. 2022-02-09 21:34:06 +01:00
9e5f58fdc1 Moved MsgBuffer from trantor to core. 2022-02-09 21:33:26 +01:00
a60b4681b6 Moved InetAddress from trantor to core. 2022-02-09 20:39:54 +01:00
9f39b21574 Moved Date from trantor to core/math. Also moved the methods from and Funcs.h to core. 2022-02-09 19:58:44 +01:00
4fd6ce10ea Added an rwlock to the NodeTree. Not yet usable. Committing, as I just noticed what to do with trantor, and will mess with that instead. 2022-02-09 19:04:11 +01:00
7e42d26afa Remove comment. 2022-02-06 16:07:20 +01:00
ec61d444e4 Now Paginator has a renderer field. This should make pagination implementations easily replacable from user code. 2022-02-06 16:07:01 +01:00
034931d390 Use the new helper in Paginator. Also add enabled classes. 2022-02-06 15:50:19 +01:00
c7fa9caac4 Added a new clsse helper method to HTMLBuilder. 2022-02-06 15:49:23 +01:00
7cb505ee09 Use the class variables instead of hardcoded values. 2022-02-06 15:26:19 +01:00
3fbd86e025 Added a new Paginator class. 2022-02-06 15:18:10 +01:00
02563831fc Added the rest of the standard rel attributes to HTMLBuilder. 2022-02-06 14:41:23 +01:00
3a834204d8 Implemented StaticPageFile and StaticPageFolderFiles aswell. 2022-02-06 14:01:04 +01:00
f7b17933b5 Implemented StaticPage. 2022-02-06 13:44:30 +01:00
ecf3daf5cb Fix typo. 2022-02-06 13:44:21 +01:00
1060f85089 Added find_reversed and file_get_extension helpers to string. 2022-02-06 13:43:56 +01:00
c4f0bd9538 Added the skeleton of 2 more static pages. 2022-02-06 12:51:18 +01:00
ea8de24dc8 Removed now unneeded module. 2022-02-06 12:46:31 +01:00
679c08c314 Fix 2 typos. 2022-02-06 11:14:12 +01:00
b337b8f7de Added up directory links to the BrowsableFolderServeNode. 2022-02-06 11:12:57 +01:00
a4e4df979d Added a new path_get_prev_dir method to String. 2022-02-06 11:12:31 +01:00
8072497ef4 Fix serving files in FolderServeNode. 2022-02-06 10:58:12 +01:00
16396f4af9 Removed stray print. 2022-02-06 10:57:02 +01:00
e86ce3df45 Added a new BrowsableFolderServeNode. It renders a simple directory / file browser for the given dir at the given uri. 2022-02-06 10:56:21 +01:00
1d311af863 only push the path if actually necessary during routing. 2022-02-06 10:55:19 +01:00
28d53b16f4 Request get_path now has 2 optional parameters for beginning and end slash placements. 2022-02-06 10:54:42 +01:00
1476a89304 Added more path related helpers to String. 2022-02-06 10:54:10 +01:00
aee3bd76c8 Apparently you can't use add empty strings as printf() parameters. 2022-02-06 10:11:20 +01:00
3b4d7a723d Return an empty string in substr if len is 0. 2022-02-06 10:10:30 +01:00
772dd028d9 Clean end slash in FolderServeNode. 2022-02-06 10:06:35 +01:00