Skip to content

Releases: lxi-tools/liblxi

liblxi v1.22

08 Nov 18:31
v1.22
Compare
Choose a tag to compare

Changes since liblxi v1.21:

  • Revert "Cleanup libtirpc dependency checking"

    This reverts commit e9ea6e7.

    Reverting because it breaks discovery of some instruments.

Primoz Salic:

  • fix vx11 discovery and raw protocols in windows

liblxi v1.21

02 Oct 17:29
v1.21
Compare
Choose a tag to compare

Changes since liblxi v1.20:

  • Cleanup libtirpc dependency checking

    Sun RPC has finally migrated fully from glibc to libtirpc so we can now
    do a standard meson dependency check for libtirpc. If you are on an
    older platform you will have to apply this patch reverted.

  • Remove search_mdns binary added by accident

  • Fix use of obsolete gethostbyname()

    Use getaddrinfo() instead to resolve hostname.

Primoz Salic:

  • fix: Only finds _lxi._tcp services on MacOS, not the others #84

  • Add Windows support

Jakub Wilk:

  • Fix typo

Peder Toftegaard Olsen:

  • Fixed tcp timeout

liblxi v1.20

20 May 10:21
v1.20
Compare
Choose a tag to compare

Changes since liblxi v1.19:

Rob Carruthers:

  • refactor(bonjour): Fix typo & Refine browse default domain

  • feat(bonjour): Add mdns support for macOS

    This code is designed to discover LXI (LAN eXtensions for Instrumentation) devices using the Bonjour service (dns_sd.h) discovery protocol. The flow of the implementation is as follows:

    1. bonjour_discover(lxi_info_t *info, int timeout_ms) is the entry point of the code. It takes an lxi_info_t struct to store the discovered information and a timeout in milliseconds. It calls the browse_lxi_services() function with these parameters. The lxi_info_t is setup with callbacks to initially to recieve the discovered instrument data. See test folder for examples.

    2. lxi_info_t struct is defined in lxi.h.
      browse_lxi_services(lxi_info_t *info, int timeout_ms) iterates through lxi_services (defined in lxi.h) and calls the Bonjour DNSServiceBrowse() function for each service. It then processes the results and sets a timeout to stop waiting for results after a specified duration. It provides the browse_call back() function as a callback.

    3. browse_callback() is called for each discovered service. It extracts relevant information about the service and then creates a browse_data_t struct to aggregate service data. It calls DNSServiceResolve() to resolve the service's hostname, and provides resolve_callback() as a callback.

    4. resolve_callback() is called once the service hostname is resolved. It calls the resolve_ip_address() function to convert the hostname into an IP address. It also extracts more information about the service and then calls the info->service() callback function with the discovered service's information. Finally, it frees the memory allocated for the browse_data_t struct.

    5. resolve_ip_address() takes a hostname and port, and converts them into an IP address using the getaddrinfo() function. The resulting IP address is stored in the provided buffer.

    Service types and labels are declared in the lxi_services array in src/lxc.c

liblxi v1.19

03 May 00:03
v1.19
Compare
Choose a tag to compare

Changes since liblxi v1.18:

  • Silence cast of function type in autogenerated vxi11 code

  • Add test example demonstrating how to use RAW protocol

Rob Carruthers:

  • Docs: Update README with Homebrew installation instructions

  • macOS: Build support

  • macOS: Add check for RPC headers

  • macOS: Remove libtirpc dependency during build process

liblxi v1.18

25 Oct 17:34
v1.18
Compare
Choose a tag to compare

Changes since liblxi v1.17:

Alexander von Gluck IV:

  • build: make avahi optional again after meson conversion

    • matches readme again
    • liblxi is still usable, but it definitely
      takes some of the fun out of it.
  • vxi11: Drop non-portable pthread timeout call; solves #30

    • Convert to manually constructing a timedjoin
      wrapper which should work outside of Linux
    • Tested functional

liblxi v1.17

28 Sep 13:03
v1.17
Compare
Choose a tag to compare

Changes since liblxi v1.16:

Perry Hung:

  • vxi11: do not fail on zero length messages

    Zero length messages are valid replies in VXI-11. Do not return an error
    and prematurely exit.

    Reads should be repeated until EOI or an error is encountered.

Holzapfel:

  • Fixed missing VXI11 connect-abort multithreading synchronization

  • Fixed LXI connect error memory leak

liblxi v1.16

03 Feb 05:31
v1.16
Compare
Choose a tag to compare

Changes since liblxi v1.15:

  • Fix handling of send errors for TCP/RAW connections

liblxi v1.15

22 Jan 05:19
v1.15
Compare
Choose a tag to compare

Changes since liblxi v1.14:

  • Fix meson libtirpc dependency

    Remove the hardcoded include patch to libtirpc and replace it with one
    dynamically resolved via pkg-config.

    The reason for implementing the meson dependency check this way is to
    avoid linking with libtirpc because it is broken with regards to its Sun
    RPC implementation so instead we link with the RPC implementation which
    still reside in glibc. However, glibc removed their RPC header files so
    we need the headers from libtirpc.

    Further investigation is required to find and fix the bug in the
    libtirpc RPC implementation so we can get back to normal. They changed
    something moving it out of glibc and they shouldn't have.

liblxi v1.14

19 Jan 06:15
v1.14
Compare
Choose a tag to compare

Changes since liblxi v1.13:

  • Add lxi_discover_if() function

    Works exactly like the lxi_discover() function but adds an additional
    parameter ifname that specifies which network interface to broadcast on
    in case of using the DISCOVER_VXI11 discovery type.

  • Bypass linking with libtirpc because of bug

    When linking with libtirpc some of the VXI11 connect calls starts
    failing for some instruments. More investigation is needed to find out
    exactly why. It may be some regression in the libtirpc Sun RPC
    implementation. The Sun RPC features have recently been moved out of
    glibc into libtirpc.

    When we do not link with libtirpc we fallback to using glibc's
    implementation of the RPC features which seem to work better.

    We will accept this hack for now.

  • Remove include directory

  • Reduce compiler optimization level

  • Introduce proper Avahi timeout handling for mDNS

  • Increase number of allowed concurrent sessions

  • Fix timeout for VXI11 connect

    The VXI11 API does not provide any way to specify a communications
    timeout when connecting. To fix that we move the VXI11 connect action
    into a separate thread that is killed if the timeout is reached before
    the thread exits.

    The old behavior was that the connect action would eventually time out
    for instruments on known subnets. However, if you tried to connect to
    an instrument on an unknown subnet it would stall forever.

    This new implementation will respect the timeout for all cases.

  • Replace autotools with meson

zramudzuli:

  • Added timeout for RAW/TCP connections

liblxi v1.13

05 May 14:04
v1.13
Compare
Choose a tag to compare

Changes since liblxi v1.12:

  • Fix Sun RPC headers configure check

    The Sun RPC headers have been moved out of glibc into a separate
    library, libtirpc.

    Hence, check for glibc headers first and in case that fails search for
    headers in libtirpc via pkg-config.

  • Add const qualifier

    Because it is the right thing to do.

  • Update Travis

  • Use libtirpc for Sun RPC headers

  • Move test directory