Get an overview of the techniques required to write Java Chat

Source: Internet
Author: User

Today just opened a blog, hope it accompany me to grow together.

The next time to complete the small project of the Java chat. Today, we have a brief look at the technical content that needs to be used.

1. To save the chat data, you need to use the database

2. To receive and send messages, you need to use the network

3. Maintain network connection, need to use thread

4. The chat will also need to have an interface

The above is a rough technical content, but also to understand the client and server side of the task, the chat is to achieve the client and server side of the interaction. Found a list of the following

The main features of the server side:

A) Listen on a specific port and wait for the client to connect.

b) The default port is 30000.

c) Send the system message to the user who is already connected to the service.

d) Statistics on the number of people online.

e) Disconnect all users when the server is stopped.

The main functions of the client:

A) Connect to the service side of the chat service that is already open.

b) The user can configure the user name to be displayed after the connection.

c) When the server is enabled, users can log in and log off at any time.

d) The user can send a message to everyone or to a person.

Get an overview of the techniques required to write Java Chat

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.