Solved

How to do Socket Programming in C

Posted on 2004-09-22
6
192 Views
Last Modified: 2010-05-18
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
Comment
Question by:chaitanyapaturu
6 Comments
 
LVL 45

Expert Comment

by:sunnycoder
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
http://www.ecst.csuchico.edu/~beej/guide/net/   ->> highly recommended
www.hal-pc.org/~johnnie2/winsock.html   ->> windows
tangentsoft.net/wskfaq/  ->> windows
0
 

Author Comment

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

Expert Comment

by:sunnycoder
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

cheers
0
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.

 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12141899
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
 
LVL 1

Expert Comment

by:a_yurich
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.
0
 

Accepted Solution

by:
davidwolf earned 50 total points
ID: 12927237
Here's a tutorial you might want to check out
http://www.cs.rpi.edu/courses/sysprog/sockets/sock.html
0

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 SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. 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 (http://en.wikipedia.org/wiki/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