mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 14:41:57 +08:00
added command line and configuration file arguments to choose
the address and port to listen on or connect to. changed the default port and put it in ProtocolTypes.h. the HTTP port is now no longer opened unless the --http argument is supplied or the config file includes it.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
//
|
||||
|
||||
XSocketAddress::XSocketAddress(Error error,
|
||||
const CString& hostname, SInt16 port) throw() :
|
||||
const CString& hostname, UInt16 port) throw() :
|
||||
m_error(error),
|
||||
m_hostname(hostname),
|
||||
m_port(port)
|
||||
@@ -23,7 +23,7 @@ CString XSocketAddress::getHostname() const throw()
|
||||
return m_hostname;
|
||||
}
|
||||
|
||||
SInt16 XSocketAddress::getPort() const throw()
|
||||
UInt16 XSocketAddress::getPort() const throw()
|
||||
{
|
||||
return m_port;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user