Package org.cybergarage.upnp.ssdp

Examples of org.cybergarage.upnp.ssdp.SSDPSearchResponseSocketList


  //  Constructor
  ////////////////////////////////////////////////

  public ControlPoint(int ssdpPort, int httpPort,InetAddress[] binds){
    ssdpNotifySocketList = new SSDPNotifySocketList(binds);
    ssdpSearchResponseSocketList = new SSDPSearchResponseSocketList(binds);
   
    setSSDPPort(ssdpPort);
    setHTTPPort(httpPort);
   
    setDeviceDisposer(null);
View Full Code Here


  }

  public void search(String target, int mx)
  {
    SSDPSearchRequest msReq = new SSDPSearchRequest(target, mx);
    SSDPSearchResponseSocketList ssdpSearchResponseSocketList = getSSDPSearchResponseSocketList();
    ssdpSearchResponseSocketList.post(msReq);
  }
View Full Code Here

    // SeachResponse Socket
    ////////////////////////////////////////
   
    int ssdpPort = getSSDPPort();
    retryCnt = 0;
    SSDPSearchResponseSocketList ssdpSearchResponseSocketList = getSSDPSearchResponseSocketList();
    while (ssdpSearchResponseSocketList.open(ssdpPort) == false) {
      retryCnt++;
      if (UPnP.SERVER_RETRY_COUNT < retryCnt)
        return false;
      setSSDPPort(ssdpPort + 1);
      ssdpPort = getSSDPPort();
    }
    ssdpSearchResponseSocketList.setControlPoint(this);
    ssdpSearchResponseSocketList.start();

    ////////////////////////////////////////
    // search root devices
    ////////////////////////////////////////
   
View Full Code Here

    SSDPNotifySocketList ssdpNotifySocketList = getSSDPNotifySocketList();
    ssdpNotifySocketList.stop();
    ssdpNotifySocketList.close();
    ssdpNotifySocketList.clear();
   
    SSDPSearchResponseSocketList ssdpSearchResponseSocketList = getSSDPSearchResponseSocketList();
    ssdpSearchResponseSocketList.stop();
    ssdpSearchResponseSocketList.close();
    ssdpSearchResponseSocketList.clear();

    HTTPServerList httpServerList = getHTTPServerList();
    httpServerList.stop();
    httpServerList.close();
    httpServerList.clear();
View Full Code Here

TOP

Related Classes of org.cybergarage.upnp.ssdp.SSDPSearchResponseSocketList

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.