_udpLogServiceSA = new WSYD_SocketAddress(Network.PORTS_SERVER_LOG, Protocol.UDP);
_udpLogService = new NetworkServerUDP(_udpLogServiceSA, _title + "Log", _serviceToAddressMap, LOGGER);
- _udpLogService.addNetworkMessageEventListener(this, "Log");
+ _udpLogService.getEventManager().addNetworkMessageEventListener(this, "Log");
_udpLogService.setSimulate(false);
_udpLogService.execute();
_multicastAdvertiserSA = new WSYD_SocketAddress(Network.MULTICAST_IP, Network.PORTS_MULTICAST_DISCOVERY, Protocol.UDP);
_multicastServer = new NetworkServerUDPMulticast(_multicastAdvertiserSA, _title + "MC", _serviceToAddressMap, LOGGER);
- _multicastServer.addNetworkMessageEventListener(this, "Neighbour");
+ _multicastServer.getEventManager().addNetworkMessageEventListener(this, "Neighbour");
_multicastServer.execute();
// permit broadcasting to pseudo-host 'all' since this is multicast
_serviceToAddressMap.put("all", new LastSeenHost(new InetSocketAddress(Network.MULTICAST_IP, Network.PORTS_MULTICAST_DISCOVERY), LastSeenHost.STATE.STATIC));