0% found this document useful (0 votes)
31 views1 page

156ca - Network Programming

This document outlines the examination structure for the B. Tech III Year II Semester in Network Programming at Jawaharlal Nehru Technological University Hyderabad, conducted in August 2022. It includes a list of topics and questions related to socket programming, I/O models, and network functions, with an emphasis on practical programming tasks. Students are required to answer any five questions from the provided list, each carrying equal marks.

Uploaded by

bhaskark.sb
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)
31 views1 page

156ca - Network Programming

This document outlines the examination structure for the B. Tech III Year II Semester in Network Programming at Jawaharlal Nehru Technological University Hyderabad, conducted in August 2022. It includes a list of topics and questions related to socket programming, I/O models, and network functions, with an emphasis on practical programming tasks. Students are required to answer any five questions from the provided list, each carrying equal marks.

Uploaded by

bhaskark.sb
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/ 1

Code No: 156CA R18

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD


B. Tech III Year II Semester Examinations, August - 2022
NETWORK PROGRAMMING
jn
(Common to CSE, IT)
Time: 3 Hours Max. Marks: 75
t
Answer any five questions
uh
All questions carry equal marks
---

1.a) Write the syntax for readn() and writen() functions and explain its usage.
b) List and explain various byte manipulation functions with clear syntax. [6+9]
us
2. Explain the following elementary socket functions with neat syntax and example:
a) socket() b) bind() c) connect() d) listen() e) accept() [15]
ed
3. Write down the programs for TCP echo server and TCP echo client. Explain the function
that echos data on a socket and the function for client processing loop. [15]
pa
4.a) Describe signal-driven I/O model and Asynchronous I/O model with neat diagrams.
b) Give the syntax of select() function and describe its basic functionality. [9+6]
pe
5. List and explain various IPv4 and IPv6 socket options. [15]

6.a) Give a detailed syntax and explanation of recvmsg() and sendmsg() functions and
summarize various I/O flags of it.
ra
b) Give the basic functionality of fcntl() function. [9+6]

7. Explain the following functions with an illustrative example code:


ug
a) gethostbyname() b) gethostbyaddr() [8+7]

8. Give an overview of the traceroute program to determine IP datagrams path from our
-2
host to other destination with an illustrative program and flowchart. [15]
02
2
---ooOoo---

You might also like