public void pushInstanceMessage(ServerMessage sm) throws Exception { if (sm == null || sm.getData() == null || sm.getSocketAddress() == null) { return; } if (udpConnector != null) { udpConnector.send(sm); } }
public void stopUdpConnector() throws Exception { if (udpConnector == null) { return; } udpConnector.stop(); }
public void initUdpConnector() throws Exception { System.out.println("start connector..."); udpConnector = new UdpConnector(); udpConnector.start(); }