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 UPnPSSDPAdapter
private static AEMonitor
private boolean
private String
private int
private static final String
private List
private MCGroup
private static final String
private static Map
protected AEMonitor
private long
private UTTimer
private List
Fields inherited from interface com.biglybt.net.upnp.UPnPSSDP
SSDP_GROUP_ADDRESS, SSDP_GROUP_PORT
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SSDPCore
(UPnPSSDPAdapter _adapter, String _group_address, int _group_port, int _control_port, String[] _selected_interfaces) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
protected String
static SSDPCore
getSingleton
(UPnPSSDPAdapter adapter, String group_address, int group_port, int control_port, String[] selected_interfaces) protected void
informNotify
(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String usn, URL location, String nt, String nts) protected void
informResult
(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) void
interfaceChanged
(NetworkInterface network_interface) void
void
void
received
(NetworkInterface network_interface, InetAddress local_address, InetSocketAddress originator, byte[] packet_data, int length) void
void
protected void
void
-
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:
getControlPort
in interfaceUPnPSSDP
-
trace
- Specified by:
trace
in interfaceMCGroupAdapter
-
log
- Specified by:
log
in interfaceMCGroupAdapter
-
notify
-
getServerName
-
search
-
sendMC
-
interfaceChanged
- Specified by:
interfaceChanged
in interfaceMCGroupAdapter
-
received
public void received(NetworkInterface network_interface, InetAddress local_address, InetSocketAddress originator, byte[] packet_data, int length) - Specified by:
received
in 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:
addListener
in interfaceUPnPSSDP
-
removeListener
- Specified by:
removeListener
in interfaceUPnPSSDP
-