文档简介
基于Socket的Server通信
文档内容节选
package zds import javaawt import javaxswing import javaio import javanet public class zds public static void mainString args throws Exception try ServerSocket serversocketnew ServerSocket4000 构造Server端ServerSocket对象 SystemoutprintlnServer is starting Socket serverserversocketaccept accept方法在Server端监听 BufferedReader sinnew BufferedReadernew InputStreamReaderSystemin BufferedReader isnew BufferedReadernew InputStreamReaderservergetInputStream PrintWriter......
评论
加载更多
推荐下载
查看更多
精选文集
相关视频
推荐帖子