15-Network_Programming_I - CSC 4304 Systems Programming...

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

View Full Document Right Arrow Icon
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: 192.168.31.52:1051 The 192.168.31.52 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
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
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 ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern