LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 06-12-2004, 12:38 PM   #1
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
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!
 
Old 06-12-2004, 01:36 PM   #2
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
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.
 
Old 06-12-2004, 01:42 PM   #3
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
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.
 
Old 06-12-2004, 01:49 PM   #4
rkef
Member
 
Registered: Mar 2004
Location: bursa
Posts: 110

Rep: Reputation: 15
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.
 
Old 06-12-2004, 02:20 PM   #5
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
but 4 is dead sexy !!!!
 
Old 06-12-2004, 03:01 PM   #6
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
network programming using C bastin_gh Programming 4 06-29-2005 05:58 PM
NetWork Programming.... WhiteDevel Programming 1 07-30-2004 02:33 PM
Need some network programming info gauge73 Programming 4 05-05-2004 12:00 PM
Network Programming Questions - please help pavgust Programming 2 03-29-2004 02:37 PM
Network Programming Sifvion Linux - Networking 6 05-24-2003 06:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration