Package org.servalproject.servaldna

Examples of org.servalproject.servaldna.MdpServiceLookup


    Thread.sleep(3000);
    lookup.close();
  }

  static void service(String pattern) throws IOException, InterruptedException, ServalDInterfaceException {
    MdpServiceLookup lookup = new ServerControl().getMdpServiceLookup(new ChannelSelector(), new AsyncResult<MdpServiceLookup.ServiceResult>() {
      @Override
      public void result(MdpServiceLookup.ServiceResult nextResult) {
        System.out.println(nextResult.toString());
      }
    });
    lookup.sendRequest(SubscriberId.broadcastSid, pattern);
    Thread.sleep(3000);
    lookup.close();
  }
View Full Code Here

TOP

Related Classes of org.servalproject.servaldna.MdpServiceLookup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.