Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything 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.
currently i am working on the socket programming ...but i have no idea of the socket programming interface plz explain how it looks like ...and if u people have some sample code please put on this forum....for the coding and
basic understanding i refer two books beej guide and tcp/ip socket in c...
The best reference (but also a very expensive one) is "Unix Network Programming: The Sockets API, Volume 1" by Richard Stevens et. al. That is the book that got me started.
You will also want your Linux man pages handy to get the details on how the function calls are actually implemented on your system (e.g. parameter types, return values, etc.).
You might think it is easier to start working from some sample code, but you will quickly find that you have bugs that you cannot fix. The Stevens book explains many of the pitfalls you will encounter as a novice sockets programmer and will help you avoid them.
Have you done a google search? There are about a billion pages out there on socket programming in *nix with sample code. There are tutorials all over the place.
One of my personal favorites: Beej's Guide to Network Programming starts out with the basics, and covers a lot of ground, fast. The Stevens book referenced earlier is the definitive reference on the subject.
--- rod.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.