Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zukonake

Pages: [1]
1
I am using Gentoo Linux.
This part works, no error is thrown and the server actually listens (though it still won't accept any connections).
It's hard for me to believe that this is a result of my linux configurations, if I have never encountered problems with any other programs AND other implementations of networking work, only SFML's implementation does not work.

2
From what I see, I have version 2.4.2 installed. I don't know if there is point in trying to compile it myself, Gentoo does that for me + I have tried to use precompiled libs from the site (also 2.4.2) as well.

3
I use SFML server and client together. I only tried to use some other implementations to pinpoint the issue. Literally everything is working well together, except for SFML server.

4
So, any ideas or should I file an issue on github?

5
It seems I was looking at the wrong version of the documentation. Indeed the was server listening on 0.0.0.0, but now I also tried it with "localhost" or "127.0.0.1", the issue still persists. I also tried to connect with the client to my local IP (192.168.X.X.), does not help.

6
Okay so, there is this sample code: https://pastebin.com/1VWaxyif
I can't get it working on my Gentoo Linux, tried to compile it with clang++, g++, nothing works.
My firewall is disabled and I have not encountered any problems like that earlier.

The situation is as follows:
I start the server.
server says: Listening, Accepting
I start the client.
client says: Connecting
And there it freezes. The client cannot connect. If I don't start the server at all:
client says: Client does not werk. Client end
So there is some kind of connection going on, but not really.

I asked on the IRC, people said it worked for them. My friend on Windows was also able to make the connection.
I have pinpointed the issue to be server side. I have no problems with this code:
http://www.linuxhowtos.org/data/6/server.c
http://www.linuxhowtos.org/data/6/client.c
It goes through the accepting phase successfully.
Now, the SFML client also connects to the C server provided earlier.
Seems like the issue is on server side, more precisely: the TcpListener::listen and/or TcpListener::accept.
It seems that this actually SFML's bug, even though only I experience that behavior.

I also tried to connect with the C client to SFML server. Did not work. Netcat connection neither.
I am using SFML from Gentoo's repositories, I also tried to use the site-provided libs, they didn't work.
I also compiled and installed SFML from the master branch on github. No luck either.
I have run out of ideas now. I am quite certain that this is a bug.

Pages: [1]