(Show all Socket articles . . .
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

bind()... listen()... accept(): The Unix Socket FAQ


This site contains hundreds of questions and answers about Unix network (socket) programming to help you with your networking program. I found the answer to my question immediately, complete with example source code. The solution to your problem with TCP/IP, UDP, ports, sockets, send, or recv is probably in here too.
Sockets are just like "worm holes" in science fiction. When things go into one end, they (should) come out of the other. Different kinds of sockets have different properties. Sockets are either connection-oriented or connectionless. Connection-oriented sockets allow for data to flow back and forth as needed, while connectionless sockets (also known as datagram sockets) allow only one message at a time to be transmitted, without an open connection. There are also different socket families. The two most common are AF_INET for internet connections, and AF_UNIX for unix IPC (interprocess communication). As stated earlier, this FAQ deals only with AF_INET sockets.
[Update June 26, 2005: Related: Librenix is now featuring a C language multithreaded network socket programming game server project for Linux called Space Tyrant. As of June 26, there have been four code releases and the game is already playable from telnet.]
 read more | mail this link | score:8393 | -Ray, March 6, 2001 (Updated: April 26, 2011)
More Programming articles...

Buy Digital Art on Acrylic

Selected articles

Apple to Intel move no threat to Linux

Hacker Haiku

Closed Source Linux Distribution Launched

No, RMS, Linux is not GNU/Linux A simple directory shadowing script for Linux

Download: Linux 3D Client for Starship Traders

The life cycle of a programmer


Firefox sidebar

Site map

Site info

News feed


(to post)


Articles are owned by their authors.   © 2000-2012 Ray Yeargin