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

Author Topic: Is it possible more conections on a socket?  (Read 4714 times)

0 Members and 1 Guest are viewing this topic.

csiz

  • Newbie
  • *
  • Posts: 30
    • Yahoo Instant Messenger - calinutzu92
    • View Profile
    • Email
Is it possible more conections on a socket?
« 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?
My new webpage calinmocanu

Daazku

  • Hero Member
  • *****
  • Posts: 896
    • View Profile
Is it possible more conections on a socket?
« Reply #1 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.
Pensez à mettre le tag [Résolu] une fois la réponse à votre question trouvée.
Remember to add the tag [Solved] when you got an answer to your question.

csiz

  • Newbie
  • *
  • Posts: 30
    • Yahoo Instant Messenger - calinutzu92
    • View Profile
    • Email
Is it possible more conections on a socket?
« Reply #2 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.
My new webpage calinmocanu