081103slides_handouts

081103slides_handout - Client-Server Network Programming listening request Just enough to make you sophomores Client Bill Cheswicks map of the

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

View Full Document Right Arrow Icon
1 UVa CS205 Engineering Software 081103 Network Programming Bill Cheswick’s map of the Internet (1999) * Just enough to make you sophomores UVa CS205 Engineering Software 081103 Client-Server Client Server listening request connection Same host can be both a client and a server (peer-to-peer networking) UVa CS205 Engineering Software 081103 Network Topologies ± Client-Server Client Server Server Client Client “Star” Node Node Node “Mesh” UVa CS205 Engineering Software 081103 Ports Client Server listening request connection Port Port
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 UVa CS205 Engineering Software 081103 Port Numbers ± Ports 0-1023: assigned by Internet Assigned Numbers Authority ² Privileged programs ² 80: http, 110: pop3, 205: appletalk ² http://www.iana.org/assignments/port-numbers ± Ports 1024-49151: registered ² Any application can use these ± Ports 49152-65535: dynamic/private http://en.wikipedia.org/wiki/Internet_Assigned_Numbers_Authority UVa CS205 Engineering Software 081103 GUIs and Networks ± GUIs: great problem for subtyping and inheritance ² OOP was invented to program GUIs (and build simulations) ± Network programming: great problem for data abstraction Why are GUIs great for OOP and networks great for data abstraction? UVa CS205 Engineering Software 081103 Application Snakes Server Presentation Session Transport Network Segments Data Transformed Data “Dialog” Data Packets Data Link Physical Bits Frames Application Presentation Session Transport Network Data Link Physical UVa CS205 Engineering Software 081103 ± OSI Abstraction Layers ± 7 Layers Application Presentation Session Transport Network Segments Data Transformed Data “Dialog” Data Packets Data Link Physical Bits Frames
Background image of page 2
3 UVa CS205 Engineering Software 081103 Java Sockets Client Server listening request connection Port Port java.net.ServerSocket java.net. Socket UVa CS205 Engineering Software 081103 java.net.ServerSocket public ServerSocket(int port) throws IOException EFFECTS: Initializes this to a new server socket on port. If the socket cannot be created, throws IOException. UVa CS205 Engineering Software 081103
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/05/2010 for the course CS 150 taught by Professor Humphreys,g during the Spring '08 term at UVA.

Page1 / 7

081103slides_handout - Client-Server Network Programming listening request Just enough to make you sophomores Client Bill Cheswicks map of the

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

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