Welcome![Sign In][Sign Up]
Location:
Downloads WEB Code JSP/Java
Title: CHATROOM Download
  • Category:
  • Java Develop
  • Tags:
  • File Size:
  • 5kb
  • Update:
  • 2014-06-05
  • Downloads:
  • 0 Times
  • Uploaded by:
  • ynm
 Description: Summary: Java source code, network-related, a Java chat program and client service procedures, C/S structure, ChatServer class implements a chat room server, such a constructor, to use in the constructor newServerSocket ( ) to establish a Socket connection. RunServer () method to run the chat service, (). GetHostName () method to obtain the host name through the Socket class getInetAddress, create a new object instance ChatHandler, synchronized with the client synchronized (clients) in. Internal class ChatHandler inherited Thread class, in this thread run () method of processing a conversation. Close () method closes the connection with the client. ChatRoom class inherits Applet, () to create a chat window by new Frame init () in, and set the form layout in this form. In the login () method to establish a connection with the server via new Socket (serverHost, port), to produce a new chat thread through new Thread (). In the logout () method, using sock.close () closes the
 Downloaders recently: [More information of uploader ynm]
 To Search:
File list (Check if you may need any files):
 

(没有文件,原文件不完全或已损坏或有密码)    

CodeBus www.codebus.net