chiark / gitweb /
server/: Institute `address family table'; contemplate multiple sockets.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 16 Sep 2017 14:30:42 +0000 (15:30 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 28 Jun 2018 23:26:40 +0000 (00:26 +0100)
commit5d06f63eaa34a4bf0e116f3e2a1e4ef4e6434224
tree6a335c59e52ad507d784473ed79c7f19cab2df14
parent102fa2f087554901001abcd106160a4ea0668206
server/: Institute `address family table'; contemplate multiple sockets.

This is a slightly oddly-shaped change which lays important groundwork
for the future.

  * Firstly, it creates a table of address families, currently not very
    interestingly since there's only one, but this will be an essential
    tool for adding IPv6 support later.

  * Secondly, it turns the peer module's `sock' into a global vector
    `udpsock' of UDP sockets, possibly one for each of the supported
    address families.  There's no real change here, because there's only
    one address family known, but the `port' command has grown an
    address-family argument in case they have different ports.  To make
    this work, each peer now keeps track of the index of the socket it
    should use for transmitting messages.
py/tripe.py.in
server/admin.c
server/peer.c
server/servutil.c
server/tripe-admin.5.in
server/tripe.h