A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/909c8fb7667ca6ec98ed174a48c5671d56689251 below:

[core] Moved CCache inside the srt namespace. · Haivision/srt@909c8fb · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+9

-5

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+9

-5

lines changed Original file line number Diff line number Diff line change

@@ -47,7 +47,7 @@ written by

47 47 48 48

using namespace std;

49 49 50 -

CInfoBlock& CInfoBlock::copyFrom(const CInfoBlock& obj)

50 +

srt::CInfoBlock& srt::CInfoBlock::copyFrom(const CInfoBlock& obj)

51 51

{

52 52

std::copy(obj.m_piIP, obj.m_piIP + 4, m_piIP);

53 53

m_iIPversion = obj.m_iIPversion;

@@ -62,7 +62,7 @@ CInfoBlock& CInfoBlock::copyFrom(const CInfoBlock& obj)

62 62

return *this;

63 63

}

64 64 65 -

bool CInfoBlock::operator==(const CInfoBlock& obj)

65 +

bool srt::CInfoBlock::operator==(const CInfoBlock& obj)

66 66

{

67 67

if (m_iIPversion != obj.m_iIPversion)

68 68

return false;

@@ -79,7 +79,7 @@ bool CInfoBlock::operator==(const CInfoBlock& obj)

79 79

return true;

80 80

}

81 81 82 -

CInfoBlock* CInfoBlock::clone()

82 +

srt::CInfoBlock* srt::CInfoBlock::clone()

83 83

{

84 84

CInfoBlock* obj = new CInfoBlock;

85 85

@@ -96,15 +96,15 @@ CInfoBlock* CInfoBlock::clone()

96 96

return obj;

97 97

}

98 98 99 -

int CInfoBlock::getKey()

99 +

int srt::CInfoBlock::getKey()

100 100

{

101 101

if (m_iIPversion == AF_INET)

102 102

return m_piIP[0];

103 103 104 104

return m_piIP[0] + m_piIP[1] + m_piIP[2] + m_piIP[3];

105 105

}

106 106 107 -

void CInfoBlock::convert(const sockaddr_any& addr, uint32_t aw_ip[4])

107 +

void srt::CInfoBlock::convert(const sockaddr_any& addr, uint32_t aw_ip[4])

108 108

{

109 109

if (addr.family() == AF_INET)

110 110

{

Original file line number Diff line number Diff line change

@@ -48,6 +48,9 @@ written by

48 48

#include "netinet_any.h"

49 49

#include "udt.h"

50 50 51 +

namespace srt

52 +

{

53 + 51 54

class CCacheItem

52 55

{

53 56

public:

@@ -265,5 +268,6 @@ class CInfoBlock

265 268

static void convert(const sockaddr_any& addr, uint32_t ip[4]);

266 269

};

267 270 271 +

} // namespace srt

268 272 269 273

#endif

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4