How do I close a port in a case of program termination?

前端 未结 4 1745
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 06:19

I am using Socket communication in one of my Java applications.As I know if the program meets any abnormal termination the listening ports does not get closed and the progra

4条回答
提交回复
热议问题