Article View: comp.lang.c
Article #1586Re: Inversion-of-control and dependency-injection in C
From: Bonita Montero
Date: Mon, 16 Nov 2026 18:09
Date: Mon, 16 Nov 2026 18:09
15 lines
2570 bytes
2570 bytes
Am 13.11.2026 um 23:50 schrieb Ross Finlayson: > So, here's one. Say you got a server process for sockets of the > connection-oriented or datagram-wise or association-oriented like > TCP, UDP, or SCTP, and it manages the connecting and the sending and > receiving about a million of those and is sort of fixed-size and > stable in a usual runtime. So, how do you design the interface, > about stuff like the state-machine of _protocols_, all about > _protocols_, in the application-layer and above, say, for example > the incremental-parsing and the state-machine of the protocol > and sub-protocols and upgrade-protocols and the like, what sort > of abstraction with suitable-defaults and reasonable-opinions > makes for having any sort protocol as a composable library. Use C++20 coroutines with Bost.ASIO and io_uring. This gives as less code as possible with nearly optimal I/O performance.
Technical Details
Message-ID:
<11dfgtf$3pj6i$1@raubtier-asyl.eternal-september.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mailReferences:
<yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> <11d56gl$3ud5q$1@dont-email.me> <11d6vjp$qhu8$1@raubtier-asyl.eternal-september.org> <dsednTD-Fblclmr3nZ2dnZfqnPWdnZ2d@giganews.com> <11d738r$ru7a$1@dont-email.me> <11d75i7$spj0$1@dont-email.me> <11d7c8k$173nk$1@dont-email.me> <11d7fbv$1839o$2@dont-email.me> <nrecnTdvuvbACWr3nZ2dnZfqn_adnZ2d@giganews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero <Bonita.Montero@gmail.com> Newsgroups: comp.lang.c Subject: Re: Inversion-of-control and dependency-injection in C Date: Mon, 16 Nov 2026 19:09:51 +0100 Organization: A noiseless patient Spider Lines: 15 Message-ID: <11dfgtf$3pj6i$1@raubtier-asyl.eternal-september.org> References: <yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> <11d56gl$3ud5q$1@dont-email.me> <11d6vjp$qhu8$1@raubtier-asyl.eternal-september.org> <dsednTD-Fblclmr3nZ2dnZfqnPWdnZ2d@giganews.com> <11d738r$ru7a$1@dont-email.me> <11d75i7$spj0$1@dont-email.me> <11d7c8k$173nk$1@dont-email.me> <11d7fbv$1839o$2@dont-email.me> <nrecnTdvuvbACWr3nZ2dnZfqn_adnZ2d@giganews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 16 Nov 2026 18:09:52 +0000 (UTC) Injection-Info: raubtier-asyl.eternal-september.org; logging-data="3984594"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18HrvkcXlrf1i7DkNvZQwGHugE6NKt2a1g="; posting-host="db39595f949976c8264d8b4dd7eaeae3" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:jwbIhPa140/ggyDIoGlMLYTd2LI= sha256:Ko7+gOitA+AxQ/KT7zv/OmrI8Wa16AtdU86NYZfWl8o= sha1:lKQRUE6sFBkFolGYgkeR7eJK5F0= sha256:kBSJec/E3j0hj/p1TkG07cyHeVnt7V8nvHc6ZVSqInY= Content-Language: de-DE In-Reply-To: <nrecnTdvuvbACWr3nZ2dnZfqn_adnZ2d@giganews.com>