Age | Commit message (Collapse) | Author |
|
|
|
|
|
also: empty signal set before using due to malloc
|
|
enforce 78 character limit
add comments for reasoning and description purposes
|
|
includes heartbeat mechanism
|
|
libcurl requires first 3 characters of a wss url
(i.e. wss://example.com) to be capital, so instead WSS://example.com.
so we modify the assume url to use WSS and ensure the returned URL from
discord uses the WSS capital scheme
|
|
break out of WSS compatability checker loop when we find a valid match
for wss
|
|
|
|
|
|
basic api http_get function, (which the definition of will def. change
in the future)
uses libcurl to get the api /gateway to get the wss url, and assumes a
url in case of failure so we at least try authenticating
|
|
sprinkle a little bit of commenting throughout the codebase. hopefully
i dont regret what i've written
- clone: bottom of stack is passed through
- print: write newline at end of message
- initcall: functions return void type
very basic net startup. hopefully i dont regret implementing the
websocket protocol myself in a language as holy as C.
|
|
- create subsystem system using clone syscall, shared memory, shared
file descriptors
- printk-like logging facility (TODO: console loglevel)
- initcall system (like linux kernel)
TODO: determine license
factors: linker.ld, linux kernel licensing (some ideas are more
liberally taken rather than paraphrased)
|