SFML community forums
Help => Network => Topic started by: bluevideogame on February 23, 2015, 07:47:40 am
-
On the command line, how do I write the syntax for receiving data actively, while i am inputting text to the other client.
Because when I start typing in cin it won't receive the data until i press enter...
Thanks
-
Either make the standard input non-blocking (OS specific) or use two threads.
-
hmm, when i pass the socket into the thread function, i get running errors
-
hmm, when i pass the socket into the thread function, i get running errors
A minimal code example and some information about those errors might help to help you :)
-
You are really *not* giving us anything to work with.
Post your code.
Post your error messages.
Post your description of what happens vs what you expect to happen.
Post info - we can't guess your problem from nothing..!