From 047ecc9d8570581e2d8fc044925e9e28f9a6a6df Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 25 Nov 2008 15:06:31 +0000 Subject: further fixes for anyrtpproxy but still alot left --- src/anyrtpproxy/options.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/anyrtpproxy/options.h') diff --git a/src/anyrtpproxy/options.h b/src/anyrtpproxy/options.h index 51219df..50e16f9 100644 --- a/src/anyrtpproxy/options.h +++ b/src/anyrtpproxy/options.h @@ -39,7 +39,7 @@ typedef struct OptionConnectTo { std::string host; - uint16_t port; + std::string port; }; typedef std::list ConnectToList; @@ -47,12 +47,12 @@ typedef std::list ConnectToList; class Host { public: - Host(std::string addr, u_int16_t port) : addr_(addr), port_(port) {} + Host(std::string addr, std::string port) : addr_(addr), port_(port) {} Host(std::string addr_port) { std::istringstream iss(addr_port); getline(iss, addr_, ':'); - if(!(iss >> port_)) port_ = 0; + if(!(iss >> port_)) port_ = ""; } std::string toString() const { @@ -62,7 +62,7 @@ public: } std::string addr_; - u_int16_t port_; + std::string port_; }; typedef std::list HostList; @@ -87,8 +87,10 @@ public: Host getControlInterface(); std::string getLocalAddr(); Options& setLocalAddr(std::string l); - u_int16_t getLocalSyncPort(); - Options& setLocalSyncPort(u_int16_t l); + std::string getLocalSyncAddr(); + Options& setLocalSyncAddr(std::string l); + std::string getLocalSyncPort(); + Options& setLocalSyncPort(std::string l); u_int16_t getRtpStartPort(); Options& setRtpStartPort(u_int16_t l); u_int16_t getRtpEndPort(); @@ -122,7 +124,8 @@ private: std::string chroot_dir_; std::string pid_file_; bool daemonize_; - u_int16_t local_sync_port_; + std::string local_sync_addr_; + std::string local_sync_port_; std::string local_addr_; u_int16_t rtp_start_port_; u_int16_t rtp_end_port_; -- cgit v1.2.3