socket - JAVA 如何绑定localAddress
伊谢尔伦
伊谢尔伦 2017-04-17 14:47:41
0
1
592

socket.connect(localAddress,localPort,remoteAddress,remotePort)

程序接口没有提供本地ip的绑定,修改源码太麻烦,有其他的方式吗?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
巴扎黑

. . . . .
The first method in the api is

void    bind(SocketAddress bindpoint)
Binds the socket to a local address.
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!