Skip to content

Commit b25662f

Browse files
committed
- overhaul SystemAddress::SetBinaryAddress() to resolve multiple issues (primarily in IPv4 mode - #263, #265)
- always try to determine the port in SystemAddress::FromString() if a delimiter is specified (IPv6 mode - #263) - added missing WSAStartupSingleton::AddRef() in RakNetSocket2::DomainNameToIP() (#264) - fix inconsistent 'g' vs. 'A' check in NonNumericHostString() (fixes #262) - replace natpunch.jenkinssoftware.com with napunch.slikesoft.com throughout the code and consistently use natpunch.slikesoft.com (instead of slikesoft.com) (#173) - dropped left over XBOX code (facebookarchive#130) - code style, minor tweaks, whitespaces, and TODO markers (facebookarchive#130)
1 parent 2872d3e commit b25662f

File tree

17 files changed

+111
-205
lines changed

17 files changed

+111
-205
lines changed

DependentExtensions/IrrlichtDemo/slikenetstuff.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
88
*
99
*
10-
* Modified work: Copyright (c) 2017-2018, SLikeSoft UG (haftungsbeschränkt)
10+
* Modified work: Copyright (c) 2017-2019, SLikeSoft UG (haftungsbeschränkt)
1111
*
1212
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
1313
* license found in the license.txt file in the root directory of this source tree.
@@ -62,7 +62,7 @@ extern PlayerReplica *playerReplica; // Network object that represents the playe
6262

6363
// A NAT punchthrough and proxy server Jenkins Software is hosting for free, should usually be online
6464
#define DEFAULT_NAT_PUNCHTHROUGH_FACILITATOR_PORT 61111
65-
#define DEFAULT_NAT_PUNCHTHROUGH_FACILITATOR_IP "slikesoft.com"
65+
#define DEFAULT_NAT_PUNCHTHROUGH_FACILITATOR_IP "natpunch.slikesoft.com"
6666

6767
void InstantiateRakNetClasses(void);
6868
void DeinitializeRakNetClasses(void);

Samples/AutopatcherClient/AutopatcherClientTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
88
*
99
*
10-
* Modified work: Copyright (c) 2016-2017, SLikeSoft UG (haftungsbeschränkt)
10+
* Modified work: Copyright (c) 2016-2019, SLikeSoft UG (haftungsbeschränkt)
1111
*
1212
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
1313
* license found in the license.txt file in the root directory of this source tree.
@@ -230,7 +230,7 @@ int main(int argc, char **argv)
230230
printf("Enter server IP: ");
231231
Gets(buff,sizeof(buff));
232232
if (buff[0]==0)
233-
//strcpy_s(buff, "natpunch.jenkinssoftware.com");
233+
//strcpy_s(buff, "natpunch.slikesoft.com");
234234
strcpy_s(buff, "127.0.0.1");
235235
}
236236
else

Samples/BigPacketTest/BigPacketTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
88
*
99
*
10-
* Modified work: Copyright (c) 2016-2018, SLikeSoft UG (haftungsbeschränkt)
10+
* Modified work: Copyright (c) 2016-2019, SLikeSoft UG (haftungsbeschränkt)
1111
*
1212
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
1313
* license found in the license.txt file in the root directory of this source tree.
@@ -62,7 +62,7 @@ int main(void)
6262
printf("Enter remote IP: ");
6363
Gets(text,BIG_PACKET_SIZE);
6464
if (text[0]==0)
65-
strcpy_s(text, BIG_PACKET_SIZE, "slikesoft.com"); // dx in Europe
65+
strcpy_s(text, BIG_PACKET_SIZE, "natpunch.slikesoft.com"); // dx in Europe
6666
}
6767
else if (ch=='s')
6868
{

Samples/ChatExample/Client/Chat Example Client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
88
*
99
*
10-
* Modified work: Copyright (c) 2016-2018, SLikeSoft UG (haftungsbeschränkt)
10+
* Modified work: Copyright (c) 2016-2019, SLikeSoft UG (haftungsbeschränkt)
1111
*
1212
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
1313
* license found in the license.txt file in the root directory of this source tree.
@@ -100,7 +100,7 @@ int main(void)
100100
client->AllowConnectionResponseIPMigration(false);
101101
if (ip[0]==0)
102102
strcpy_s(ip, "127.0.0.1");
103-
// strcpy_s(ip, "natpunch.jenkinssoftware.com");
103+
// strcpy_s(ip, "natpunch.slikesoft.com");
104104

105105

106106
puts("Enter the port to connect to");

Samples/ComprehensivePCGame/ComprehensivePCGame.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
88
*
99
*
10-
* Modified work: Copyright (c) 2016-2018, SLikeSoft UG (haftungsbeschränkt)
10+
* Modified work: Copyright (c) 2016-2019, SLikeSoft UG (haftungsbeschränkt)
1111
*
1212
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
1313
* license found in the license.txt file in the root directory of this source tree.
@@ -50,7 +50,7 @@
5050

5151
#define DEFAULT_SERVER_PORT "61111"
5252
// Public test server
53-
#define DEFAULT_SERVER_ADDRESS "slikesoft.com"
53+
#define DEFAULT_SERVER_ADDRESS "natpunch.slikesoft.com"
5454
#define NAT_TYPE_DETECTION_SERVER 0
5555
#define USE_UPNP 1
5656
#define MASTER_SERVER_ADDRESS "masterserver2.raknet.com"

Samples/NATCompleteClient/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
88
*
99
*
10-
* Modified work: Copyright (c) 2016-2018, SLikeSoft UG (haftungsbeschränkt)
10+
* Modified work: Copyright (c) 2016-2019, SLikeSoft UG (haftungsbeschränkt)
1111
*
1212
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
1313
* license found in the license.txt file in the root directory of this source tree.
@@ -44,7 +44,7 @@ using namespace SLNet;
4444
#define DEFAULT_RAKPEER_PORT 50000
4545
#define RAKPEER_PORT_STR "0"
4646
#define DEFAULT_SERVER_PORT "61111"
47-
#define DEFAULT_SERVER_ADDRESS "slikesoft.com"
47+
#define DEFAULT_SERVER_ADDRESS "natpunch.slikesoft.com"
4848

4949
enum SampleResult
5050
{

Samples/PacketConsoleLogger/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
88
*
99
*
10-
* Modified work: Copyright (c) 2016-2018, SLikeSoft UG (haftungsbeschränkt)
10+
* Modified work: Copyright (c) 2016-2019, SLikeSoft UG (haftungsbeschränkt)
1111
*
1212
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
1313
* license found in the license.txt file in the root directory of this source tree.
@@ -56,7 +56,7 @@ void main(void)
5656
RakSleep(30);
5757
}
5858

59-
SLNet::ConnectionAttemptResult car = rakPeer->Connect("slikesoft.com", 61111, 0, 0);
59+
SLNet::ConnectionAttemptResult car = rakPeer->Connect("natpunch.slikesoft.com", 61111, 0, 0);
6060
(void) car;
6161
for(;;)
6262
{

Samples/RakVoice/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
88
*
99
*
10-
* Modified work: Copyright (c) 2016-2018, SLikeSoft UG (haftungsbeschränkt)
10+
* Modified work: Copyright (c) 2016-2019, SLikeSoft UG (haftungsbeschränkt)
1111
*
1212
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
1313
* license found in the license.txt file in the root directory of this source tree.
@@ -168,7 +168,7 @@ int main(void)
168168
printf("Enter IP of facilitator (enter for default): ");
169169
Gets(facilitatorIP,sizeof(facilitatorIP));
170170
if (facilitatorIP[0]==0)
171-
strcpy_s(facilitatorIP, "slikesoft.com");
171+
strcpy_s(facilitatorIP, "natpunch.slikesoft.com");
172172
facilitator.FromString(facilitatorIP);
173173
facilitator.SetPortHostOrder(NAT_PUNCHTHROUGH_FACILITATOR_PORT);
174174
rakPeer->Connect(facilitatorIP, NAT_PUNCHTHROUGH_FACILITATOR_PORT, 0, 0);

Samples/ReliableOrderedTest/ReliableOrderedTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
88
*
99
*
10-
* Modified work: Copyright (c) 2016-2018, SLikeSoft UG (haftungsbeschränkt)
10+
* Modified work: Copyright (c) 2016-2019, SLikeSoft UG (haftungsbeschränkt)
1111
*
1212
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
1313
* license found in the license.txt file in the root directory of this source tree.
@@ -129,7 +129,7 @@ int main(int argc, char **argv)
129129
Gets(ip, sizeof(ip));
130130
if (ip[0]==0)
131131
strcpy_s(ip, "127.0.0.1");
132-
// strcpy_s(ip, "natpunch.jenkinssoftware.com");
132+
// strcpy_s(ip, "natpunch.slikesoft.com");
133133

134134
printf("Enter remote port: ");
135135
Gets(str, sizeof(str));

Source/include/slikenet/types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
88
*
99
*
10-
* Modified work: Copyright (c) 2016-2018, SLikeSoft UG (haftungsbeschränkt)
10+
* Modified work: Copyright (c) 2016-2019, SLikeSoft UG (haftungsbeschränkt)
1111
*
1212
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
1313
* license found in the license.txt file in the root directory of this source tree.
@@ -148,7 +148,7 @@ struct RAK_DLL_EXPORT SocketDescriptor
148148
char hostAddress[32];
149149

150150
/// IP version: For IPV4, use AF_INET (default). For IPV6, use AF_INET6. To autoselect, use AF_UNSPEC.
151-
/// IPV6 is the newer internet protocol. Instead of addresses such as natpunch.jenkinssoftware.com, you may have an address such as fe80::7c:31f7:fec4:27de%14.
151+
/// IPV6 is the newer internet protocol. Instead of addresses such as natpunch.slikesoft.com, you may have an address such as fe80::7c:31f7:fec4:27de%14.
152152
/// Encoding takes 16 bytes instead of 4, so IPV6 is less efficient for bandwidth.
153153
/// On the positive side, NAT Punchthrough is not needed and should not be used with IPV6 because there are enough addresses that routers do not need to create address mappings.
154154
/// RakPeer::Startup() will fail if this IP version is not supported.

0 commit comments

Comments
 (0)