看板 [ java ]
討論串[問題] 請問關於Socket
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者Banciao (板橋是個好地方)時間15年前 (2010/12/17 20:07), 編輯資訊
0
0
0
內容預覽:
yes. 因為你這幾行實際上都是呼叫 println(Object x) = println(x.toString())看本地端是用哪個 port 來連接這個 socketInetAddress ia = InetAddress.getLocalHost();. System.out.println

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者polomoss (小澤)時間15年前 (2010/12/13 01:34), 編輯資訊
0
0
0
內容預覽:
getInetAddress. public InetAddress getInetAddress(). Returns the address to which the socket is connected.. Returns:. the remote IP address to which t
(還有964個字)
首頁
上一頁
1
下一頁
尾頁