mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 05:43:52 +02:00
A sane IRC framework for the D language
https://deavmi.assigned.network/projects/birchwood
Tristan B. Velloza Kildaire
2305c19623
- Added an overridable `onConnectionClosed()` that is called when the connection is closed by either us or the remote host - Added `closedConnectionHandler()` (gonna get rid of soon) - Calling `disconnect()` will now RATHER shutdown the socket than close it, it no longer performs any other sub-systems clean up - Implemented `doThreadCleanup()` which stops the receive and send managers, stops the eventy engine too - At every `read()` we do in the reader loop, check if the return value is `<0` or `==0` in which case set the running state to false and exit the loop - The exiting of the reader loop will now shutdown the socket (in case remote host caused it and not us (via `disconnect()` for example) ), `close()` the socket and call `doThreadCleanup()` |
||
---|---|---|
.github/workflows | ||
branding | ||
source/birchwood | ||
.gitignore | ||
dub.json | ||
LICENSE | ||
README.md |
birchwood
A sane IRC framework for the D language
[13:51:00] <zh_> A sane IRC framework for the D language
[13:51:11] <zh_> s/sane/professional
Installation
To add birchwood to your project simply run:
dub add birchwood
Dependencies
Birchwood depends on the following D libraries:
libsnooze
(at least 1.2.0-beta)eventy
(at least 0.4.0)dlog
(at least 0.3.19)
Usage
You can take a look at the Client
API documentation on DUB.
Compatibility
More standards will be added within the next month or so, mostly relating to new response codes that just need to be added.
Credits
- supremestdoggo
- Adding IRC message formatting code (
267f8886150dbd40eb5c2fecb9d7e3a4c8dfd71f
)
- Adding IRC message formatting code (
License
See LICENSE.