• 大小: 3.25MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-15
  • 语言: Java
  • 标签: java  

资源简介

自己编写的项目案例,“小说阅读管理系统”实现客户端服务器的通信,能上传,下载,阅读

资源截图

代码片段和文件信息

package com.client;

import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

import com.util.Sysconstants;
import com.util.Tools;

public class Client {

/**
 * @param args
 * @throws IOException 
 */
public static void main(String[] args) throws IOException {
Socket socket=null;
try {
 socket=new Socket(Tools.getValue(Sysconstants.SYS_HOSTNAME)Integer.parseInt(Tools.getValue(Sysconstants.SYS_LISTENERPORT)));
new ClientInterface(socket).LoginView();
} catch (NumberFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (UnknownHostException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
socket.close();
}


}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-07-30 14:51  Project_U1\
     文件         301  2012-07-30 14:51  Project_U1\.classpath
     文件         386  2012-07-30 14:51  Project_U1\.project
     目录           0  2012-07-30 14:51  Project_U1\.settings\
     文件         629  2012-07-30 14:51  Project_U1\.settings\org.eclipse.jdt.core.prefs
     目录           0  2012-08-05 09:35  Project_U1\bin\
     目录           0  2012-08-05 09:35  Project_U1\bin\com\
     目录           0  2012-08-05 09:35  Project_U1\bin\com\client\
     文件        1317  2012-08-05 09:35  Project_U1\bin\com\client\Client.class
     文件        9574  2012-08-05 11:05  Project_U1\bin\com\client\ClientInterface.class
     目录           0  2012-08-05 09:35  Project_U1\bin\com\entity\
     文件        1595  2012-08-05 09:35  Project_U1\bin\com\entity\Novel.class
     文件         795  2012-08-05 09:35  Project_U1\bin\com\entity\User.class
     目录           0  2012-08-05 09:35  Project_U1\bin\com\entity\download\
     文件       79956  2012-08-04 09:28  Project_U1\bin\com\entity\download\null.txt
     文件           0  2012-08-04 09:29  Project_U1\bin\com\entity\download\吞噬星空.txt
     目录           0  2012-08-05 09:35  Project_U1\bin\com\entity\qihuan\
     文件          56  2012-08-04 09:25  Project_U1\bin\com\entity\qihuan\sql2.txt
     文件       25436  2012-07-16 15:12  Project_U1\bin\com\entity\qihuan\不死不灭.TXT
     文件       41816  2012-07-16 15:14  Project_U1\bin\com\entity\qihuan\九鼎记.txt
     目录           0  2012-08-05 09:35  Project_U1\bin\com\entity\wuxia\
     文件       80941  2012-08-03 17:21  Project_U1\bin\com\entity\wuxia\吞噬星空.txt
     文件     3444960  2012-07-15 14:53  Project_U1\bin\com\entity\wuxia\善良的死神.txt
     目录           0  2012-08-05 09:35  Project_U1\bin\com\server\
     文件        1375  2012-08-05 09:35  Project_U1\bin\com\server\Server.class
     文件       11559  2012-08-05 11:03  Project_U1\bin\com\server\ServerThread.class
     文件         182  2012-08-04 09:59  Project_U1\bin\com\server\UserInfo.xml
     文件         420  2012-08-04 10:22  Project_U1\bin\com\server\novel.xml
     文件         684  2012-08-04 10:18  Project_U1\bin\com\server\qihuanInfo.xml
     文件         700  2012-08-04 10:18  Project_U1\bin\com\server\wuxiaInfo.xml
     目录           0  2012-08-05 09:35  Project_U1\bin\com\util\
............此处省略34个文件信息

评论

共有 条评论