Networking with Java - University of Arizona

Networking with Java

CSc 335 Object-Oriented Programming and Design

Craig Barber, Ian Vasquez, Rick Snodgrass, Rick Mercer

Networking

Type Resolution Type Checking

Compile-Time Run-Time

Java Language

Java API

Packages Exceptions

Abstract Classes

Anonymous Classes

JDK/JRE Eclipse

Debugging JUnit

Listeners Events

Testing & Maintaing

Large Programs

I/O Serialization Networks

Inversion of Control

Layout Manager

Java Swing

Decorator Composite

Concurrency Frameworks Collection

MVC

Template Iterator Command

Observer Observable

Javadoc Refactoring

Teams

Reading others' code Refactoring

PITL

Coupling/ Cohesion

OO Design

Design Patterns

UML

Inheritance Hierarchy

Class Diagrams

Sequence Diagrams

Package Diagrams

Y-2N-2

Outline

? Introduction to Networking Concepts

Client-Server and Peer-to-Peer Sockets Streams

Networking with Java

N-3

What is "Networking"

? What is "Networking"?

Getting two or more computers to send data (in Java-serialized objects) to each other

Having programs on separate computers interact with one another

? Types of Networking

Client - Server

Many clients connect with one server. Clients communicate only with server.

Peer-to-Peer

Clients connect to a group of other clients, with no server. Clients communicating directly with each-other.

Networking with Java

N-4

Client - Server Networking

? Advantages:

Easier to implement Less coordination

involved Easier to maintain

control of users

? Disadvantage:

Relies on one main server for entire operation

Networking with Java

N-5

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download