INNDCOMM(3)
π INNDCOMM(3) β inndcomm, from the Library Functions Manual: INND communication part of the InterNetNews library π
β¨ NAME β¨
inndcomm β INND communication part of InterNetNews library. Itβs the literal group chat between you and innd, bestie π
π SYNOPSIS π
#include "inndcomm.h"
int
ICCopen()
int
ICCclose()
void
ICCsettimeout(i)
int i;
int
ICCcommand(cmd, argv, replyp)
char cmd;
char *argv[];
char **replyp;
int
ICCcancel(mesgid)
char *mesgid;
int
ICCreserve(why)
char *why;
int
ICCpause(why)
char *why;
int
ICCgo(why)
char *why;
extern char *ICCfailure;
π¦ DESCRIPTION π¦
Okay so these routines are part of the InterNetNews library, libinn(3). They send commands to a running innd(8) daemon on the local host. The letters ICC stand for Innd Control Command. Cute, right? Itβs giving βinternet news but make it a control channelβ β¨
ICCopen()β creates a Unix-domain datagram socket and binds it to the serverβs control socket. It returns-1on failure or zero on success. This routine must be called before any other routine. No skipping, bestie π«ΆICCclose()β closes any descriptors that have been created byICCopen(). It returns-1on failure or zero on success.ICCsettimeout(i)β can be called before any of the following routines to determine how long the library should wait before giving up on getting the serverβs reply. This is done by setting and catching aSIGALRMsignal(2). If the timeout is less than zero then no reply will be waited for. TheSC_SHUTDOWN,SC_XABORT, andSC_XEXECcommands do not get a reply either. The default, which can be obtained by setting the timeout to zero, is to wait until the server replies.ICCcommand(cmd, argv, replyp)β sends the commandcmdwith parametersargvto the server. It returns-1on error. If the server replies, andreplypis notNULL, it will be filled in with an allocated buffer that contains the full text of the serverβs reply. This buffer is a string in the form of<digits><space><text>wheredigitsis the text value of the recommended exit code; zero indicates success. Replies longer than 4000 bytes will be truncated. The possible values ofcmdare defined in theinndcomm.hheader file. The parameters for each command are described inctlinnd(8). This routine returns-1on communication failure, or the exit status sent by the server which will never be negative.ICCcancel(mesgid)β sends acancelmessage to the server.mesgidis the Message-ID of the article that should be canceled. The return value is the same as forICCcommand.ICCpause(why),ICCreserve(why), andICCgo(why)β send apause,reserve, orgocommand to the server, respectively. IfICCreserveis used, then thewhyvalue used in theICCpauseinvocation must match; the value used in theICCgoinvocation must always match that the one used in theICCpauseinvocation. The return value for all three routines is the same as forICCcommand.
If any routine described above fails, the ICCfailure variable will identify the system call that failed. Itβs your little failure receipt, iykyk π§
πΈ HISTORY πΈ
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.10, dated 1993/01/29.
π SEE ALSO π
ctlinnd(8), innd(8), libinn(3).
π Cute sign-off: this is the INNDCOMM(3) page β revision 1.10, dated 1993/01/29, from the InterNetNews library. Go off and control that daemon, bestie π
π¦ where this page comes from
- debian bookworm: inn 1:1.7.2q-47
- debian trixie: inn 1:1.7.2q-52
- ubuntu jammy: inn 1:1.7.2q-46build3
- ubuntu noble: inn 1:1.7.2q-50
- ubuntu questing: inn 1:1.7.2q-52
- ubuntu resolute: inn 1:1.7.2q-52build1
- ubuntu stonking: inn 1:1.7.2q-52build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms