Skip to content

Commit

Permalink
[zeroconf] - add new hostname field to the service class - its needed…
Browse files Browse the repository at this point in the history
… by mdns
  • Loading branch information
Memphiz committed Jun 12, 2013
1 parent 4036bb8 commit 131d88c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xbmc/network/ZeroconfBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ void CZeroconfBrowser::ZeroconfService::SetDomain(const CStdString& fcr_domain)
m_domain = fcr_domain;
}

void CZeroconfBrowser::ZeroconfService::SetHostname(const CStdString& fcr_hostname)
{
m_hostname = fcr_hostname;
}

void CZeroconfBrowser::ZeroconfService::SetIP(const CStdString& fcr_ip)
{
m_ip = fcr_ip;
Expand Down
7 changes: 7 additions & 0 deletions xbmc/network/ZeroconfBrowser.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ class CZeroconfBrowser
void SetIP(const CStdString& fcr_ip);
const CStdString& GetIP() const {return m_ip;}

void SetHostname(const CStdString& fcr_hostname);
const CStdString& GetHostname() const {return m_hostname;}

void SetPort(int f_port);
int GetPort() const {return m_port;}

Expand All @@ -84,6 +87,10 @@ class CZeroconfBrowser
//2 entries below store 1 ip:port pair for this service
CStdString m_ip;
int m_port;

//used for mdns in case dns resolution fails
//we store the hostname and resolve with mdns functions again
CStdString m_hostname;

//1 entry below stores the txt-record as a key value map for this service
tTxtRecordMap m_txtrecords_map;
Expand Down

0 comments on commit 131d88c

Please sign in to comment.