0% found this document useful (0 votes)
33 views2 pages

UNP-GuidelinesJuly2024 240910 105826

Uploaded by

sourabhmadaan31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

UNP-GuidelinesJuly2024 240910 105826

Uploaded by

sourabhmadaan31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

BSc(H) Computer Science

DISCIPLINE SPECIFIC Elective- Unix Network Programming (Guidelines)

Sem V (July 2024 Onwards)

S.No. Topic References Contents Lectures

1. Introduction: [1] Chapter 1 6L


Basics of Client Server applications, 1.1 – 1.5, 1.7
Example of day time client server,
concurrent servers, protocols, sockets,
port numbers.
2. Connection-oriented Socket [1] Chapter 2 17L
Applications: Elementary TCP 2.1-2.4, 2.6-
sockets – Socket, connect, bind, listen, 2.7,2.9-2.11(page
accept, fork and exec function, close no 59), 2.12-2.13.
function, Socket Address Structures, Chapter 3
Byte Ordering and Manipulation 3.1-3.9
Functions, TCP Client and Server for Chapter 4
Echo, Signal Handling in case of 4.1-4.11
crashing and rebooting of server, Chapter 7
Shutdown process function. Socket 7.1-7.6
Options: Getsockopt and stockpot 7.9,7.11
functions, Socket states, Generic
socket option.
3. Connectionless Socket Applications: [1] Chapter 5 15L
TCP-oriented basic concurrent client 5.1-5.18
server Chapter 6
applications, UDP oriented Echo client 6.1-6.11
and server application, Handling of Chapter 8
errors like lost datagram, Lack of flow 8.1-8.15
control with UDP, determining
outgoing interface with UDP.
4. Elementary name and Address [1] Chapter 11 7L
conversions: Domain Name System, 11.1-11.5
socket Functions like gethostbyname,
gethostbyname2, gethostbyaddr
function, uname function, gethostname
function, getservbyname and
getservbyport functions.

References
1. W. Richard Stevens, Bill Fenner, Andrew M. Rudoff, Unix Network Programming, The
sockets Networking API, Vol. 1, 3rd Edition, PHI.
2. B. A. Forouzan: Data Communications and Networking, THM Publishing Company Ltd.
3. R. Stevens, Unix Network Programming, PHI 2nd Edition.
Suggested List of Practicals

1. Implement TCP Echo client and TCP Echo server (Iterative).


2. Implement TCP Echo client and TCP Echo server (Concurrent).
3. Implement TCP daytime client and TCP daytime server (Iterative).
4. Implement TCP daytime client and TCP daytime server (concurrent).
5. Implement UDP Echo Client and UDP Echo Server.
6. Implement UDP daytime Client and UDP daytime server.
7. Implement TCP client and server (concurrent) where client gets input from the user and
sends it to server. Server displays it on the screen. Server then gets another input from the user
and sends it to client. Client displays it on the screen. The process continues till server or client
sends “bye” to the other party.
8. Implement TCP client and server (concurrent) where client requests server to transfer a file.
Assume file is smaller than 1K size. If the file is present on the server, it is sent to the client
otherwise an error message is sent to client. Client copies the file on the hard disk and
disconnects.
9. Implement UDP client and UDP server where server displays the IP address and port number
of the client sending the datagram. Client sends a datagram (size 64 bytes) three times to the
same server. Server sends the message back to client. Client reports the time elapsed in sending
and receiving of the message. Use connected UDP sockets.
10. Write a program to
a) display name of the host
b) all IP addresses of the host.
c) Check whether FTP and HTTP services are running on the system.
d) Display the name of the service running on port number specified by user.

Prepared by:
1. Dr Anamika Gupta (Shaheed Sukhdev College of Business Studies)
2. Ms. Nisha (Indraprastha College for Women)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy