Skip to content
Snippets Groups Projects
Commit 4cde6929 authored by jkerdreu's avatar jkerdreu
Browse files

Cleanup order

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Java/branches/0.7@3103 b32b6428-25c9-4566-ad07-03861ab6144f
parent 2ea0f2ac
Branches
No related tags found
No related merge requests found
......@@ -103,11 +103,12 @@ public final class NetworkConnector extends Thread {
int hops = getHops();
this.dgChannel = DatagramChannel.open(StandardProtocolFamily.INET);
this.dgChannel.setOption(StandardSocketOptions.SO_REUSEPORT, true);
this.dgChannel.bind(new InetSocketAddress(port));
this.dgChannel.setOption(StandardSocketOptions.IP_MULTICAST_IF, iface);
this.dgChannel.setOption(StandardSocketOptions.IP_MULTICAST_TTL, hops);
this.dgChannel.setOption(StandardSocketOptions.SO_REUSEPORT, true);
this.dgChannel.bind(new InetSocketAddress(port));
this.dgChannel.join(addr, iface);
LOGGER.info("Connnecting " + addr.toString() + ":" + port);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment