OutputStream outputStreamWriter = socket.getOutputStream();
outputStreamWriter.write("HelloWorld".getBytes());
outputStreamWriter.close();
socket.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}.start();</code></pre>
原文链接:https://www.f2er.com/note/421448.html