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

Author Topic: Can't establish a TCP connection through localhost on my Linux PC.  (Read 12235 times)

0 Members and 2 Guests are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Can't establish a TCP connection through localhost on my Linux PC.
« Reply #15 on: September 02, 2017, 07:21:08 pm »
If it doesn't crash from your code, then SFML code in your code shouldn't make a difference. If you remove the SFML code, does it still crash?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kryx

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: Can't establish a TCP connection through localhost on my Linux PC.
« Reply #16 on: September 02, 2017, 07:26:42 pm »
I don't understand... If I remove the sfml part, I won't be able to use the socket, so there is no crash...

My application don't do anything else that launching a socket and connect to the server.

kryx

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: Can't establish a TCP connection through localhost on my Linux PC.
« Reply #17 on: September 02, 2017, 09:11:12 pm »
Problem solved, and it's absolutely my fault. If the socket is connected, he is deleted instead of kept (when the socket failed to connect).

 

anything