Java Tutorial - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Java Tutorial

Description:

one-liners.txt. This file should be placed in the root of your project. One-liners.txt. Life is wonderful. Without it we'd all be dead. ... – PowerPoint PPT presentation

Number of Views:244
Avg rating:3.0/5.0
Slides: 11
Provided by: Jo66
Category:
Tags: daddy | java | liners | one | tutorial

less

Transcript and Presenter's Notes

Title: Java Tutorial


1
Java Tutorial
2
Datagrams
  • All about datagrams
  • http//java.sun.com/docs/books/tutorial/networking
    /datagrams/

3
Example 1
  • A single server
  • To run server set application parameter to
  • 127.0.0.1 or
  • Host IP add (use ipconfig)
  • A single client

4
Java source code
  • The QuoteServer Class
  • The QuoteServerThread Class
  • http//java.sun.com/docs/books/tutorial/networking
    /datagrams/clientServer.html

5
Data to send from server
  • The server sends quotes to the client process
  • one-liners.txt
  • This file should be placed in the root of your
    project.

6
One-liners.txt
  • Life is wonderful. Without it we'd all be dead.
  • Daddy, why doesn't this magnet pick up this
    floppy disk?
  • Give me ambiguity or give me something else.
    I.R.S. We've got what it takes to take what
    you've got!

7
The QuoteClient process
  • Source code
  • QuoteClient

8
Example 2
  • A similar example
  • Multicast server
  • Multiple clients

9
Multicast server
  • Refer to previous example
  • MulticastServer
  • MulticastServerThread

10
MulticastClient
  • More than one client can join a group and connect
    to the server
  • MulticastClient
Write a Comment
User Comments (0)
About PowerShow.com