MC9241 NETWORK PROGRAMMING L T P C
3 0 0 3
UNIT I INTRODUCTION 9
Introduction
– Overview of UNIX OS - Environment of a UNIX process - Process control
- Process relationships Signals – Interprocess Communication- overview
of tcp/ip protocols
UNIT II ELEMENTARY TCP SOCKETS 9
Introduction
to Socket Programming –Introduction to Sockets – Socket address
Structures – Byte ordering functions – address conversion functions –
Elementary TCP Sockets – socket, connect, bind, listen, accept, read,
write , close functions – Iterative Server – Concurrent Server.
UNIT III APPLICATION DEVELOPMENT 9
TCP
Echo Server – TCP Echo Client – Posix Signal handling – Server with
multiple clients – boundary conditions: Server process Crashes, Server
host Crashes, Server Crashes and reboots, Server Shutdown – I/O
multiplexing – I/O Models – select function – shutdown function – TCP
echo Server (with multiplexing) – poll function – TCP echo Client (with
Multiplexing)
UNIT IV SOCKET OPTIONS, ELEMENTARY UDP SOCKETS 9
Socket
options – getsocket and setsocket functions – generic socket options –
IP socket options – ICMP socket options – TCP socket options –
Elementary UDP sockets – UDP echo Server – UDP echo Client –
Multiplexing TCP and UDP sockets
– Domain name system – gethostbyname function – Ipv6 support in DNS –
gethostbyadr function – getservbyname and getservbyport functions.
UNIT V ADVANCED SOCKETS 9
Ipv4
and Ipv6 interoperability – threaded servers – thread creation and
termination – TCP echo server using threads – Mutexes – condition
variables – raw sockets – raw socket creation – raw socket output – raw
socket input – ping program – trace route program.
TOTAL = 45
REFERENCES:
1. W. Richard Stevens, “Advanced Programming in The UNIX Environment”, Addison Wesley, 1999.
Comments