0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-02 19:04:17 +01:00
construct/ircd
2018-01-16 00:55:44 -08:00
..
m
.gitignore
aio.h ircd::fs: Simplify API/AIO by eliminating callback: ctx yield only for now. 2018-01-15 03:12:56 -08:00
client.cc ircd: Tweak client error handling stack apropos request timeout. 2018-01-15 03:12:56 -08:00
ctx.cc ircd::ctx: Add custom intrinsic list structure for contexts. 2018-01-13 23:45:36 -08:00
db.cc
exception.cc
fmt.cc
fs.cc ircd::fs: Simplify API/AIO by eliminating callback: ctx yield only for now. 2018-01-15 03:12:56 -08:00
hash.cc
http.cc
info.cc
ircd.cc
js.cc
json.cc
lexical.cc
locale.cc
logger.cc
Makefile.am ircd: Add preliminary RFC1035 support. 2018-01-14 20:45:30 -08:00
mods.cc
net.cc ircd::net: On disconnect, turn an EOF ec into a success. 2018-01-15 19:46:23 -08:00
openssl.cc
parse.cc
rand.cc
README.md
resource.cc
rfc1035.cc ircd: Add preliminary RFC1035 support. 2018-01-14 20:45:30 -08:00
rfc1459.cc
rfc3986.cc
server.cc ircd::server: Elide saving head in tag; add content buffer-underrun discard. 2018-01-16 00:55:44 -08:00
sodium.cc
xdr.cc

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.