ident(n)
π ident β bestie edition π
okay so. this is ident, manual section n, and it's literally an Identification protocol client. yes the whole thing. sit down, hydrate, let's go π«Ά
β¨ SYNOPSIS β¨
package require Tcl 8.5 9
package require ident ?0.44?
::ident::query socket ?callback?
that's it. that's the whole vibe. three lines and a dream π
πΈ DESCRIPTION πΈ
so the ident package gives you a client implementation of the ident protocol, which is defined in RFC 1413 β and yes the url is literally right here so you can go read it yourself: http://www.rfc-editor.org/rfc/rfc1413.txt πβ¨
π ::ident::query socket ?callback? π
this command queries the ident daemon on the remote side of the given socket, and it hands you back the result of the query as a dictionary. no cap. π«Ά
now here's the part where you have to lock in: if you interpret that dictionary as a list, the first key will always be resp-type. always. every single time. and it can have one of these three values: USERID, ERROR, and FATAL. it's giving very "pick your fighter" energy tbh.
these response types mean the following things:
USERIDβ this one's the slay π it indicates a successful response. you get two more keys and their associated values back:opsys, anduser-id. two for the price of one, iconic.ERRORβ so this means the ident server returned an error π a second key namederroris present, and its value contains the error-type field from the server response.FATALβ okay this is the π one. fatal errors happen when there's no ident server listening on the remote side, or when the ident server gives a response that does not conform to the RFC. a detailed error message comes back under theerrorkey.
π BUGS, IDEAS, FEEDBACK π
ngl, this document β and the package it describes β will undoubtedly contain bugs and other problems. like, obviously. it's software bestie. π
please report those in the category ident of the Tcllib Trackers right here: http://core.tcl.tk/tcllib/reportlist. and please also report any ideas for enhancements you may have for either the package and/or the documentation. we want the ideas too. all of them. π«Ά
when you're proposing code changes, please provide unified diffs, i.e the output of diff -u. iykyk π₯
note further that attachments are strongly preferred over inlined patches. attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. that's the one. the left-most one. go get it π
β KEYWORDS β
ident, identification, rfc 1413
π CATEGORY π
Networking
π COPYRIGHT π
Copyright (c) 2004 Reinhard Max <max@tclers.tk>
k bye bestie, that's the whole page π this was tcllib version 0.44, dated with all the love, and the manual page is ident(n). periodt. β¨π¦πΈ
π¦ where this page comes from
- fedora 43: tcllib 2.0-3.fc43 Β· TCL
- fedora 44: tcllib 2.0-4.fc44 Β· TCL
- nixos 26.05: tcllib 2.0
- nixpkgs unstable: tcllib 2.0
- Copyright (c) 2004 Reinhard Max <max@tclers\&.tk>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms