Lecture 15A
DataMonitorDesign
Processing Steps
Run DataMonitor
DataClientApplet
DataServer
DataSender
DataClient
DataReader

Lectures

1A: Introduction
1B: Java Intro
2A: BuildingBlocks
2B: Objects
3A: More Objects
3B: Exceptions
       & Threads
4A: Waves
4B: Nuclear &
       Particle
5A: AWT
5B: More AWT
      & Graphics
6A:Detectors &
      Simulation
6B: LHC/Atlas &
     RandomSims    
7A: Swing
7B: Java2D
8A: Java Apps
8B: Dialogs &
    MoreClasses
9A: Java I/O
9B: Utilities,
        Unicode
10A: More
    Threading
10B: File
    Handling
11A: Array,Print,
    Images
11B: SimplePhysics
    Simulation
12A: Tips &
    Techniques
12B: More Tips &
    Techniques
13A: Satellite
    
Simulations
13B: Intro to Java
    Networking
14A: Java Servers
14B: HTTP Server
15A: ServerClient
15B: ServerClient
   Expt.Simulation
16A: Course
          Review
16B: ExerciseTest
        Discussion

    Contacts
    Description
    Exercises
    Index
    Outline
    Q&A
    Resources
    StudentInfoForm
    Student Pages
    What's New

 

Home : Lectures : Lecture 15A : The Data Monitor Process
The Data Monitor Process
We start the DataServer on one machine (here we ran both client and server on same machine from separate DOS windows).

It sits waiting for clients to arrive.

The client starts on another machine (or here another DOS window):

A simple login in process then occurs, where the server sends a username string and the client responds with a name string:

Another client could also request a connection to the server at this point:

Both the client and the server assign an instances of a thread subclass, DataReader and DataServer resp., to their socket:

The DataSender could grab data from a file and send it to the DataClient where the DataReader can process it:

 

Home Lectures Resources Index Contacts Students


Physics Simulations with JavaTM
KTH, Kurskod: 5A1418
Curator: Clark S. Lindsey