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