Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to write a socket program .In that program, server perform regular tasks .Only if client send message to server , that server accept that interim message and then will continue regular tasks .pls help me how to write socket TCP/IP program using c.
Posted
Updated 13-Sep-15 19:07pm
v2

1 solution

hi,
So you want to do some network programming in C. I hope you are already comfortable programming in C. Plenty of help is available for Linux environment.

a very well written article here on CP :Networking and Socket programming tutorial in C[^]

a working code sample here[^]

Youtube videos covering this topic are also available.

For winsock (sockets on windows) you can refer :
1). quick winsock tutorial[^]
2). ofcourse MSDN[^]
you will have to further dig into these links.

hope this helps !!
 
Share this answer
 
Comments
CPallini 14-Sep-15 3:17am    
5.
chandanadhikari 14-Sep-15 3:31am    
thanks!

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