摘要:
//localhost代表的是本机地址 Socket socket=new Socket("localhost",4365); //向服务端输出信息 OutputStream os=socket.getOutputStream(); String request="我是客户端,服务器你好!"; // 阅读全文
posted @ 2019-06-03 13:24
勇者斗恶龙唐嫣英雄传
阅读(119)
评论(0)
推荐(0)
摘要:
/***************服务端**************/ SeverSocket seversocket=new SeverSocket("端口号1"); /****范围是1024~9999******/ /*侦听数据*/ Socket socket=seversocket.accept 阅读全文
posted @ 2019-06-03 13:19
勇者斗恶龙唐嫣英雄传
阅读(89)
评论(0)
推荐(0)

浙公网安备 33010602011771号