-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPv6 support, phase 1 (direct connection) #1938
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -81,6 +81,7 @@ int main ( int argc, char** argv ) | |||||
bool bNoAutoJackConnect = false; | ||||||
bool bUseTranslation = true; | ||||||
bool bCustomPortNumberGiven = false; | ||||||
bool bEnableIPv6 = false; | ||||||
int iNumServerChannels = DEFAULT_USED_NUM_CHANNELS; | ||||||
quint16 iPortNumber = DEFAULT_PORT_NUMBER; | ||||||
quint16 iQosNumber = DEFAULT_QOS_NUMBER; | ||||||
|
@@ -179,6 +180,15 @@ int main ( int argc, char** argv ) | |||||
continue; | ||||||
} | ||||||
|
||||||
// Enable IPv6 --------------------------------------------------------- | ||||||
if ( GetFlagArgument ( argv, i, "-6", "--enableipv6" ) ) | ||||||
{ | ||||||
bEnableIPv6 = true; | ||||||
qInfo() << "- IPv6 enabled"; | ||||||
CommandLineOptions << "--enableipv6"; | ||||||
continue; | ||||||
} | ||||||
|
||||||
// Server only: | ||||||
|
||||||
// Disconnect all clients on quit -------------------------------------- | ||||||
|
@@ -784,8 +794,14 @@ int main ( int argc, char** argv ) | |||||
{ | ||||||
// Client: | ||||||
// actual client object | ||||||
CClient | ||||||
Client ( iPortNumber, iQosNumber, strConnOnStartupAddress, strMIDISetup, bNoAutoJackConnect, strClientName, bMuteMeInPersonalMix ); | ||||||
CClient Client ( iPortNumber, | ||||||
iQosNumber, | ||||||
strConnOnStartupAddress, | ||||||
strMIDISetup, | ||||||
bNoAutoJackConnect, | ||||||
strClientName, | ||||||
bEnableIPv6, | ||||||
bMuteMeInPersonalMix ); | ||||||
|
||||||
// load settings from init-file (command line options override) | ||||||
CClientSettings Settings ( &Client, strIniFileName ); | ||||||
|
@@ -809,6 +825,7 @@ int main ( int argc, char** argv ) | |||||
bShowComplRegConnList, | ||||||
bShowAnalyzerConsole, | ||||||
bMuteStream, | ||||||
bEnableIPv6, | ||||||
nullptr ); | ||||||
|
||||||
// show dialog | ||||||
|
@@ -846,6 +863,7 @@ int main ( int argc, char** argv ) | |||||
bUseMultithreading, | ||||||
bDisableRecording, | ||||||
bDelayPan, | ||||||
bEnableIPv6, | ||||||
eLicenceType ); | ||||||
|
||||||
#ifndef HEADLESS | ||||||
|
@@ -937,6 +955,7 @@ QString UsageArguments ( char** argv ) | |||||
" -Q, --qos set the QoS value. Default is 128. Disable with 0\n" | ||||||
" (see the Jamulus website to enable QoS on Windows)\n" | ||||||
" -t, --notranslation disable translation (use English language)\n" | ||||||
" -6, --enableipv6 enable IPv6 addressing (IPv4 is always enabled)\n" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this adds anything at all. It still requires further explanation as to what "direct connection to client/server" means, so it's useless verbosity. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But do we agree that the original proposal needs more clarification? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm happy with the wording Tony used. It's concise and says what it does. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still think it's not clear. Probably the question is: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Not "public", use the word "registered". You can register with a directory no one knows about. That's not particularly public. To operate the software, no. They can just select a listed entry from the directory and the software will use the returned IPv4 address. If you want to use IPv6, you need to: As I say, the help text need not say anything else. This is not the final form for the feature. It's intended to be somewhat experimental and the documentation should make that clear. Those who choose to use it should thus be given the credit for understanding what they've chosen to do. |
||||||
"\n" | ||||||
"Server only:\n" | ||||||
" -d, --discononquit disconnect all clients on quit\n" | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't need the ugly
N
, generally.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was just following what appeared to be the majority convention. No strong view either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not going to block it for that, either. (It's just on my list of things to get rid of.)