Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java程序分享区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
reply to postflat modethreaded modego to previous topicgo to next topicgo to back
作者 Simple Multi Chat Server and Client
justin_here

良葛格



发贴: 72
于 2005-01-03 23:11 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Download: Simple Multi Chat Server and Client

This application includes a demo server and client program. The demo server program doesn't take care of any exception. It just tells you how to use the SimpleMultiChatServer class. You could write your own server launcher using the SimpleMultiChatServer class.

Usage:
1. Type the following command to launch the server program.
java -jar SimpleMultiChatServerDemo.jar portnumber

2. Type the following command to launch the client program. It's a swing-based UI.
java -jar SimpleMultiChatClientUI.jar

3. Input your nickname, server address and lucyk number (port number) then press "bla bla" button.

You could just double-click on the SimpleMultiChatClientUI.jar to launch the program if you are using Windows.

There are some commands for server administrator.
1. shutdown
Close all clients and shutdown the server.

2. list
List all clients, each one with a number.

3. remove [client number...]
Specify the client number listed by 'list' command and you could remove the specified client.

This program is written just for fun.... :lol: :lol: :lol:

What? Could not find the main class.Program will exit?

Although I only use the syntax of J2SE 1.4.2 to write all the application here, all the jar files are made up under J2SE 5.0 SDK (using eclipse). If you get a message such as “could not find the main class.Program will exit”, your sdk's version may be under J2SE 5.0. You could just update your sdk to J2SE 5.0 or recompile the sources and make up the jar file under your current environment



http://caterpillar.onlyfun.net/


话题树型展开
人气 标题 作者 字数 发贴时间
5180 Simple Multi Chat Server and Client justin_here 1697 2005-01-03 23:11

reply to postflat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923