View Single Post
Old Jun 30th, 2005, 5:26 PM   #4
cypherkronis
Newbie
 
Join Date: Jun 2005
Posts: 12
Rep Power: 0 cypherkronis is on a distinguished road
question: my example was of UDP sockets, ures is TCP. it seems TCP can't handle multiple clients on one port while UDP can. is there anyway to make change either so they can have both up and down communication as well multiple clients. or am i mistaken, and what you gave me is just the new way of doing what i was (ie, my way is deprecated). thanks...

edit: just to be concise, forget all i said about differences and what not, simply, is there any way for more than one client to connect to that particular server, cuz it seems that its only listening to one particular port and address ( one client ) at a time. thanks.

final edit ( and i shall leave you alone ) : is it possible to sort of wait for unique connections and keep them in a list, and later loop thru each waiting for incoming data making sure to keep them distinct. i'll try this but im not sure how to implement it. alternatively, i can have one thread in the server wait for incoming connections, and then maintain seperate threads for each client. it only occured to me now that the blasted accept() method waits till something actually connects. thats so odd, what if i dont know how many clients i'm expecting.

Last edited by cypherkronis; Jun 30th, 2005 at 5:39 PM.
cypherkronis is offline   Reply With Quote