The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> C Programming
|
Help with socket programming
Discuss Help with socket programming in the C Programming forum on Dev Shed. Help with socket programming C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

August 28th, 2002, 04:22 AM
|
|
Junior Member
|
|
Join Date: Aug 2002
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Help with socket programming
Hi...
wondering if there is anyone out there with experience in socket programming?
Need some help with a project
For my project I am supposed to write a client program to send TCP packets out to my lecturer's server that has been pre-programmed to delay, corrupt or lose a certain % of the packets that it receives.
I am supposed to collect the returned packets and calculate the % of corrupted, delayed, lost packets
Currently, I have read a few books, articles on socket programming and have learnt how to open or close a socket connection.
However, i am still at a lost at how to actually do the program (as in how to collect the packets and calulate the %)
Wondering if anyone can point me to any resources or any advice on what to do or how to start?
Thx..
Kelvin
|

August 28th, 2002, 11:29 AM
|
|
Contributing User
|
|
Join Date: Aug 2002
Posts: 40
Time spent in forums: 28 m 13 sec
Reputation Power: 11
|
|
|
I highly recommend Network Programming for Microsoft Windows, Second Edition by Anthony Jones and Jim Ohmund.
Post your questions when you need help with something.
Kuphryn
|

August 28th, 2002, 01:52 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|

August 28th, 2002, 03:15 PM
|
|
|
|
Join Date: Apr 2002
Location: The Emerald City
Posts: 289
Time spent in forums: < 1 sec
Reputation Power: 12
|
|
Quote: Originally posted by Scorpions4ever
My favourite book on socket programming is UNIX Network Programming by Richard Stevens ... |
I have to second Scorpions' nod to this book. I have the first edition and it has been indispensable. It contains just about everything you need to know for network programming.
jaa
|

August 28th, 2002, 11:02 PM
|
|
Junior Member
|
|
Join Date: Aug 2002
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
gosh the book is costly!
i am going to try if I can find it in my sch library..cannot afford the book
thx for the tips..
I will post again if i face any problems
|

August 29th, 2002, 07:16 AM
|
 |
Big Endian
|
|
Join Date: May 2001
Location: Fly-over country
|
|
|

August 29th, 2002, 11:54 AM
|
|
Junior Member
|
|
Join Date: Aug 2002
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Quote: | This sounds similar to a popular program called ping. Looking at its source code might help you with your project. |
thx
I will be taking a look
Just one question
does it make a diff whether i write the program in C, perl, Java or PHP?
|

August 29th, 2002, 12:47 PM
|
 |
Big Endian
|
|
Join Date: May 2001
Location: Fly-over country
|
|
Quote: | does it make a diff whether i write the program in C, perl, Java or PHP? |
To me. No.
From a technical standpoint. Probably not.
To your teacher / lecturer. Maybe.
If your goal is to learn something, do it in all four languages.
If the person you're doing this for is trying to teach you about low-level socket programming, he might frown if you turn in a project that drops an ActiveX control on a VB form and returns the answer with little or no coding. What I'm trying to say is I don't know how much the other languages like Java wrap socket programming into objects or libraries that shield you from the inner workings of the protocol.
The language you choose would depend on the reason you're writing the program.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|