Network API
#61
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.
Reply
Thanks given by:
#62
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.
Reply
Thanks given by:
#63
You need to use -DSELF_TEST=1. Crake doesn't support the shorthand syntax.
Reply
Thanks given by:
#64
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.
Reply
Thanks given by:
#65
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.
Reply
Thanks given by:
#66
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.
Reply
Thanks given by:
#67
I reïnstalled it, and it works normaly again, but I still get the same WSAStartup error:
[Image: 1657c2d7c3.png]
Reply
Thanks given by:
#68
Now I got the same error. Super weird.
Reply
Thanks given by:
#69
Ah, that was a stupid mistake. Fixed now in 838f3dff6685795f90d59f2980d091f111f0180a.
Reply
Thanks given by: NiLSPACE
#70
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    *:*
Reply
Thanks given by:




Users browsing this thread: 6 Guest(s)