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

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

Up
vote
Down

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:8466 | -Ray, March 6, 2001 (Updated: April 26, 2011)
More Programming articles...

Large Framed Abstract Art

Selected articles

Linux dominates Windows

Scripting: A parallel Linux backup script

Tutorial: Introduction to Linux files

The Network Computer: An opportunity for Linux

Closed Source Linux Distribution Launched

Why software sucks

The Real Microsoft Monopoly

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

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