網(wǎng)絡(luò)編程三要素:IP地址、端口、協(xié)議 UDP通信程序 TCP通信程序 可以使用socket 的 shutdownOutput()方法 關(guān)閉輸出流,但是socket仍然是連接狀態(tài),連接并未關(guān)閉。