Click here to Skip to main content
15,914,419 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm a beginner to implement TCP program using select function in c under windows.
I don't know how to use it.
MSDN only defines the select function and not giving any implementation example.

I also referred in google to get an example.
But I can get only coding in c under linux.

Can you help me..

Please guide me to create TCP using select function.
Posted

Forget the select function until you have mastered the basics of TCP. There are plenty of samples to be found through Google which will show you how to create a simple client/server system. Once you are comfortable with the basics you can move to the more advanced setups using multiple clients etc.
 
Share this answer
 
Comments
IT-NEWBIE 15-Jul-11 6:26am    
Yes sir.. I have created multiple clients and handled by using thread concept. Now my next step is to use select to handle multiple clients.

Do you have any sample code to refer..
Richard MacCutchan 15-Jul-11 6:33am    
A little bit of effort using Google would have found you this.
IT-NEWBIE 15-Jul-11 6:39am    
Thank you sir..
I can get some idea from your guidance.
See How to use the select function with socket in c under windows platform[^].

Honestly, are you the same person as http://www.codeproject.com/script/Membership/View.aspx?mid=7395065[^]?! I noticed you come together. Same question!

—SA
 
Share this answer
 
Comments
Richard MacCutchan 15-Jul-11 6:42am    
Look at their member pages, both work for the same company, although one is the Junior. :)
Sergey Alexandrovich Kryukov 19-Jul-11 0:29am    
I even have a feeling this is the same person. Even if they are too separate... well not separate enough to consider them different. :-)
--SA

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