Saturday, November 17, 2012

UNIX: Network programming

Since, most of the programming in this blog is under unp.h header so i am presenting here code for unp.h header class. that most of your program will require to run.

unp.h Header:
Almost every program in the text includes our unp. h header, shown below.This header include all the standard system headers that most network programs need, along with some general system headers. it's also defined in the text(e.g,readline) and all the wrapper function that we use.

To download unp.h header click here

config.h Header: 
The GNU autoconf tool was used to aid in the portability of all the source code in this text. This tool generates a shell script named configure that you must run after downloading the software onto your system. This script determines the features provided by your Unix system: Do socket address structures have a length field? Is multicasting supported? Are datalink socket address structures supported? and so on, generating a header named config.h. This header is the first header included by our unp.h header in the previous section.
The lines beginning with #define in column 1 are for features that the system provides. The lines that are commented out and contain #undef are features that the system does not provide.

To download click here

For more click here


For practicing network programming i'll suggest you to go for


1. UNIX Network Programming, Volume 1, Second Edition: Networking APIs: Sockets and XTI
2.UNIX Network Programming, Volume 2, Second Edition: Interprocess Communications

For more you can try:

1. UNIX Network Programming
2. Advanced Programming in the UNIX Environment 
3. TCP/IP Illustrated, Volume 1: The Protocols 
4. TCP/IP Illustrated, Volume 2: The Implementation 
5. TCP/IP Illustrated, Volume 3: TCP for Transactions, HTTP, NNTP, and the UNIX Domain Protocols 


You can practice Socket programming, Network Programming using these codes. Don't Forget that you'll need unp.h for most of codes to work proper.

1. For source code in UNIX Network Programming. 
For more information click here 

2. For source code in Advanced Programming in the UNIX Environment 
For more information click here 

3. For source code in TCP/IP & related programming 
For more information click here 

4. For source code in TCP/IP Illustrated: TCP for Transactions, HTTP, NNTP, and the UNIX Domain Protocols

For more information click here

5. For source code in UNIX Network Programming: Networking APIs: Sockets and XTI

For more information click here

6. For source code in UNIX Network Programming, Volume 2, Second Edition: Interprocess Communications

For more information click here

Lot more is coming (e.g socket programming using java & python)

1 comment: