ident(n)

πŸ“¦
version 2.0 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– 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, and user-id. two for the price of one, iconic.
  • ERROR β€” so this means the ident server returned an error 😭 a second key named error is 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 the error key.

πŸ™ˆ 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 (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