1 / 8

ITTC lan chat

ITTC lan chat. A Local A rea N etwork Chat Client. John Vincent Cecogo Jerikho Daguno Ardee Santos Elaine Mendoza Anjomar Pat Del Mindo Philip John Sales Philip Nino Zuniga. OBJective.

garima
Télécharger la présentation

ITTC lan chat

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ITTC lan chat A Local Area Network Chat Client John Vincent Cecogo JerikhoDaguno Ardee Santos Elaine Mendoza Anjomar Pat Del Mindo Philip John Sales Philip Nino Zuniga

  2. OBJective • To create a simple program that can send/receive text message as well as transfer files to and from computers connected to the Local Area Network using socket programming. • Demonstrate the difference between broadcast, multicast and peer to peer communication. • Differentiate UDP and TCP usage.

  3. START ACCEPT USER COMMAND LISTENING THREAD TRANSFER FILE? YES START RECEIVE FILE THREAD BROADCAST MY USERNAME AND ADDRESS NO NO EXIT? YES CREATE GRAPHICAL USER INTERFACE END FILE TRANSFER MAIN PROGRAM

  4. START BIND PORT 8084 YES START RECEIVE FILE THREAD RECEIVE FILE? WAIT FOR MESSAGES NO QUIT? DECODE MESSAGE YES END NO LISTENING THREAD

  5. START WAIT FOR CONFIRMATION NO START FILE SERVER SEND FILE SIZE ALL BYTES SENT? SEND UDP MESSAGE WAIT FOR CONFIRMATION YES END FILE SERVER WAIT FOR CONFIRMATION SEND 1024 BYTES OF FILE SEND FILE VIA TCP END RECEIVE FILE THREAD

  6. START RECEIVE SIZE CONNECT TO FILE SERVER SEND CONFIRM SEND CONFIRM SEND CONFIRM RECEIVE AT MOST 1024 BYTES OF FILE RECEIVE FNAME DISCONNECT FROM SERVER NO LAST BITS OF FILE? SEND CONFIRM END YES RECEIVE FILE THREAD

  7. DEMO

More Related