Solved

How to do Socket Programming in C

Posted on 2004-09-22
6
198 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

624 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