Abstract
as the network become more and more developed, people become more and more lean
to the network, and can not leave with out it. This caused the chat materials become
more numerous, as the overseas ICQ system, the OICQ system that invented by
Tencent Co., and so on. So we create a network chat medium just like the QQ.
Java
network programming based on the power, the use of Java designed to prepare
graduates a chat system.
In general, the majority of the chat tool for client and server program in
addition to server-side storage of customer data for the database,
the system uses a
client / server architecture model the adoption of Java provided Socket class connect
client and server and between the client and server communicate with each other, as
the chat is to provide point-to-multipoint and multi-threaded Java function to be
completed by using multi-threaded chat and more point-to-multipoint, database
management system with SQL Server2000 the completion and adoption of JDBC-
ODBC Bridge access the database.
The system built on the JAVA platform, the system design using object-oriented
technology and object-oriented design principles. System uses the C / S structure,
client and client-side and server-side client and send messages through Socket. The
use of JAVA language, development tools using Eclipse. Design and Implementation
of server-side process, the use of multi-threading technology, which can process in a
single run at the same time a number of different threads, the implementation of
different tasks. Procedures greatly enhanced the use of server resources.
Chat system will allow people to complete chat to more friends,and the
system can add, delete somebody,can deal with new user registration, send
messages, receive messages and so on.
Keywords : Multithreading ; Client/Server ;JAVA ;Socket ;Eclipse ;TCP/IP
3