Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
aabafa19
Commit
aabafa19
authored
Aug 06, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configuration: add alternative value arg to getPort func
parent
70ae473f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
Configuration.h
include/Configuration.h
+1
-1
Configuration.cc
src/Various/Configuration.cc
+8
-4
No files found.
include/Configuration.h
View file @
aabafa19
...
...
@@ -176,7 +176,7 @@ namespace UniSetTypes
void
initParameters
();
void
setLocalNode
(
std
::
string
nodename
);
std
::
string
getPort
();
std
::
string
getPort
(
const
std
::
string
port
=
""
);
friend
class
::
SystemGuard
;
// friend bool SystemGuard::pingNode();
...
...
src/Various/Configuration.cc
View file @
aabafa19
...
...
@@ -869,21 +869,25 @@ void Configuration::setConfFileName( const string fn )
}
}
// -------------------------------------------------------------------------
string
Configuration
::
getPort
()
string
Configuration
::
getPort
(
const
string
port
)
{
//
?????? ????????? ??????
//
string
defport
(
getArgParam
(
"--uniset-port"
));
if
(
!
defport
.
empty
()
)
return
defport
;
//
????? ?????????? ?????????
//
if
(
getenv
(
"UNISET_PORT"
)
!=
NULL
)
{
defport
=
getenv
(
"UNISET_PORT"
);
return
defport
;
}
// ????? default
//
if
(
!
port
.
empty
()
)
return
port
;
//
return
UniSetDefaultPort
;
}
// -------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment