public boolean post(SSDPNotifyRequest ssdpnotifyrequest) { String s = "239.255.255.250"; if (useIPv6Address) { s = SSDP.getIPv6Address(); } ssdpnotifyrequest.setHost(s, 1900); return post(((org.cybergarage.http.HTTPRequest) (ssdpnotifyrequest))); }
public SSDPNotifySocket(String bindAddr) { String addr = SSDP.ADDRESS; useIPv6Address = false; if (HostInterface.isIPv6Address(bindAddr) == true) { addr = SSDP.getIPv6Address(); useIPv6Address = true; } open(addr, SSDP.PORT, bindAddr); setControlPoint(null); }
public SSDPNotifySocket(String s) { controlPoint = null; deviceNotifyThread = null; String s1 = "239.255.255.250"; useIPv6Address = false; if (HostInterface.isIPv6Address(s)) { s1 = SSDP.getIPv6Address(); useIPv6Address = true; } open(s1, 1900, s); setControlPoint(null); }
/** * This method send a {@link SSDPNotifyRequest} over {@link SSDPNotifySocket} * * @param req the {@link SSDPNotifyRequest} to send * @return true if and only if the trasmission succeced<br> * Because it rely on UDP doesn't mean that it's also recieved */ public boolean post(SSDPNotifyRequest req) { String ssdpAddr = SSDP.ADDRESS; if (useIPv6Address == true) ssdpAddr = SSDP.getIPv6Address(); req.setHost(ssdpAddr, SSDP.PORT); return post((HTTPRequest) req); }