How to do Socket Programming in C

Posted on 2004-09-22
Last Modified: 2010-05-18

     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.
Question by:chaitanyapaturu
LVL 45

Expert Comment

ID: 12130544
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   ->> highly recommended   ->> windows  ->> windows

Author Comment

ID: 12133826
But actually i am planning to do socket programming for embedded devices. will VC++ be suitable for that
LVL 45

Expert Comment

ID: 12140920
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.


Expert Comment

by:Amritpal Singh
ID: 12141899
for communication between two computers in TURBOC visit the following link

for win32 APIs ,a good tutorial is at

sorry,don't know the exact link

Expert Comment

ID: 12874980
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.

Accepted Solution

davidwolf earned 50 total points
ID: 12927237
Here's a tutorial you might want to check out

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
libcurl and C++ - Post JSON Data 8 1,295
mixing C++ and C code elegantly 10 156
Using ANSI C how to Read a .csv file 10 79
How to install SVN Command Line Client? 5 65
This tutorial is posted by Aaron Wojnowski, administrator at  To view more iPhone tutorials, visit This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode ( They will have you believe that Unicode requires you to use…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

774 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question