MCPcopy Create free account
hub / github.com/amule-project/amule / SetPort

Method SetPort

src/Preferences.cpp:1839–1850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1837}
1838
1839void CPreferences::SetPort(uint16 val)
1840{
1841 // Warning: Check for +3, because server UDP is TCP+3
1842
1843 if (val +3 > 65535) {
1844 AddLogLineC(_("TCP port can't be higher than 65532 due to server UDP socket being TCP+3"));
1845 AddLogLineN(CFormat(_("Default port will be used (%d)")) % DEFAULT_TCP_PORT);
1846 s_port = DEFAULT_TCP_PORT;
1847 } else {
1848 s_port = val;
1849 }
1850}
1851
1852
1853namespace {

Callers 1

ProcessPacketMethod · 0.45

Calls 1

CFormatClass · 0.85

Tested by

no test coverage detected