Network API
#41
Please do. It's not yet in MCS itself, but if you build the self-tests, you can test it out on the EchoServer.
Code:
git checkout libevent
cmake -DSELF_TEST=1 .
Reply
Thanks given by:
#42
I suppose I have to compile it on my desktop, since you can't have VS 2013 on Windows XP.
Reply
Thanks given by:
#43
Yes. Also make sure that in the project settings, the platform toolset is set to Visual studio 2013 - Windows XP (v120_xp). I think I managed to set it via CMake, but never tested it.
Reply
Thanks given by:
#44
It works fine for me:
[Image: 7fc78806b9.png]
Reply
Thanks given by:
#45
Do you have IPv6 installed in that XP? Can you do a netstat -na while the server is running (we're interested in port 9876 on various interfaces)
Reply
Thanks given by:
#46
It took me a while to figure out how ports work with IPv6, but I managed to do it Smile
[Image: 103cf32e29.png]

Oh wait you want a netstat..

Here it is:
[Image: d42ed515bb.png]
Reply
Thanks given by:
#47
It looks as if port 9876 is not listed in the IPv4 address space. Can you telnet to the IPv4 address of the machine and does it echo back whatever you type?
Code:
telnet 192.168.80.131 9876
(The IP I used is based on your netstat listing, it may change if it's dynamic, check for the current value first)
Reply
Thanks given by:
#48
You're right. I'm not able to connect using the IPv4 address. Weird.

And now 127.0.0.1 doesn't work either. I'm restarting Windows XP to see if it fixes it.

No that didn't work Sad
Reply
Thanks given by:
#49
Stupid me, I had one condition wrong. Please update to 896f0bdc9f2c79da429a2506cc1dcdca7191e1b8 and retry. I've also added some debugging logging.
Reply
Thanks given by:
#50
None of the IP adresses work for me now. Also the console gives this on startup:
Code:
EchoServer: starting up
setsockopt(IPV6_V6ONLY) returned -1, err is 10042 (Een onbekende, ongeldige of niet-ondersteunde optie of niveau is opgegeven in een getsockopt- of setsockopt-aanroep.). Second socket will be created
Creating a second socket for IPv4
Press enter to close the server.

If I translate the Dutch part it says: "An unknown, invalid or not supported option or level is given in a getsockopt- or setsockopt- call"
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)