Example #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);
   }
 }
Example #2
0
 public void stopUdpConnector() throws Exception {
   if (udpConnector == null) {
     return;
   }
   udpConnector.stop();
 }
Example #3
0
 public void initUdpConnector() throws Exception {
   System.out.println("start connector...");
   udpConnector = new UdpConnector();
   udpConnector.start();
 }