Skip to main content

01. ๋„์ž…

About 2 minCcrashcoursecnetworksocket

01. ๋„์ž… ๊ด€๋ จ


1 Intro
Beej's Guide to Network Programming

Hey! Socket programming got you down? Is this stuff just a little too difficult to figure out from the man pages? You want to do cool Internet programming, but you donโ€™t have time to wade through a gob of structs trying to figure out if you have to call bind() before you connect(), etc., etc.

Well, guess what! Iโ€™ve already done this nasty business, and Iโ€™m dying to share the information with everyone! Youโ€™ve come to the right place. This document should give the average competent C programmer the edge s/he needs to get a grip on this networking noise.

And check it out: Iโ€™ve finally caught up with the future (just in the nick of time, too!) and have updated the Guide for IPv6! Enjoy!


Audience

This document has been written as a tutorial, not a complete reference. It is probably at its best when read by individuals who are just starting out with socket programming and are looking for a foothold. It is certainly not the complete and total guide to sockets programming, by any means.

Hopefully, though, itโ€™ll be just enough for those man pages to start making senseโ€ฆ


Platform and Compiler

The code contained within this document was compiled on a Linux PC using Gnuโ€™s gcc compiler. It should, however, build on just about any platform that uses gcc. Naturally, this doesnโ€™t apply if youโ€™re programming for Windowsโ€”see the section on Windows programming, below.


Official Homepage and Books For Sale

This official location of this document is:

There you will also find example code and translations of the guide into various languages.

To buy nicely bound print copies (some call them โ€œbooksโ€), visit:

Iโ€™ll appreciate the purchase because it helps sustain my document-writing lifestyle!


Note for Solaris/SunOS Programmers


Note for Windows Programmers


Email Policy


Mirroring


Note for Translators



Dedication


Publishing Information

This book is written in Markdown using the vim editor on an Arch Linux box loaded with GNU tools. The cover โ€œartโ€ and diagrams are produced with Inkscape. The Markdown is converted to HTML and LaTex/PDF by Python, Pandoc and XeLaTeX, using Liberation fonts. The toolchain is composed of 100% Free and Open Source Software.


์ด์ฐฌํฌ (MarkiiimarK)
Never Stop Learning.