1.javasocketԴ?源码????
javasocketԴ?????
//客户端
public static void main(String[] args) throws Exception
{
Socket socket = new Socket(".0.0.1", );
OutputStream os = socket.getOutputStream();
os.write("hello world".getBytes());
os.close();//客户端使用完流之后记得要关闭!!分析有源码有基址
}
//服务端
public static void main(String[] args) throws Exception
{
ServerSocket ss = new ServerSocket();
Socket socket = ss.accept();
InputStream is = socket.getInputStream();
byte[] buffer = new byte[];
int length = 0;
while (-1 != (length = is.read(buffer,源码源码防倒卖 0, buffer.length)))//这句错了,是分析靖江源码建站不等于!
{
String str = new String(buffer,源码小白裂变源码 0, length);
System.out.println("welcome "+str);
}
}
2024-11-29 20:301959人浏览
2024-11-29 20:002812人浏览
2024-11-29 19:171104人浏览
2024-11-29 18:40963人浏览
2024-11-29 18:152042人浏览
2024-11-29 18:12863人浏览
1.UE5在Windows平台上的WindowsEngine.ini文件源码解读分析2.OpenHarmony编译构建系统详解,从零搭建windows下开发环境,巨方便!3.Windows平台下载AO