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