×
SET SOME GOALS. STAY QUIET ABOUT THEM. SMASH THE HELL OUT OF THEM. CLAP FOR YOUR DAMN SELF.
--Your friends at LectureNotes
Close

Lab Manuals for Computer Network - CN By Deepak Malav

  • Computer Network - CN
  • Practical
  • KALINGA INSTITUTE OF INDUSTRIAL EDUCATION - KIIT
  • Computer Science Engineering
  • 188 Views
  • 3 Offline Downloads
  • Uploaded 10 months ago
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

Socket Programming Kameswari Chebrolu Reference: Beej's Guide to Network Programming

Text from page-2

Quote I hear and I forget I see and I remember I do and I understand -- Chinese Proverb

Text from page-3

Multiplexing/Demultiplexing Host-2 Host-1 Application Host-3 Application Application Transport Transport Transport Network Network Network Demultiplexing: Deliver segments to the right socket Multiplexing: Assemble segments such that they get delivered to right socket Source Port Destination Port Other fields in header Application Data Transport Layer Segment

Text from page-4

What is a socket?  Socket: An interface between an application process and transport layer    The application process can send/receive messages to/from another application process (local or remote) via a socket In Unix jargon, a socket is a file descriptor – an integer associated with an open file Types of Sockets: Internet Sockets, unix sockets, X.25 sockets etc  Internet sockets characterized by IP Address (4 bytes), port number (2 bytes)

Lecture Notes