lxi_connect(3)

πŸ“¦
version 1.22 Β· 4 versions
, in debian trixie, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

lxi_connect β€” bestie, this is the one that connects you to an LXI device. it's giving "let me in" πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <lxi.h>

int lxi_connect(char *address, int port, char *name, int timeout,
lxi_protocol_t protocol);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so lxi_connect() connects to a LXI device. the device's name is name, and it lives at the IP address that address points to. no cap, that's the whole vibe. 🌸

if name is NULL, then it just defaults to the name "inst0" β€” she's the main character, she's the default. periodt. πŸ‘‘

protocol is either VXI11 or RAW. two icons, pick your fighter. 🫢

if protocol is RAW then port gets used as the destination port. so like, that's where it's headed. πŸ’«

and timeout? that's in milliseconds. yes bestie, ms. not seconds. don't do the thing. 😭


πŸ’– RETURN VALUE πŸ’–

if everything slays, lxi_connect() returns a brand new connection handle. if something went wrong, you get LXI_ERROR instead. that's it, that's the deal. πŸ’€


🌈 SEE ALSO 🌈


and that's the whole page bestie 🧚 this was liblxi 1.22, dated 2024-11-08 β€” it came from the C Library Functions section and it's lowkey iconic. go forth and connect. 🌟

πŸ“¦ where this page comes from