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

Author Topic: Get receive data in real time  (Read 3582 times)

0 Members and 1 Guest are viewing this topic.

amited

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Get receive data in real time
« on: September 25, 2018, 08:08:18 pm »
I have problem with receive data in client side. I send to server info that player is connect and server make a new player in his vector and send another information to client with id player and coordinates. But i dont know how to receive that data. I tried a while loop but client is stop on this function with loop, i tried thread but thread dont work all the time ;/ Like if i send form server data then if just then thread working i get my data but otherwise i dont get info. How i have to receive data from serwer irrelevant what actualy function get focus from main?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Get receive data in real time
« Reply #1 on: September 27, 2018, 08:52:42 am »
I don't really understand what the issue is here.
I'd also recommend you provide some code.

Don't forget that for networking using Wireshark to see what is actually going on, on the wire is an essential tool.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything