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.
david4; for leads peruse the howto,s under section 4.6 PROGRAMMING subsections 4.6.1-thru4.6.10 also take a look at the Single list of HOWTOs
section 5 & 6.
There is one guide called Beej's Socket programming guide, which is available as (various options pdf,html,ps etc etc). Try and search it in google. I found pretty concise and good.
The best way to become a better programmer with any given set of APIs is to actually write programs with those APIs. Reading up on documentation is great, but writing your own programs actually gets you thinking more on how to use those APIs, and helps you remember them better.
In the case of sockets, you might think about looking at some of the RFCs for well defined protocols like HTTP and FTP, and trying to write some code that implements them.
One question concerning deissum answer : Is it possible to completly remove the TCP layer and work on the IP layer. I mean can we remove the socket API and work directly under it?? Actually this is a question I put up in the thread [link underneath]. Please if you have a answer, do give me.
Thanks a lot , [and sorry david4 for interferring your thread]
Originally posted by shrey_j One question concerning deissum answer : Is it possible to completly remove the TCP layer and work on the IP layer. I mean can we remove the socket API and work directly under it?? Actually this is a question I put up in the thread [link underneath]. Please if you have a answer, do give me.
Thanks a lot , [and sorry david4 for interferring your thread]
As was already mentioned in your thread, you can create RAW sockets, which work at a lower level than the TCP layer. Trying to completely remove sockets would be much more difficult.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.