Commit Graph

83 Commits

Author SHA1 Message Date
hayden 72bed26852 fixed all those dirty errors from the last few commits i made today 2019-07-15 13:43:14 -05:00
hpope 4e037428b4 added difficulty :) 2019-07-15 16:47:12 -05:00
hpope 65edb07bf0 renamed structs to further conform to the suckless style guide. there are probably some errors in this commit 2019-07-15 14:33:02 -05:00
hpope 57ea8f9870 whoops, a swap file got in there 2019-07-15 13:47:22 -05:00
hpope 877bfa113f changed the style of function declarations and switch statements to better fit the style guide on suckless.org. this will generally the guide for this project going forward 2019-07-15 13:45:42 -05:00
hayden 923fcd38dd some general changes 2019-07-14 22:14:34 -05:00
hayden 5bffb24f7f added handling for another packet 2019-07-14 16:59:55 -05:00
hayden c85e2e7320 added a packet_destroy function 2019-07-14 16:09:53 -05:00
hayden d599a6d877 moved everything in the packet.c file into a switch statement 2019-07-14 15:53:16 -05:00
hayden 5f17c0b2cb removed the usage of unions from the packet code, and instead switched to a method involving void pointers 2019-07-14 15:32:44 -05:00
hayden 229bbc4ebc added a MOVE_BUF macro to the packet.c file to speed up repeating code 2019-07-14 14:56:10 -05:00
hayden cd3df50ce1 enabled the color compiler flag, and removed the printing of filenames and linenumbers from the logging 2019-07-14 08:54:10 -05:00
hayden 672de469fb added the log.c library for logging 2019-07-14 08:40:20 -05:00
hayden cfe1c57746 fixed the imports 2019-07-14 07:00:59 -05:00
hayden ebee8ac895 moved some more files into subfolders 2019-07-14 06:58:58 -05:00
hayden de5d9eac8c fixed the cmake issue 2019-07-12 15:02:16 -05:00
hayden 7cdbfc0991 update readme 2019-07-11 18:08:53 -05:00
hayden 2953f2b66d started organizing source code into subfolders, but im getting errors now 2019-07-11 18:03:23 -05:00
hayden 1e616b5d1e added handlers for a few more packet types 2019-07-11 17:52:18 -05:00
hayden 939d15e389 got string reading working! slow making my way through the handshake packet 2019-07-11 17:11:26 -05:00
hayden d1649e70e4 finally got the read_varint function working right 2019-07-11 16:12:16 -05:00
hayden 4f0d2bb206 finally fixed the varint reading, by reading in provided data backwards!! 2019-07-10 19:22:07 -05:00
hayden fdf15c34d5 more networking progress. this code is BROKEN, i am just adding it to github to get help 2019-07-10 19:15:33 -05:00
hayden ded5ff4cb0 moved over the connection stuff to dyad 2019-07-10 18:16:39 -05:00
hayden a70e7c198c added dyad library 2019-07-10 17:23:01 -05:00
hayden 885f46c78a tried to get the read_varint function working, but i failed :( 2019-07-09 19:36:37 -05:00
hayden 43218e0d4f ported the varint reader from wiki.vg to use for reading in packets 2019-07-09 18:05:14 -05:00
hayden 43ee6dcfd6 started the packet processor, this will be one of the major files 2019-07-09 17:42:25 -05:00
hayden 987b677330 added the main connection loop 2019-07-09 17:10:38 -05:00
hayden 9e982a5e31 added a safe calloc function 2019-07-09 16:57:06 -05:00
hayden b30ea7a272 fixed up the connection pool thingy 2019-07-09 16:40:59 -05:00
hayden fe794a771d got a basic connection pool thingy working, as well as a few packet definitons 2019-07-09 16:20:12 -05:00
hayden 35b56942a7 first commit! :D 2019-07-09 13:24:17 -05:00