UNIX Socket Programming Made Easy: Part 2

November 3rd, 2005 {Artikel}

This is part 2 of a series of articles on socket programming on UNIX. In part 1 you have read about basic techniques for writing simple TCP-based clients and servers. You know the calling sequence of system calls for servers and clients and know how to serve multiple clients by forking new processes for each connection request. Today I want to show you what it takes to write a multi-threaded server facilitating POSIX Threads (pthreads) and how we use the recv and send system calls instead of read and write.

Weiter »

UNIX Socket Programming Made Easy: Part 1

November 3rd, 2005 {Artikel}

Part 1 of a series of articles on network programming explains the basic concepts of socket programming under UNIX with focus on TCP. The reader is expected to have a good grasp of the C programming language and some basic understanding of the TCP/IP protocol stack.

Weiter »