Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

How to do Socket Programming in C

hi,

     I am currently using Turbo C 2.0 compiler for C programming. Can any one tell me how i can do socket programming in C. where to start , any tutorials... Is my compiler sufficient to do it, or i need to get some other one.
0
chaitanyapaturu
Asked:
chaitanyapaturu
1 Solution
 
sunnycoderCommented:
Switch to a win32 compiler ... preferable VC++ or still better to linux gcc or gcc port for windows like mingw32

then take a look at
http://www.ecst.csuchico.edu/~beej/guide/net/   ->> highly recommended
www.hal-pc.org/~johnnie2/winsock.html   ->> windows
tangentsoft.net/wskfaq/  ->> windows
0
 
chaitanyapaturuAuthor Commented:
But actually i am planning to do socket programming for embedded devices. will VC++ be suitable for that
0
 
sunnycoderCommented:
Almost all embedded OS have the same concept of socket programming, the APIs may differ though. I would recommed gcc ahead of VC++ and in any case, both are a far better choice as comapred to TC 2.0 for DOS

cheers
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Amritpal SinghCommented:
for communication between two computers in TURBOC visit the following link

http://www.funducode.com/freec/Hardware/new_hi_c02/Article02.htm

for win32 APIs ,a good tutorial is at

www.vijaymukhi.com

sorry,don't know the exact link
0
 
a_yurichCommented:
If you are planning to do socket programming for embedded devices, you better use embedded VC++ (it is freeware).
So it contains documentation about socket programming.
0
 
davidwolfCommented:
Here's a tutorial you might want to check out
http://www.cs.rpi.edu/courses/sysprog/sockets/sock.html
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now