Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-12-2004, 12:38 PM
|
#1
|
Member
Registered: Aug 2002
Distribution: Debian
Posts: 540
Rep:
|
Network programming needs checksums???
Hey, I was thinking of trying some network programming over TCP/IP. My questioin is: When using TCP/IP do you need checksumming, acks, nacks and that kinda stuff in your program, or is this already implemented at the TCP/IP level???
If the connection isn't broken, am I garenteed to get on the server what I sent from the client???
Thanks.
Oh wait! One more thing. If you don't have a ethernet card on your coputer, and no internet/networking drivers installed at all, does the local loopback connection to 127.0.0.1 still exists? Does it for both Windows and Linux??? Thanks!
|
|
|
06-12-2004, 01:36 PM
|
#2
|
Member
Registered: Mar 2003
Posts: 804
Rep:
|
no, the underlying protocols handle all the checksumming, ACK'ing, packet loss, etc. for u. and yes, tcp guarantees all data will arrive correctly. and loopback should always work as long as u didn't recompile ur kernel and take it out.
|
|
|
06-12-2004, 01:42 PM
|
#3
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
1. Nope, it's all taken care for you
2. Kinda skewed question - if everything is perfect then you can assume you will get what you sent - TCP provides best effort delivery - oops rong way round IP=best effort, TCP=quaranteed
3. Good question - I'd imagine yes, at least on linux anyway but someone can clarify
Last edited by Looking_Lost; 06-12-2004 at 01:44 PM.
|
|
|
06-12-2004, 01:49 PM
|
#4
|
Member
Registered: Mar 2004
Location: bursa
Posts: 110
Rep:
|
I had a reply all ready, but infamous41md covered the same bases.
So, I'll just add one thing: one question mark ('?') is sufficient. Two can potentially be cute. Three is an indication of deep emotional problems.
P.S I'm trying to boost the total post count, as my chosen date is approaching quickly.
P.P.S It's a joke :P.
|
|
|
06-12-2004, 02:20 PM
|
#5
|
Member
Registered: Mar 2003
Posts: 804
Rep:
|
but 4 is dead sexy !!!!
|
|
|
06-12-2004, 03:01 PM
|
#6
|
Member
Registered: Aug 2002
Distribution: Debian
Posts: 540
Original Poster
Rep:
|
Sorry! I just try to type fast, so I just got into the habbit of pushing '?' a few times. I will try not to anymore.
Btw, 5 means your a Nerd!
?????
EDIT: Thanks allot guys!
|
|
|
All times are GMT -5. The time now is 09:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|