ChatClient.java
资源名称:Happychat.rar [点击查看]
上传用户:tendy5003
上传日期:2022-07-16
资源大小:210k
文件大小:1k
源码类别:
ICQ/即时通讯
开发平台:
Java
- //package mypack;
- import javax.swing.*;
- import java.awt.*;
- import java.awt.event.*;
- import java.net.*;
- import java.io.*;
- import java.util.*;
- import java.applet.*;
- /*<p>Title:HappyChat聊天系统客户端程序</p>
- *<p>Description:客户端主程序</p>
- *<p>Copyright:Copyright (C)2006</p>
- *<p>Filename:ChatClient.java</p>
- *@author 刘志成
- *@version 1.0
- */
- ///////////////////////////////////
- //////////设置服务器IP地址/////////
- ///////////////////////////////////
- public class ChatClient
- {
- public ChatClient()
- {
- }
- public static void main(String args[])
- {
- new Login();
- }
- }
- //登录信息序列化
- class Customer extends Object implements java.io.Serializable
- {
- String custName;
- String custPassword;
- }
- //注册信息序列化
- class Register_Customer extends Object implements java.io.Serializable
- {
- String custName;
- String custPassword;
- String age;
- String sex;
- String email;
- }
- //用于发送聊天和在线用户的信息
- class Message implements Serializable
- {
- Vector userOnLine;
- Vector chat;
- }
- //聊天信息序列化
- class Chat implements Serializable
- {
- String chatUser;
- String chatMessage;
- String chatToUser;
- boolean whisper;
- }
- //退出信息序列化
- class Exit implements Serializable
- {
- String exitname;
- }