ProgrammingThis 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.
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.
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.