|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
||||
|
||||
|
My favourite book on socket programming is UNIX Network Programming by Richard Stevens (http://www.amazon.com/exec/obidos/A...9187047-7867246) Just about every other socket programming book/article I've seen invariably refers to this book for further reading.
|
|
#4
|
|||
|
|||
|
Quote:
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
...calculate the % of corrupted, delayed, lost packets
This sounds similar to a popular program called ping. Looking at its source code might help you with your project. http://www.programmersheaven.com/se...asp?FileID=2417 |
|
#7
|
|||
|
|||
|
Quote:
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? |
|
#8
|
||||
|
||||
|
Quote:
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Help with socket programming |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|