Cuberite Forum
Network API - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Network API (/thread-1700.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


RE: Network API - xoft - 01-16-2015

That is most weird, WSAStartup is called from within the cNetworkSingleton constructor, so it should have been called, and I have no idea if it could even fail nowadays.
Anyway, I've added failure logging.


RE: Network API - NiLSPACE - 01-16-2015

Maybe I did something wrong when compiling. I did have some trouble with cmake. It said that it didn't know the argument -DSELF_TEST
errormessage:

Code:
Parse error in command line argument: -DSELF_TEST Should be: VAR:type=value CMake Error: No cmake script provided. CMake Error: Problem processing arguments. Aborting.

so I removed the "if(${SELF_TEST})" lines so that it would always make a self test solution file.


RE: Network API - worktycho - 01-16-2015

You need to use -DSELF_TEST=1. Crake doesn't support the shorthand syntax.


RE: Network API - NiLSPACE - 01-16-2015

I know, but then it says that the parameter doesn't exist.

I just remembered how I fixed it last time. The problem is that I didn't install cmake in a way that it's available in the command prompt, but because I was too lazy to re-install it I created a batch file that calls cmake with the given parameters and put it in system32. cmake doesn't seem to like that.


RE: Network API - xoft - 01-17-2015

As @worktycho already said, you're missing the "=1" at the end of the commandline, that's what the error message is saying.

Do reinstall your cmake properly and then re-configure Smile If you're reconfiguring an existing folder, remember to remove the CMakeCache.txt file before that.


RE: Network API - NiLSPACE - 01-17-2015

I just tried that, and it worked perfectly, but now Visual Studio says winsock2.h doesn't exist. This is probably because I deïnstalled some older versions of Visual c++ and the 2015 preview. I'm reïnstalling VS 2013 now.


RE: Network API - NiLSPACE - 01-17-2015

I reïnstalled it, and it works normaly again, but I still get the same WSAStartup error:
[Image: 1657c2d7c3.png]


RE: Network API - xoft - 01-17-2015

Now I got the same error. Super weird.


RE: Network API - xoft - 01-17-2015

Ah, that was a stupid mistake. Fixed now in 838f3dff6685795f90d59f2980d091f111f0180a.


RE: Network API - NiLSPACE - 01-17-2015

It works now, but Windows XP still doesn't have an IPv4 connection.
Code:
Actieve verbindingen Proto Lokaal adres Extern adres Status TCP 0.0.0.0:135 0.0.0.0:0 Bezig met luisteren TCP 0.0.0.0:445 0.0.0.0:0 Bezig met luisteren TCP 127.0.0.1:1026 0.0.0.0:0 Bezig met luisteren TCP 127.0.0.1:1043 127.0.0.1:1044 ESTABLISHED TCP 127.0.0.1:1044 127.0.0.1:1043 ESTABLISHED TCP 127.0.0.1:1045 127.0.0.1:1046 ESTABLISHED TCP 127.0.0.1:1046 127.0.0.1:1045 ESTABLISHED TCP 192.168.80.131:139 0.0.0.0:0 Bezig met luisteren TCP [::]:135 [::]:0 Bezig met luisteren 0 TCP [::]:9876 [::]:0 Bezig met luisteren 0 UDP 0.0.0.0:445 *:* UDP 0.0.0.0:500 *:* UDP 0.0.0.0:1025 *:* UDP 0.0.0.0:1034 *:* UDP 0.0.0.0:4500 *:* UDP 127.0.0.1:123 *:* UDP 127.0.0.1:1900 *:* UDP 192.168.80.131:123 *:* UDP 192.168.80.131:137 *:* UDP 192.168.80.131:138 *:* UDP 192.168.80.131:1900 *:*