patty/examples
XANTRONIX Development 1f4ffc98ac Implement new patty client code
Implement new patty client code, replacing src/call.c with src/client.c
providing clients with an interface dealing with file descriptors valid
in their process space; this also obviates the need to open a Unix
domain socket to a patty server explicitly, and helps keep track of
sockets opened on the server, locally

Changes:

    * Implement patty_client_new() to handle opening the server Unix
      domain socket, and to allocate a dict for mapping server-side
      sockets with current process file descriptors

    * Reimplement all server calls in src/call.c around the new
      patty_client type; calls which result in the creation of a
      Unix98 PTY by the patty server now handle opening the local PTY
      and setting the file descriptor to raw mode.  Furthermore, these
      calls deal exclusively in terms of current process file
      descriptors

    * Refactor src/server.c to use the new patty_client type and calls

    * Refactor examples/client.c, examples/server.c, examples/ax25dump.c
      to use the new patty_client type and calls

    * Fix a bug in src/server.c, respond_accept() wherein a 0, rather
      than the file descriptor of the socket, is sent to the client as a
      return value
2024-03-01 00:20:46 -05:00
..
ax25config.txt Add examples/ax25config.txt 2024-03-01 00:20:45 -05:00
ax25dump.c Implement new patty client code 2024-03-01 00:20:46 -05:00
connect.c Implement new patty client code 2024-03-01 00:20:46 -05:00
decode.c Don't exit when unable to decode specific frames 2024-03-01 00:20:46 -05:00
listen.c Implement new patty client code 2024-03-01 00:20:46 -05:00
Makefile Provide shorter names for programs in examples/ 2024-03-01 00:20:46 -05:00
patty.conf Better prototypes; better config 2024-03-01 00:20:46 -05:00
server.c Use ptsname(), not ptsname_r(), for portability 2024-03-01 00:20:46 -05:00