DOC PREVIEW
TRINITY CSCI 1321 - Streams and Networking

This preview shows page 1-2 out of 7 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Streams and Networking2-8-2012Opening DiscussionDo you have any questions about the quiz?Minute essay comments:You can stream text.Decorating.Saving DrawingsI want to start off by writing code to save our drawings.NetworkingThese days, a computer loses a lot of its value if it isn't networked.We need to learn how to allow our programs to talk to other computers.This can happen in a lot of different ways from just reading information off the machine to having a “dialog” to exchange information.Most things we want are in the java.net package.SocketsComputers communicate over sockets. They come in two main flavors.TCP – This is the default. Does handshaking to determine if messages get through. Reliable, but slower.UDP – Throw packets out and hope the other side gets them. Fast, but code has to deal with possible dropped packets.One machine acts as a server and waits on a port. Other machines, clients, can connect to that port.Sockets and StreamsSockets in Java communicate through streams. So any code you wrote for file streams can be converted to networking with little to no effort.Let's write a simple telnet based chat room first.After that we can add either chat or sending drawings to our main program.Minute EssayHow is your project going to be networked? Have you thought of any way that the code style we described here could be challenging to use?Next class is IcP #3. Try to add multithreading and/or networking to your


View Full Document

TRINITY CSCI 1321 - Streams and Networking

Documents in this Course
Recursion

Recursion

11 pages

Iterators

Iterators

10 pages

Actors

Actors

9 pages

Recursion

Recursion

15 pages

Recursion

Recursion

10 pages

Threads

Threads

7 pages

Trees

Trees

11 pages

Load more
Download Streams and Networking
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Streams and Networking and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Streams and Networking 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?