1
#if !defined(DUM_CommandLineParser_hxx)
2
#define DUM_CommandLineParser_hxx
5
#include "resip/stack/Uri.hxx"
6
#include "rutil/Data.hxx"
8
class CommandLineParser
11
CommandLineParser(int argc, char** argv);
12
static resip::Uri toUri(const char* input, const char* description);
13
static std::vector<resip::Uri> toUriVector(const char* input, const char* description);
14
static std::vector<resip::Data> toDataVector(const char* input, const char* description);
15
static std::set<int> toIntSet(const char* input, const char* description);
18
resip::Data mLogLevel;
19
resip::Data mTlsDomain;
20
resip::Data mProxyHostName;
21
resip::Data mUserIPAddr;
22
std::vector<resip::Data> mMultihomedAddrs;
23
resip::Data mEnumSuffix;
24
resip::Uri mRecordRoute;
25
std::set<int> mUdpPorts;
26
std::set<int> mTcpPorts;
27
std::set<int> mTlsPorts;
28
std::set<int> mDtlsPorts;
32
bool mUseCongestionManager;
34
resip::Data mCertPath;
35
bool mEnableFlowTokenHack;
40
resip::Data mRequestProcessorChainName;
41
resip::Data mMySqlServer;
48
int mRegisterDuration;
51
resip::Data mPassword;
53
resip::Uri mOutboundProxy;
55
std::vector<resip::Uri> mBuddies;
57
resip::Data mPassPhrase;
63
/* ====================================================================
64
* The Vovida Software License, Version 1.0
66
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
68
* Redistribution and use in source and binary forms, with or without
69
* modification, are permitted provided that the following conditions
72
* 1. Redistributions of source code must retain the above copyright
73
* notice, this list of conditions and the following disclaimer.
75
* 2. Redistributions in binary form must reproduce the above copyright
76
* notice, this list of conditions and the following disclaimer in
77
* the documentation and/or other materials provided with the
80
* 3. The names "VOCAL", "Vovida Open Communication Application Library",
81
* and "Vovida Open Communication Application Library (VOCAL)" must
82
* not be used to endorse or promote products derived from this
83
* software without prior written permission. For written
84
* permission, please contact vocal@vovida.org.
86
* 4. Products derived from this software may not be called "VOCAL", nor
87
* may "VOCAL" appear in their name, without prior written
88
* permission of Vovida Networks, Inc.
90
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
91
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
92
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
93
* NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
94
* NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
95
* IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
96
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
97
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
98
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
99
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
100
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
101
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
104
* ====================================================================
106
* This software consists of voluntary contributions made by Vovida
107
* Networks, Inc. and many individuals on behalf of Vovida Networks,
108
* Inc. For more information on Vovida Networks, Inc., please see
109
* <http://www.vovida.org/>.