Package com.biglybt.net.upnp.impl.ssdp
Class SSDPCore
java.lang.Object
com.biglybt.net.upnp.impl.ssdp.SSDPCore
- All Implemented Interfaces:
MCGroupAdapter,UPnPSSDP
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate UPnPSSDPAdapterprivate static AEMonitorprivate booleanprivate Stringprivate intprivate static final Stringprivate Listprivate MCGroupprivate static final Stringprivate static Mapprotected AEMonitorprivate longprivate UTTimerprivate ListFields inherited from interface com.biglybt.net.upnp.UPnPSSDP
SSDP_GROUP_ADDRESS, SSDP_GROUP_PORT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSSDPCore(UPnPSSDPAdapter _adapter, String _group_address, int _group_port, int _control_port, String[] _selected_interfaces) -
Method Summary
Modifier and TypeMethodDescriptionvoidintprotected Stringstatic SSDPCoregetSingleton(UPnPSSDPAdapter adapter, String group_address, int group_port, int control_port, String[] selected_interfaces) protected voidinformNotify(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String usn, URL location, String nt, String nts) protected voidinformResult(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String usn, URL location, String st, String al) protected String[]informSearch(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String st) voidinterfaceChanged(NetworkInterface network_interface) voidvoidvoidreceived(NetworkInterface network_interface, InetAddress local_address, InetSocketAddress originator, byte[] packet_data, int length) voidvoidprotected voidvoid
-
Field Details
-
HTTP_VERSION
- See Also:
-
NL
- See Also:
-
singletons
-
class_mon
-
mc_group
-
adapter
-
group_address_str
-
group_port
private int group_port -
first_response
private boolean first_response -
listeners
-
timer
-
timer_queue
-
time_event_next
private long time_event_next -
this_mon
-
ignore_mx
-
-
Constructor Details
-
SSDPCore
private SSDPCore(UPnPSSDPAdapter _adapter, String _group_address, int _group_port, int _control_port, String[] _selected_interfaces) throws UPnPException - Throws:
UPnPException
-
-
Method Details
-
getSingleton
public static SSDPCore getSingleton(UPnPSSDPAdapter adapter, String group_address, int group_port, int control_port, String[] selected_interfaces) throws UPnPException - Throws:
UPnPException
-
getControlPort
public int getControlPort()- Specified by:
getControlPortin interfaceUPnPSSDP
-
trace
- Specified by:
tracein interfaceMCGroupAdapter
-
log
- Specified by:
login interfaceMCGroupAdapter
-
notify
-
getServerName
-
search
-
sendMC
-
interfaceChanged
- Specified by:
interfaceChangedin interfaceMCGroupAdapter
-
received
public void received(NetworkInterface network_interface, InetAddress local_address, InetSocketAddress originator, byte[] packet_data, int length) - Specified by:
receivedin interfaceMCGroupAdapter
-
informResult
protected void informResult(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String usn, URL location, String st, String al) -
informNotify
protected void informNotify(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String usn, URL location, String nt, String nts) -
informSearch
protected String[] informSearch(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String st) -
addListener
- Specified by:
addListenerin interfaceUPnPSSDP
-
removeListener
- Specified by:
removeListenerin interfaceUPnPSSDP
-