推 winterfrost:會不會是port已經被用了 06/13 00:44
→ llzzyy01:但試了好几個 都不行耶 06/13 23:31
確實如一樓說的
後來我檢查一下,之前是我搞錯了 其實是有進Exception
而且有爆
bind failed eaddrinuse (address already in use)
但我查一下 網路資料 我用了
svsocket=new ServerSocket();
svsocket.setReuseAddress(true);
svsocket.bind(new InetSocketAddress(3388));
卻無法解決問題
※ 編輯: llzzyy01 (220.141.141.110), 06/14/2014 10:26:18
※ 編輯: llzzyy01 (220.141.141.110), 06/14/2014 10:42:29
推 sdyy:po 詳細一點的 code吧 06/14 15:16
→ gpc:bind failed eaddrinuse (address already in use) 06/17 12:30
→ DavidLanz:port被前一個thread佔用之後未terminate? 06/27 18:31