August 28th, 2002, 05:22 AM
Help with socket programming
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?
August 28th, 2002, 12:29 PM
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.
August 28th, 2002, 02:52 PM
August 28th, 2002, 04:15 PM
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.
August 29th, 2002, 12:02 AM
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, 08:16 AM
August 29th, 2002, 12:54 PM
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, 01:47 PM
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.