package cj.arithmetic;
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.UnknownHostException;
public class ArithmeticTest {
public static void main(String[] args) throws IOException{
1.建立socket流;
Socket sc=new Socket();
2.获取网络输出流
OutputStream out=sc.getOutputStream();
发送信息到服务端
out.write(null);
}
}
接下去怎么写,写出流该怎么保存到socket流中去呀