Commit Graph

16 Commits

Author SHA1 Message Date
CPunch 3e60cc3c0f Lib: Minor refactoring, boilerplate content packet handlers
- content contexts now have events
- minor comments
2022-05-18 12:04:19 -05:00
CPunch 89630b1a5e Linked to Ansible-Playbook 2022-04-11 12:56:42 -05:00
CPunch 5ece351025 Moved setPollIn flag to sLaika_socket from sLaika_peer 2022-03-27 17:32:32 -05:00
CPunch 7baced7b8f Refactored polling, lpolllist.c now handles poll events & flushes the poll queue
- Sockets now have event callbacks, onPollIn, onPollOut & onPollFail. If these are set to NULL they're ignored
2022-03-24 10:26:06 -05:00
CPunch 1d7efeba24 variable redefinition in poll() path 2022-03-14 00:33:23 -05:00
CPunch 8438378560 Major refactoring
lots and lots of changes. too many to list tbh, might rebase this commit later if i get bored enough.
2022-02-28 16:27:55 -06:00
CPunch fb71dfb3c3 Added panel!
- minor refactoring
- TODO: panel & cnc should really use unique keys. maybe add config file?
2022-02-14 00:22:36 -06:00
CPunch e7265ad15b Added laikaP_pushOutQueue, minor refactoring
- sLaika_pollList now holds an outQueue, if events are sent to a peer,
	the pollList will keep track so the caller (cnc, bot, etc)
	can handle each pollOut for the queued peers.
2022-02-13 23:55:30 -06:00
CPunch 49a992c70a Added panel-specific packets
- laikaP_iterList for iterating over pollList
- laikaS_consumeRead for throwing away padding or otherwise unneeded bytes
	in the socket's inbuffer
- incremented minor version
2022-02-10 16:56:40 -06:00
CPunch 6cab9107bb minor laikaM_rmvarray refactoring, removed 'type' parameter 2022-01-31 15:54:39 -06:00
CPunch 6d799a7532 Fixed poll() path in lpolllist.c, fixed laikaM_rmvarray() 2022-01-31 13:27:12 -06:00
CPunch 773ea19532 Added AddressSanitizer to debug builds
- Used ASAN to fix a small memleak in lpolllist.c (forgot to free hashmap)
2022-01-29 17:00:44 -06:00
CPunch a023929190 Added key exchange to LAIKA_HANDSHAKE_*
- test keys are defined in laika.h
- bug fixes & refactoring with laikaM_growarray()
2022-01-27 19:55:28 -06:00
CPunch 1bccc78117 First actual runnable version
- many warnings & bug fixes
- added bot/ source
2022-01-24 21:46:29 -06:00
CPunch c9fdeba4c5 Renamed 'CERROR' & 'CWARN' to LAIKA_ERROR & LAIKA_WARN 2022-01-24 09:51:29 -06:00
CPunch 8133a8d3cb Inital commit
lib/ is just [FoxNet](https://git.openpunk.com/CPunch/FoxNet) ported to C99
2022-01-23 21:28:16 -06:00