Welcome![Sign In][Sign Up]
Location:
Downloads WEB Code JSP/Java
Title: clientANDserver Download
 Description: The realization of the chat room to achieve the client (cilent) and end (server) and client (client) and server (server) Socket establish the necessary connection.And let the server (server) listens on a well-known port. When the client (client) connection request arrives, the server (server) agreed to establish a connection, it will create a new Soket and bind to another port, the use of this new Socket and the client (client) to establish connected to the server (server) to continue with the original port listener, waiting for a new connection request. When the connection is established, through the input/output streams and these streams of data transmission. When the end of the communication between the two hosts, will have to close the connection. Close the connection by closing the Socket can call the close () method of the Socket class. Which should be first of all related with Socket input/output streams closed, and finally closed the Socket. Establish a ChatClient class:
 Downloaders recently: [More information of uploader lanyulin]
 To Search:
File list (Check if you may need any files):
 

clientANDserver\.classpath
...............\.project
...............\.settings\org.eclipse.jdt.core.prefs
...............\bin\ChatClient$1.class
...............\...\ChatClient.class
...............\...\ChatServer.class
...............\...\MyClientListener.class
...............\...\MyClientReader.class
...............\...\MyServerReader.class
...............\src\ChatClient.java
...............\...\ChatServer.java
...............\.settings
...............\bin
...............\src
clientANDserver
    

CodeBus www.codebus.net