文件名称:liaotianshi
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- l**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
客户端的实现效果
1.登录服务器,如果服务器端口号和IP号输入的字符都是"0"则,客户端连接到默认的服务器
2.输入聊天昵称
3.输入"-quit"会自动退出聊天
4.输入"-getList"会得到在线用户的名称
5.输入"-to <用户名称> <聊天信息>"会把信息发送到指定的用户处,他人看不到
6.输入"-help"会得到客户端相应操作帮助
6.直接输入内容则会将内容发送到所有在线的用户处
客户端的类与方法
1.建立连接方法:connectServer(String ip,int port)
2.断开连接方法:disconnectServer()
2.发送消息方法:sendMes(String mes)
3.接受消息方法:getMes()
4.接受一次消息:getMesOnce()
5.获得用户列表:getList(String mes)
6.测试连接方法:testConnect(String ip,int port)
7.检查用户名 :checkNickName(String nickName)
8.获得帮助列表:helpList();
9.各项内容的输入在main方法中进行
-Achieve the effect of client
1. Log in server, if the server port number and enter the IP number of the characters are "0" is the client to connect to the default server
2. Enter a chat nickname
3. Enter "-quit" will exit chat
4. Enter "-getList" will be the name of online users
5. Enter "-to <user name> <chat information>" information will be sent to designated users, the others can not see
6. Enter "-help" will assist the client to operate the corresponding
6. Directly into the content of the content will be sent to all online users
Client class and method
1. To establish a connection method: connectServer (String ip, int port)
2. Disconnect method: disconnectServer ()
2. Ways to send message: sendMes (String mes)
3. Ways to accept message: getMes ()
4. To receive a message: getMesOnce ()
5. To obtain a list of users: getList (String mes)
6. Test Connection method: testConnect (String ip, int port)
7. Check u
1.登录服务器,如果服务器端口号和IP号输入的字符都是"0"则,客户端连接到默认的服务器
2.输入聊天昵称
3.输入"-quit"会自动退出聊天
4.输入"-getList"会得到在线用户的名称
5.输入"-to <用户名称> <聊天信息>"会把信息发送到指定的用户处,他人看不到
6.输入"-help"会得到客户端相应操作帮助
6.直接输入内容则会将内容发送到所有在线的用户处
客户端的类与方法
1.建立连接方法:connectServer(String ip,int port)
2.断开连接方法:disconnectServer()
2.发送消息方法:sendMes(String mes)
3.接受消息方法:getMes()
4.接受一次消息:getMesOnce()
5.获得用户列表:getList(String mes)
6.测试连接方法:testConnect(String ip,int port)
7.检查用户名 :checkNickName(String nickName)
8.获得帮助列表:helpList();
9.各项内容的输入在main方法中进行
-Achieve the effect of client
1. Log in server, if the server port number and enter the IP number of the characters are "0" is the client to connect to the default server
2. Enter a chat nickname
3. Enter "-quit" will exit chat
4. Enter "-getList" will be the name of online users
5. Enter "-to <user name> <chat information>" information will be sent to designated users, the others can not see
6. Enter "-help" will assist the client to operate the corresponding
6. Directly into the content of the content will be sent to all online users
Client class and method
1. To establish a connection method: connectServer (String ip, int port)
2. Disconnect method: disconnectServer ()
2. Ways to send message: sendMes (String mes)
3. Ways to accept message: getMes ()
4. To receive a message: getMesOnce ()
5. To obtain a list of users: getList (String mes)
6. Test Connection method: testConnect (String ip, int port)
7. Check u
相关搜索: liaotianshi
(系统自动生成,下载前可以参看下载内容)
下载文件列表
msn.txt