0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00
construct/ircd
2018-02-02 15:06:12 -08:00
..
m ircd:Ⓜ️:state: Make it right. 2018-02-02 15:06:12 -08:00
.gitignore Remove certain cruft from .gitignore. 2017-12-12 14:59:41 -07:00
aio.h ircd: Simplify various string generations. 2018-01-29 08:39:06 -08:00
base.cc ircd: Simplify various string generations. 2018-01-29 08:39:06 -08:00
client.cc ircd::net: Tweak these error handlers and log facilities. 2018-01-24 14:38:12 -08:00
ctx.cc ircd: Minor cleanup; comments; spacing. 2018-01-26 19:27:12 -08:00
db.cc ircd::db: Rename iov to txn (since iov should really be a rocksdb::SliceParts). 2018-01-30 09:58:36 -08:00
db.h ircd::db: Rename iov to txn (since iov should really be a rocksdb::SliceParts). 2018-01-30 09:58:36 -08:00
exception.cc ircd: Fix undefined RB_DEBUG for numerical RB_DEBUG_LEVEL. 2018-01-26 21:49:41 -08:00
fmt.cc ircd::fmt: Cleanup. Reduce sketchiness. 2018-01-19 02:47:08 -08:00
fs.cc ircd::fs: Log a warning when there's no support for any async IO. 2018-01-24 11:50:50 -08:00
hash.cc ircd: Split crypto.cc to hash.cc and rand.cc. 2017-11-30 11:23:43 -08:00
http.cc ircd::http: Parse the server string into the response head. 2018-01-24 09:15:16 -08:00
info.cc ircd::info: Involve utsname on supported; improve startup information. 2018-01-22 00:54:52 -08:00
ircd.cc ircd: Ensure ID of acting main thread is properly sampled. 2018-01-23 17:56:05 -08:00
js.cc ircd: Wrap the std::terminate() handler and add some related toys. 2017-11-30 11:23:46 -08:00
json.cc ircd::json: Minor cleanup; note todo for exp. 2018-01-30 13:37:13 -08:00
lexical.cc ircd: Simplify various string generations. 2018-01-29 08:39:06 -08:00
locale.cc What is the Matrix? Control. 2017-03-10 17:51:18 -08:00
logger.cc ircd: Remove various cruft. 2018-01-22 00:54:52 -08:00
Makefile.am ircd:Ⓜ️ Split state:: off dbs::. 2018-01-29 09:36:05 -08:00
mods.cc ircd::mods: Add remangling to module system (pre dll::smart_lib); cleanup. 2017-12-02 13:07:55 -08:00
net.cc ircd: These should be rvalue refs. 2018-01-30 23:13:27 -08:00
openssl.cc ircd::openssl: Minor simplify. 2018-01-30 22:53:28 -08:00
parse.cc ircd: Add mutable_buffer ctor to parse::buffer; cleanup parse related. 2017-10-11 18:18:17 -07:00
rand.cc ircd: Split crypto.cc to hash.cc and rand.cc. 2017-11-30 11:23:43 -08:00
README.md doc: Move conventions to STYLE; ircd: Add additional README related. 2018-01-04 17:44:34 -08:00
resource.cc ircd: Reduce log facility of resource registration. 2018-01-25 17:29:37 -08:00
rfc1035.cc ircd::rfc1035: Add CNAME RR; minor cleanup. 2018-01-28 21:18:26 -08:00
rfc1459.cc ircd::rfc1459: Cleanup namespace. 2017-12-12 14:59:40 -07:00
rfc3986.cc ircd: Add preliminary RFC3986 grammar; move urlencoding there. 2017-12-12 14:59:40 -07:00
server.cc ircd: These should be rvalue refs. 2018-01-30 23:13:27 -08:00
sodium.cc ircd::ed25519: Add filesystem related for sk; add seed constructor; various. 2017-10-03 04:27:14 -07:00
xdr.cc What is the Matrix? Control. 2017-03-10 17:51:18 -08:00

IRCd Library Definitions

This directory contains definitions and linkage for libircd

Overview

libircd is designed specifically as a shared object library. The purpose of its shared'ness is to facilitate IRCd's modular design: IRCd ships with many other shared objects which introduce the "business logic" and features of the daemon. If libircd was not a shared object, every single module would have to include large amounts of duplicate code drawn from the static library. This would be a huge drag on both compilation and the runtime performance.

                           (module)   (module)
                               |         |
                               |         |
                               V         V
                             |-------------|
----------------------       |             | < ---- (module)
|                    |       |             |
|  User's executable | <---- |   libircd   |
|                    |       |             |
----------------------       |             | < ---- (module)
                             |-------------|
                               ^         ^
                               |         |
                               |         |
                           (module)   (module)

The user (which we may also refer to as the "embedder" elsewhere in documentation) only deals directly with libircd and not the modules. libircd is generally loaded with its symbols bound globally in the executable and on most platforms cannot be unloaded (or even loaded) manually and has not been tested to do so. As an aside, we do not summarily dismiss the idea of reload capability and would like to see it made possible.