Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Someone pls help me to get the code fr server socket to accept different ports in an loop with if condition or switch case or any other
Pls help me
Posted
Comments
Richard MacCutchan 24-May-15 8:33am    
What help? Show what you have tried and what does not work and people will try to help you.

1 solution

You need multiple threads, one for each server socket port. Switching won't work since client can only connect if the socket/port is open and listening.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900