STCPCLI(1)
π STCPCLI π
okay bestie, welcome to the stcpcli page from the BP executables manual β yes it's manual section 1, and yes we're gonna make it make sense π«Ά
β¨ NAME β¨
stcpcli β the DTN simple TCP convergence layer input task π¦
πΈ SYNOPSIS πΈ
stcpcli local_hostname[:local_port_nbr]
π DESCRIPTION π
so stcpcli is a background "daemon" task, and it's literally built different: it's 1 + N threads. one thread handles TCP connections coming in from remote stcpclo tasks and spawns sockets for receiving data from those tasks, plus one input thread for every socket it spawns, and each of those input threads handles the data reception on its own socket. multitasking icon behavior π
the connection thread keeps it simple: it accepts connections on a TCP socket bound to local_hostname and local_port_nbr, and spawns reception threads. and if you leave local_port_nbr out? no worries, the default is 4556 π
every reception thread receives bundles over its associated connected socket. and here's the detail that matters: each bundle received on the connection is preceded by a 32-bit unsigned integer in network byte order that tells you the length of the bundle. those received bundles get passed to the bundle protocol agent on the local ION node. slay β¨
stcpcli gets spawned automatically by bpadmin when it sees the 's' (START) command that starts operation of the Bundle Protocol. but here's the thing β the text of the command used to spawn the task has to be provided at the time the "stcp" convergence layer protocol is added to the BP database. iykyk. the convergence layer input task gets terminated by bpadmin when it sees an 'x' (STOP) command. also, stcpcli can be spawned and terminated in response to START and STOP commands that pertain specifically to the STCP convergence layer protocol. flexible fr fr π§
π₯ EXIT STATUS π₯
"0"βstcpcliterminated normally, for reasons noted in theion.logfile. if this termination was not commanded, bestie you need to investigate and solve the problem identified in the log file, then usebpadminto restartstcpcliπ"1"βstcpcliterminated abnormally, for reasons noted in theion.logfile. investigate and solve the problem identified in the log file, then usebpadminto restartstcpcli. periodt π
π FILES π
no configuration files are needed. literally none. clean girl aesthetic πΈ
π¦ ENVIRONMENT π¦
no environment variables apply. nothing. zero. nada β¨
π DIAGNOSTICS π
these diagnostics may be issued to the ion.log log file:
stcpcli can't attach to BP.βbpadminhas not yet initialized Bundle Protocol operations. πNo such stcp duct.β no STCP induct matchinglocal_hostnameandlocal_port_nbrhas been added to the BP database. usebpadminto stop the STCP convergence-layer protocol, add the induct, and then restart the STCP protocol. the way that you gotta do it in that order, okay?CLI task is already started for this duct.β redundant initiation ofstcpcli. she's already here bestie πCan't get IP address for hostβ operating system error. checkerrtext, correct the problem, and restart STCP. π§Can't open TCP socketβ operating system error. checkerrtext, correct the problem, and restart STCP. π§Can't initialize socketβ operating system error. checkerrtext, correct the problem, and restart STCP. π§stcpcli can't create access threadβ operating system error. checkerrtext, correct the problem, and restart STCP. π§
π BUGS π
report bugs to <ion-bugs@korgano.eecs.ohiou.edu> β please be nice, they're doing their best π«Ά
β SEE ALSO β
bpadmin(1), bprc(5), stcpclo(1)
ok that's the whole page bestie, go forth and converge those layers πβ¨
and for the record, this lil doc drop is from perl v5.24.1, dated 2016-07-07 β she's vintage, she's iconic, she ate ππ
π¦ where this page comes from
- ubuntu jammy: ion 3.2.1+dfsg-1.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms