Professional Documents
Culture Documents
Java Mini Project Lan Chat
Java Mini Project Lan Chat
Server
Made By : Alisha R Gonsalves (12070121503)
Dakshayaa Deepankar (12070121509)
Abstract
• Our Java project is based on the LAN chat server. During this project we covered the
basics of using classes or features on:
• Swing : Swing is built on top of AWT and is entirely written in Java, using AWT’s
lightweight component support. In particular, unlike AWT, the architecture of Swing
components makes it easy to customize both their appearance and behavior.
Components from AWT and Swing can be mixed, allowing us to add Swing support to
existing AWT-based programs. For example, swing components such as JSlider,
JButton and JCheckbox could be used in the same program with standard AWT
labels, textfields and scrollbars.
INTRODUCTION
SOLUTION ????
• Chatting
• Voice Chat(can be implemented)
• File Transfer(can be implemented)
• Bulletin Board
• Display of friend list
USE CASE DIAGRAM
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
CONTEXT DIAGRAM
DATA FLOW DIAGRAM
E – R DIAGRAM
Networking (java.net)
• The java.net package provides two classes--Socket
and ServerSocket--that implement the client side of
the connection and the server side of the
connection, respectively.
• Network Socket
• Allows a single computer to serve many client at once
• As well as serving different information also
• This is managed by port
• Port
• Numbered socket on a particular machine
• Multiple client can connect on same port
• Imaginary points
• TCP/IP reserves the lower 1024 ports
Socket Basics
A socket is one end-point of a two-way communication link
between two programs running on the network. Socket classes
are used to represent the connection between a client program
and a server program
Traditional definition
- Client: user of Network Services
- Server: Supplier of Network Services
LIMITATIONS
• Delay of 2-3 seconds in voice transfer
• Server fails whole system fails
Server
Client 1
Client 2
FUTURE EXPECTS