A Short Java Socket Tutorial

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    A Short Java Socket Tutorial - Presentation Transcript

    1. A Short Java Socket Tutorial Albert Guo [email_address]
    2. Agenda
      • Java Socket
      • Interactive Socket Server Lifecycle
      • Lifecycle of a multithreaded socket server
      • Use Case Diagram
      • Class Diagram
      • Socket Server Operations
        • WeatherSocketServer.java
        • Socket Client Operation
        • Socket Server Demo
        • Socket Clients Demo
    3. Java Socket
      • A socket is a communication end point
        • Is a network programming interface
        • Is used by a process to communicate with a remote system via a transport protocol.
        • Needs an IP address and a port number
      • Sockets are popularly used in client/server computing
        • Provides two major types of services:
          • Connection-oriented
          • Connectionless
    4. Java Socket – cont.
      • Java supports client/server computing using sockets.
        • Java supports both connection-oriented and connectionless services.
        • Java uses Socket for clients and ServerSocket for servers in a connection-oriented environment.
        • Java uses DatagramSocket/DatagramPacket for connectionless services.
    5. Interactive Socket Server Lifecycle
    6. Lifecycle of a multithreaded socket server
    7. Use Case Diagram
    8. Class Diagram
    9. Socket Server Operations
    10. WeatherSocketServer.java
    11. WeatherSocketServer.java
    12.  
    13. Socket Client Operation
    14. Socket Client
    15. Socket Server Demo Client1’s request Client2’s request
    16. Socket Clients Demo Client1 request for Taipei’s weather condition Client1 request for TaoYuan’s weather condition

    + Guo AlbertGuo Albert, 6 months ago

    custom

    4330 views, 2 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 4330
      • 4318 on SlideShare
      • 12 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 40
    Most viewed embeds
    • 12 views on http://albert-myptc.blogspot.com

    more

    All embeds
    • 12 views on http://albert-myptc.blogspot.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories