• 大小: 0.01M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-04
  • 语言: 其他
  • 标签: 其他  

资源简介

TSocket.zip

资源截图

代码片段和文件信息

package com.tsocket.test;

import java.io.*;
import java.net.*;

public class Client {
public static void main(String[] args) throws UnknownHostException IOException {
Socket socket = new Socket(“169.254.87.76“8888);

new Thread(new Send(socket)).start();
new Thread(new Receive(socket)).start();
/*String info = “客户端要连接!“;
BufferedWriter br = new BufferedWriter(
new OutputStreamWriter(
socket.getOutputStream()));
br.write(info);
br.newLine();
br.flush();*/
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-03 22:33  TSocket\
     文件         301  2017-03-31 10:13  TSocket\.classpath
     文件         383  2017-03-31 10:13  TSocket\.project
     目录           0  2017-04-03 22:33  TSocket\.settings\
     文件         598  2017-03-31 10:13  TSocket\.settings\org.eclipse.jdt.core.prefs
     目录           0  2017-04-03 22:33  TSocket\bin\
     目录           0  2017-04-03 22:33  TSocket\bin\com\
     目录           0  2017-04-03 22:33  TSocket\bin\com\tsocket\
     目录           0  2017-04-03 22:33  TSocket\bin\com\tsocket\test\
     文件         826  2017-04-03 22:27  TSocket\bin\com\tsocket\test\Client.class
     文件         736  2017-04-03 22:27  TSocket\bin\com\tsocket\test\CloseUtil.class
     文件        1389  2017-04-03 22:27  TSocket\bin\com\tsocket\test\Receive.class
     文件        1788  2017-04-03 22:27  TSocket\bin\com\tsocket\test\Send.class
     文件        2441  2017-04-03 22:27  TSocket\bin\com\tsocket\test\Server$MyChannel.class
     文件        1221  2017-04-03 22:27  TSocket\bin\com\tsocket\test\Server.class
     目录           0  2017-04-03 22:33  TSocket\src\
     目录           0  2017-04-03 22:33  TSocket\src\com\
     目录           0  2017-04-03 22:33  TSocket\src\com\tsocket\
     目录           0  2017-04-03 22:33  TSocket\src\com\tsocket\test\
     文件         523  2017-03-31 17:09  TSocket\src\com\tsocket\test\Client.java
     文件         292  2017-03-31 11:04  TSocket\src\com\tsocket\test\CloseUtil.java
     文件         662  2017-03-31 11:25  TSocket\src\com\tsocket\test\Receive.java
     文件         942  2017-03-31 16:35  TSocket\src\com\tsocket\test\Send.java
     文件        2256  2017-03-31 12:06  TSocket\src\com\tsocket\test\Server.java

评论

共有 条评论