Final Exam: Dec. 2 until 10 AM Dec. 3 Phase 2: Prefer submission by Sunday noon. Absolute deadline is 8 AM Monday Nov 23. Phase 3: Absolute deadline is 5:59 PM Dec 9. Must appear for presentation in class Dec. 9. =============================================================== Term Project - Taking a turn. * A turn can come from three places: 1. The user's keyboard 2. The user's CPU 3. The network Players - Human - Computer - Remote ---------------------------- Sockets TCP/IP - Connected (stream), reliable UDP - Unconnected (datagram), unreliable Two Socket types in Java - ServerSocket: Used to process requests for connection - Socket: Used for data ServerSocket: When a request for service comes in, -the server creates a ClientWorker thread, and that thread services the client Creating a server socket: - allocates the requested port and binds it to the socket - creates a listening queue for service requests When a service request comes in, the accept() fires... It allocates a regular socket on the server as part of the creation of the thread to service the client and returns it. Socket: When constructed with a server and port, connects and returns the local socket used to access the server.