C: Difference between revisions
Jump to navigation
Jump to search
(Replaced content with "= Socket Programming = * [http://beej.us/guide/bgnet/ Beej's Guide to Network Programming] * [http://alas.matf.bg.ac.rs/manuals/lspe/0789722410 Linux Socket Programming...") Tag: Replaced |
|||
Line 1: | Line 1: | ||
= Socket Programming = | |||
* [http://beej.us/guide/bgnet/ Beej's Guide to Network Programming] | * [http://beej.us/guide/bgnet/ Beej's Guide to Network Programming] | ||
Line 22: | Line 22: | ||
* http://web.cecs.pdx.edu/~jrb/tcpip/lectures/pdfs/sockets.pdf | * http://web.cecs.pdx.edu/~jrb/tcpip/lectures/pdfs/sockets.pdf | ||
== Terms == | |||
There are two types of '''address domains'''. | There are two types of '''address domains'''. | ||
Line 35: | Line 35: | ||
There are two types of '''ports''': | There are two types of '''ports''': | ||
Revision as of 20:12, 23 June 2019
Socket Programming
- Beej's Guide to Network Programming
- Linux Socket Programming by Example by Warren Gay
- UNIX Network Programming APIs 3rd; by Richard Stevens
- UNIX Network Programming by Jim Kurose
- http://www.prasannatech.net/2008/07/socket-programming-tutorial.html Socket programming in C, pERL, Python & Java.
- http://www.slideshare.net/hominhchuc/writing-client-server-programs-in-c-writing-clientserver-programs-in-c (see slides pp 19-23 & reference p31)
- http://www.yolinux.com/TUTORIALS/Sockets.html (c++ examples)
- http://www.cs.odu.edu/~mweigle/courses/cs455-f06/lectures/2-1-ClientServer.pdf
- TCP/IP Sockets in C: Practical Guide for Programmers by Donahoo and Calvert
- Effective TCP/IP Programming: 44 Tips to Improve Your Network by Jon Snader
- http://stackoverflow.com/questions/583940/is-there-a-beginners-book-for-c-socket-programming
- http://net.pku.edu.cn/~course/cs501/2011/code/BSD_Socket.t/sockets.pdf Presentation format
- Course material from Communication Networks
- Chapter 15 of Beginning Linux Programming 4th ed by Matthew and Stones.
- Chapter 18 of UNIX Systems Programming by Robbins and Robbins.
- http://www.binarytides.com/socket-programming-c-linux-tutorial/ Nice and short tutorial for beginner.
- Introduction to network functions in C http://shoe.bocks.com/net/
- http://www.cs.gsu.edu/~sguo/slides/3320/Sockets.ppt Short introduction and my local copy
- http://www.csd.uoc.gr/~hy556/material/tutorials/cs556-3rd-tutorial.pdf Long introduction and a local copy.
- http://web.cecs.pdx.edu/~jrb/tcpip/lectures/pdfs/sockets.pdf
Terms
There are two types of address domains.
- AF_UNIX: the unix domain for two processes which share a common file system, and
- AF_INET: the Internet domain for any two hosts on the Internet.
There are two types of sockets.
- a stream socket in which characters are read in a continuous stream as if from a file or pipe, and
- a datagram socket, in which messages are read in chunks.
The two symbolic constants are SOCK_STREAM and SOCK_DGRAM.
There are two types of ports: