且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何创建同时侦听UDP和UDP的服务器Java中的TCP客户端

更新时间:2021-10-22 21:57:14

中放入一些sysout, TCP客户端的所有空捕获-我想你会找出失败的原因.

您至少应该将e.printStackTrace()留在那里.***弄清楚什么时候弹出异常.
put some sysout in that ALL THE empty catch of the TCP-Client - I guess you''ll find out why it fails.

You should at least leave the e.printStackTrace() in there. Better to figure when an exception pops.