SFML community forums

Help => Network => Topic started by: csiz on May 19, 2009, 10:25:22 pm

Title: Is it possible more conections on a socket?
Post by: csiz on May 19, 2009, 10:25:22 pm
is it possible for me to have more socketTcp on the same socket.
if i do for example a listener socket on port 2000, when a connection is made i start a thread class with the parameter socket and that thread sends/receives data by it self. than in the same program i try to connect to different people sending a connection request than making that thread again.

Do the threads interact in any way?
Title: Is it possible more conections on a socket?
Post by: Daazku on May 20, 2009, 02:44:41 pm
You don't need to connect to a client after they did a connection on your server... You should read the tutorial again.
Title: Is it possible more conections on a socket?
Post by: csiz on May 20, 2009, 02:47:41 pm
it is not a server it is some p2p and that connection is needed as I don't want to separate those who I connect with from those that connect to me. The behavior of the connection is identical afterwards.