Skip to content

Commit 5609296

Browse files
authored
Update -h and man page as per jamuluswebsite/pull/714 (#2448)
1 parent c72195f commit 5609296

File tree

2 files changed

+102
-82
lines changed

2 files changed

+102
-82
lines changed

distributions/Jamulus.1

Lines changed: 87 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -60,82 +60,99 @@ is also possible.
6060
.Pp
6161
One participant starts
6262
.Nm
63-
in server mode, ideally on a dedicated server (virtual) machine;
64-
all participants start the (graphical) client which transmits audio
65-
to the server, receiving back a mixed stream.
63+
in Server mode, ideally on a dedicated server (virtual) machine;
64+
all participants start the (graphical) Client which transmits audio
65+
to the Server, receiving back a mixed stream.
6666
Use of a metronome is recommended.
6767
Clients should be connected using ethernet, not wireless, and use
6868
proper headphone and microphone connections, not Bluetooth.
69-
The server should run on a low-latency system, ideally not a VM.
69+
The Server should run on a low-latency system, ideally not a VM.
7070
.Pp
7171
Running
7272
.Nm
73-
without any extra options launches the full graphical client.
73+
without any extra options launches the full graphical Client.
7474
.Pp
7575
The options are as follows:
7676
.Bl -tag -width Ds
7777
.It Fl 6 | Fl \-enableipv6
7878
enable IPv6 support
7979
.It Fl c | Fl \-connect Ar address
80-
.Pq client mode only
81-
connect to the given server
80+
.Pq Client mode only
81+
connect to the given Server
8282
.Ar address
8383
.Pq Ar hostname Ns Op Ar :port
8484
at startup
8585
.It Fl d | Fl \-discononquit
86-
.Pq server mode only
87-
disconnect all clients on quit
86+
.Pq Server mode only
87+
disconnect all Clients on quit
8888
.It Fl e | Fl \-directoryserver Ar hostname
89-
.Pq server mode only
90-
make the server public and set its genre by setting the address
91-
of the directory server (formerly central server) to use to
89+
.Pq Server mode only
90+
Register the Server with the given Directory by setting the Directory Server Address to use to
9291
.Ar hostname ;
9392
see also
9493
.Fl o ;
95-
to be a directory server, use
94+
to be a Directory Server, use
9695
.Dq Li localhost
9796
.It Fl F | Fl \-fastupdate
98-
.Pq server mode only
99-
use 64 samples frame size mode, which reduces latency if clients connect with
97+
.Pq Server mode only
98+
use 64 samples frame size mode, which reduces latency if Clients connect with
10099
.Dq enable small network buffers
101100
turned on; requires a faster CPU to avoid dropouts and uses more bandwidth to
102-
connected clients
101+
connected Clients
102+
.It Fl \-jsonrpcsecretfile Ar file
103+
(Server mode only)
104+
Set the path to a text
105+
.Ar file
106+
containing an authentication string for obtaining access to the JSON-RPC API.
107+
This option is required when
108+
.Fl \-jsonrpcport
109+
is used.
110+
.It Fl \-jsonrpcport Ar port
111+
(Server mode only)
112+
Enables JSON-RPC API server to control the application, set the TCP
113+
.Ar port
114+
number.
115+
This API is
116+
.Em experimental
117+
and may change.
118+
It is only accessible from localhost.
119+
Please refer to the JSON-RPC API Documentation.
103120
.It Fl f | Fl \-listfilter Ar filter
104-
.Pq directory server mode only
105-
whitelist which servers are allowed to register on the server list;
121+
.Pq Directory mode only
122+
whitelist which Servers are allowed to register on the server list;
106123
.Ar filter
107124
must consist of semicolon-separated IP addresses
108125
.It Fl h | Fl \&? | Fl \-help
109126
display a short help text and exit immediately
110127
.It Fl i | Fl \-inifile Ar file
111-
.Pq client and non-headless server mode only
128+
.Pq Client and non-headless Server mode only
112129
override default initialisation file with
113130
.Ar file
114131
.It Fl j | Fl \-nojackconnect
115-
.Pq client mode only
132+
.Pq Client mode only
116133
do not automatically connect to JACK
117134
.It Fl L | Fl \-licence
118-
.Pq server mode only
119-
require clients to accept the agreement shown in the welcome message
135+
.Pq Server mode only
136+
require Clients to accept the agreement shown in the welcome message
120137
.Pq use Fl w No to set the text
121138
before they are allowed joining
122139
.It Fl l | Fl \-log Ar file
123-
.Pq server mode only
140+
.Pq Server mode only
124141
enable logging to
125142
.Ar file
126143
.It Fl M | Fl \-mutestream
127-
.Pq client mode only
144+
.Pq Client mode only
128145
start in muted state
129146
.It Fl m | Fl \-htmlstatus Ar file
130-
.Pq server mode only
131-
write server status and list of connected clients, in HTML format, to
147+
.Pq Server mode only
148+
write Server status and list of connected Clients, in HTML format, to
132149
.Ar file
133150
periodically
134151
.It Fl n | Fl \-nogui
135152
disable the GUI
136153
.It Fl o | Fl \-serverinfo Ar info
137-
.Pq public servers only
138-
set server location details, formatted as
154+
.Pq Registered Servers only
155+
set Server location details, formatted as
139156
.Sm off
140157
.Xo
141158
.Ar name Li \&;
@@ -151,7 +168,7 @@ see
151168
.Pa https://doc.qt.io/qt\-5/qlocale.html#Country\-enum
152169
for a list
153170
.It Fl P | Fl \-delaypan
154-
.Pq server mode only
171+
.Pq Server mode only
155172
start with delay panning enabled
156173
.It Fl p | Fl \-port Ar number
157174
set the local UDP port to use to
@@ -163,45 +180,45 @@ set QoS
163180
.Pq iptos byte
164181
to use
165182
.Pq default: 128
166-
.It Fl R | Fl \-recording Ar directory
167-
.Pq server mode only
183+
.It Fl R | Fl \-recording Ar Directory
184+
.Pq Server mode only
168185
enable recording
169186
.Pq but see Fl \-norecord
170187
storing tracks in
171-
.Ar directory
188+
.Ar Directory
172189
.It Fl s | Fl \-server
173-
start in server mode
190+
start in Server mode
174191
.It Fl T | Fl \-multithreading
175-
.Pq server mode only
192+
.Pq Server mode only
176193
use multithreading to make better use of multi-core CPUs and
177-
support more clients
194+
support more Clients
178195
.It Fl t | Fl \-notranslation
179196
disable translations, use built-in English strings
180197
.It Fl u | Fl \-numchannels
181-
.Pq server mode only
198+
.Pq Server mode only
182199
set maximum number of channels
183200
.Pq and , therefore , users ;
184201
default is 10, maximum is 150
185202
.It Fl v | Fl \-version
186203
display version information and exit immediately
187204
.It Fl w | Fl \-welcomemessage Ar message
188-
.Pq server mode only
205+
.Pq Server mode only
189206
show
190207
.Ar message
191208
.Pq may contain HTML and inline CSS
192209
to users on connect
193210
.It Fl z | Fl \-startminimized
194-
.Pq server mode only
211+
.Pq Server mode only
195212
start with minimised window
196213
.It Fl \-centralserver Ar hostname
197-
.Pq server mode only
214+
.Pq Server mode only
198215
deprecated alias for
199216
.Fl \-directoryserver
200217
.It Fl \-clientname Ar name
201-
.Pq client mode only
218+
.Pq Client mode only
202219
set window title and JACK client name
203220
.It Fl \-ctrlmidich Ar MIDISetup
204-
.Pq client mode only
221+
.Pq Client mode only
205222
set MIDI controller channel to listen on, control number offset and
206223
consecutive CC numbers (channels); format:
207224
.Sm off
@@ -227,48 +244,47 @@ left to right.
227244
does not provide feedback as to the current state of the Solo and Mute
228245
buttons so the controller must track and signal their state locally.
229246
.It Fl \-directoryfile Ar file
230-
.Pq directory server mode only
231-
enable server list persistence, storing to and loading from
232-
.Ar file
247+
.Pq Directory mode only
248+
remember registered Servers even if the Directory is restarted
233249
.It Fl \-mutemyown
234-
.Pq headless client only
250+
.Pq headless Client only
235251
mute my channel in my personal mix
236252
.It Fl \-norecord
237-
.Pq server mode only
253+
.Pq Server mode only
238254
do not automatically start recording even if configured with
239255
.Fl R
240256
.It Fl \-serverbindip Ar ip
241-
.Pq server mode only
257+
.Pq Server mode only
242258
configure Legacy IP address to bind to
243259
.It Fl \-serverpublicip Ar ip
244-
.Pq server mode only
245-
configure public Legacy IP address when both the directory server
246-
and the actual server are situated behind the same NAT, so that
247-
clients can connect
260+
.Pq Server mode only
261+
configure public legacy IP address when both the Directory Server
262+
and the actual Server are situated behind the same NAT, so that
263+
Clients can connect
248264
.It Fl \-showallservers
249-
.Pq client mode only
250-
show all registered servers in the serverlist regardless whether a ping
251-
to the server is possible or not
265+
.Pq Client mode only
266+
show all registered Servers in the serverlist regardless whether a ping
267+
to the Server is possible or not
252268
.Pq debugging command
253269
.It Fl \-showanalyzerconsole
254-
.Pq client mode only
270+
.Pq Client mode only
255271
show analyser console to debug network buffer properties
256272
.Pq debugging command
257273
.El
258274
.Pp
259275
Note that the debugging commands are not intended for general use.
260276
.Pp
261277
.Nm Jamulus
262-
knows four modes of operation: client mode and three kinds of server
263-
.Pq private , public , directory .
264-
A private server is unlisted, clients can only connect if given
278+
knows four modes of operation: Client mode and three kinds of Server
279+
.Pq Unregistered, Registered, Directory.
280+
A Unregistered Server is unlisted, Clients can only connect if given
265281
the address (IP address and port).
266-
A public server will contact a directory server (whose address must be
267-
given at server startup) and show up in that server's list; clients
268-
can retrieve a list of public servers from the directory server.
269-
Several public directory servers are operated by the Jamulus project;
270-
there is a directory server for each genre, which is how public Jamulus
271-
servers are categorised into genres.
282+
A Registered Server will contact a Directory (whose address must be
283+
given at Server startup) and show up in that Server's list; Clients
284+
can retrieve a list of Registered Servers from the Directory Server.
285+
Several Registered Directories are operated by the Jamulus project;
286+
there is a Directory for each genre, which is how Registered Jamulus
287+
Servers are categorised into genres.
272288
.Sh SEE ALSO
273289
.Xr qjackctl 1
274290
.Bl -tag -width Ds
@@ -277,15 +293,19 @@ online handbook
277293
.It Pa https://jamulus.io/wiki/FAQ
278294
frequently asked questions
279295
.It Pa https://jamulus.io/wiki/Running\-a\-Server
280-
documentation on server configuration and types
281-
.It Pa https://jamulus.io/wiki/Server\-Linux#running\-in\-public\-mode
282-
current list of directory servers operated by the Jamulus project,
296+
documentation on Server configuration and types
297+
.It Pa https://jamulus.io/wiki/Server\-Linux#running\-in\-registered\-mode
298+
current list of Directory Servers operated by the Jamulus project,
283299
controlling the
284300
.Dq genre
285301
.It Pa https://jamulus.io/wiki/Tips\-Tricks\-More
286302
verbose
287303
.Fl \-ctrlmidich
288304
documentation and other more or less useful information
305+
.It Pa https://github.com/jamulussoftware/jamulus/blob/master/docs/JSON\-RPC.md
306+
JSON-RPC API Documentation (see
307+
.Fl \-jsonrpcport
308+
above)
289309
.El
290310
.Sh AUTHORS
291311
.An -nosplit

src/main.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ QString UsageArguments ( char** argv )
10141014
"\n"
10151015
"Common options:\n"
10161016
" -i, --inifile initialization file name\n"
1017-
" (not supported for headless server mode)\n"
1017+
" (not supported for headless Server mode)\n"
10181018
" -n, --nogui disable GUI (\"headless\")\n"
10191019
" -p, --port set the local port number\n"
10201020
" --jsonrpcport enable JSON-RPC server, set TCP port number\n"
@@ -1029,39 +1029,39 @@ QString UsageArguments ( char** argv )
10291029
" -6, --enableipv6 enable IPv6 addressing (IPv4 is always enabled)\n"
10301030
"\n"
10311031
"Server only:\n"
1032-
" -d, --discononquit disconnect all clients on quit\n"
1033-
" -e, --directoryserver address of the directory server with which to register\n"
1034-
" (or 'localhost' to host a server list on this server)\n"
1035-
" --directoryfile enable server list persistence, set file name\n"
1036-
" -f, --listfilter server list whitelist filter. Format:\n"
1032+
" -d, --discononquit disconnect all Clients on quit\n"
1033+
" -e, --directoryserver address of the directory Server with which to register\n"
1034+
" (or 'localhost' to host a server list on this Server)\n"
1035+
" --directoryfile Remember registered Servers even if the Directory is restarted. Directory Servers only.\n"
1036+
" -f, --listfilter Server list whitelist filter. Format:\n"
10371037
" [IP address 1];[IP address 2];[IP address 3]; ...\n"
10381038
" -F, --fastupdate use 64 samples frame size mode\n"
10391039
" -l, --log enable logging, set file name\n"
10401040
" -L, --licence show an agreement window before users can connect\n"
10411041
" -m, --htmlstatus enable HTML status file, set file name\n"
1042-
" -o, --serverinfo registration info for this server. Format:\n"
1042+
" -o, --serverinfo registration info for this Server. Format:\n"
10431043
" [name];[city];[country as QLocale ID]\n"
1044-
" --serverpublicip public IP address for this server. Needed when\n"
1044+
" --serverpublicip public IP address for this Server. Needed when\n"
10451045
" registering with a server list hosted\n"
10461046
" behind the same NAT\n"
10471047
" -P, --delaypan start with delay panning enabled\n"
10481048
" -R, --recording sets directory to contain recorded jams\n"
10491049
" --norecord disables recording (when enabled by default by -R)\n"
1050-
" -s, --server start server\n"
1051-
" --serverbindip IP address the server will bind to (rather than all)\n"
1050+
" -s, --server start Server\n"
1051+
" --serverbindip IP address the Server will bind to (rather than all)\n"
10521052
" -T, --multithreading use multithreading to make better use of\n"
1053-
" multi-core CPUs and support more clients\n"
1053+
" multi-core CPUs and support more Clients\n"
10541054
" -u, --numchannels maximum number of channels\n"
10551055
" -w, --welcomemessage welcome message to display on connect\n"
1056-
" (string or filename)\n"
1056+
" (string or filename, HTML supported)\n"
10571057
" -z, --startminimized start minimizied\n"
10581058
"\n"
10591059
"Client only:\n"
1060-
" -c, --connect connect to given server address on startup\n"
1061-
" -j, --nojackconnect disable auto Jack connections\n"
1060+
" -c, --connect connect to given Server address on startup\n"
1061+
" -j, --nojackconnect disable auto JACK connections\n"
10621062
" -M, --mutestream starts the application in muted state\n"
10631063
" --mutemyown mute me in my personal mix (headless only)\n"
1064-
" --clientname client name (window title and jack client name)\n"
1064+
" --clientname Client name (window title and JACK client name)\n"
10651065
" --ctrlmidich MIDI controller channel to listen\n"
10661066
"\n"
10671067
"Example: %1 -s --inifile myinifile.ini\n"

0 commit comments

Comments
 (0)