2008. 7. 8. 13:11
[pont.net] Socket Programming in C
2008. 7. 8. 13:11 in 프로그래밍/시스템 프로그래밍
Socket Programming in C | |
last update : 10/08/2004 15:52:37
**NEW** Socket Programming Books here.
To compile :
- linux : gcc -Wall -o foo foo.c
- solaris : gcc -Wall -o foo foo.c -lsocket -lnsl
1. UDP
- UDP server : simple UDP server that prints received messages.
source : udpServer.c
usage : ./udpServer - UDP client : simple UDP client that sends data to server.
source : udpClient.c
usage : ./udpClient server data1 ... dataN
2. TCP
- TCP server : simple TCP server that prints received messages.
source : tcpServer.c
usage : ./tcpServer - TCP client : simple TCP client that sends data to server.
source : tcpClient.c
usage : ./tcpClient server data1 ... dataN
3. IP multicast
- multicast server : simple multicast server that prints received messages.
source : mcastServer.c
usage : ./mcastServer multicast_group - multicast client : simple multicast client that sends data on multicast group.
source : mcastClient.c
usage : ./mcastClient multicast_group data1 ... dataN
4. Miscellaneous
- MAC address finder : programs that uses a ioctl() call to find out a MAC address in the arp cache. (same function as arp -a)
source : getMAC.c
OS tested : linux 2
usage : ./getMAC interface_IP_address
5. Books
Looking for good books ? Here are the Bibles you can purchase at amazon.com :
- THE book about Unix network programming: UNIX Network Programming, Volume 1 by Stevens.
- THE book you want to have if you code in C: The C Programming Language by Kernighan and Ritchie.
- Complete, easy, the Unix programming bible: Advanced Programming in the UNIX(TM) Environment
More socket programming books here.
6. Links
pont.net -> socket programming in Java : simple examples
7. Contact
fred at pont.net
Use of the information and data contained on this WWW site on these pages is at your sole risk.
'프로그래밍 > 시스템 프로그래밍' 카테고리의 다른 글
리눅스 프로그래머를 위한 가이드 (0) | 2007.07.13 |
---|---|
메모리 관리-구현 선택, 구현의 모순, 동적 할당 (0) | 2006.07.20 |
O_NONBLOCK, O_DELAY 차이??? (0) | 2006.07.06 |
POSIX 쓰레드로 멀티 쓰레드 프로그래밍하기 (0) | 2006.06.30 |
환경변수(environment variable) (1) | 2006.06.02 |