Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does a port stay open until it's closed?
Message
De
06/07/2007 13:01:39
 
 
À
06/07/2007 08:46:04
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Windows
Catégorie:
Informatique en général
Divers
Thread ID:
01238101
Message ID:
01238272
Vues:
9
Hi,

It's ages sinces I worked with this but I'm sure Bob is right in that you should spawn another socket to handle the request and keep the listening port free. I'm also sure that you can do this without worrying about the multithreading aspect. There's some sample code for creating a socket pool for this scenario somewhere on MSDN but I can't find it right now.
HTH,
Viv

>I was afraid you were going to say something like this. Creating a multi-threaded DLL just kind of give me the shivers, since I barely know much about TCP and port communications as it is. Any good resources you can recommend before I go Googling?
>
>> Most TCP type schemes like this would use two ports, one to make the original connection, then a seperate thread to handle that request so the original port could continue to listen for more connections. In this senerio you may want to use a multi threaded Dll.
>>
>>Bob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform