{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


15-Network_Programming_I - CSC 4304 Systems Programming...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CSC 4304 - Systems Programming Fall 2010 Tevfik Ko ! ar Louisiana State University November 9 th , 2010 Lecture - XV Network Programming - I Network Programming 2 Sockets – A Socket is comprised of: • a 32-bit node address (IP address) • a 16-bit port number (like 7, 21, 13242) – Example: • The host address is in “IPv4 dotted- quad” format, and is a decimal representation of the hex network address 0xc0a81f34 – First developed at UC-Berkeley in 1983, Berkeley Socket API part of BSD 4.2 3 Ports • Ports 0 through 1023 are reserved, privileged ports, defined by TCP and UDP well known port assignments • Ports 1024 through 49151 are ports registered by the IANA (Internet Assigned Numbers Authority), and represent second tier common ports (socks (1080), WINS (1512), kermit (1649)) • Ports 49152 through 65535 are ephemeral ports, available for temporary client usage 4 Network Communication 5 http Client http Server Data Encapsulation • Application puts data out through a socket • Each successive layer wraps the received data with its own header: 6 http Client
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
TCP Header Format • Source and Destination ports • Sequence Number tells what byte offset within the overall data stream this segment applies • Acknowledgement number lets the recipient set what
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '10
  • Kosar
  • Transmission Control Protocol, Internet socket, TCP¬†connection, socket type */, Berkeley Socket API, time */ /*

{[ snackBarMessage ]}

Page1 / 5

15-Network_Programming_I - CSC 4304 Systems Programming...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon bookmark
Ask a homework question - tutors are online