diff --git a/aucat/aucat.1 b/aucat/aucat.1 index 08036b8..8e14e07 100644 --- a/aucat/aucat.1 +++ b/aucat/aucat.1 @@ -142,12 +142,16 @@ be sent on multiple outputs or to record a stereo input into a mono stream. The default is .Ar on . .It Fl L Ar addr -Listen on the given address for incoming TCP connections. +Specify a local network address to listen on in server mode, +.Nm +will listen on TCP port 11025+n, where n is the unit number +specified with +.Fl U . Without this option, .Nm -listens only on the Unix-domain socket, thus it's not reachable -from the network. -The port number is 6523 plus the unit number. +listens on the +.Ux Ns -domain +socket only, and is not reachable from the network. .It Fl l Detach and become a daemon. .It Fl m Ar mode diff --git a/aucat/conf.h b/aucat/conf.h index ff7a898..0e067c0 100644 --- a/aucat/conf.h +++ b/aucat/conf.h @@ -33,10 +33,10 @@ extern int debug_level; /* * socket and option names */ -#define MIDICAT_PATH "midicat" #define AUCAT_PATH "aucat" -#define MIDICAT_PORT 6533 -#define AUCAT_PORT 6523 +#define MIDICAT_PATH "midicat" +#define AUCAT_PORT 11025 +#define MIDICAT_PORT 11041 #define DEFAULT_OPT "default" /* diff --git a/aucat/midicat.1 b/aucat/midicat.1 index 00b735a..698cca6 100644 --- a/aucat/midicat.1 +++ b/aucat/midicat.1 @@ -59,12 +59,16 @@ If the option argument is .Sq - then standard input will be used. .It Fl L Ar addr -Listen on the given address for incoming TCP connections. +Specify a local network address to listen on in server mode, +.Nm +will listen on TCP port 11041+n, where n is the unit number +specified with +.Fl U . Without this option, .Nm -listens only on the Unix-domain socket, thus it's not reachable -from the network. -The port number is 6533 plus the unit number. +listens on the +.Ux Ns -domain +socket only, and is not reachable from the network. .It Fl l Detach and become a daemon. .It Fl o Ar file diff --git a/libsndio/sndio.7 b/libsndio/sndio.7 index 5d81503..14bd35e 100644 --- a/libsndio/sndio.7 +++ b/libsndio/sndio.7 @@ -72,7 +72,7 @@ or .Xr midicat 1 service has a name of the form: .Bd -literal -offset center -type:unit[.option] +type:[hostname/]unit[.option] .Ed .Pp This information is used by audio and MIDI applications to determine @@ -101,6 +101,12 @@ software MIDI thru boxes, hardware ports and .Xr aucat 1 control through MIDI respectively. +.It Pa hostname +The hostname where the remote +.Xr aucat 1 +or +.Xr midicat 1 +server to connect to is running. .It Pa unit For hardware audio or MIDI devices, this corresponds to the character device minor number.