Package ball.upnp.ssdp
Interface SSDPDiscoveryService.Listener
-
- All Known Implementing Classes:
SSDPDiscoveryCache
,SSDPDiscoveryService.RequestHandler
,SSDPDiscoveryService.ResponseHandler
,SSDPTask
,SSDPTask.Discover
,SSDPTask.Listen
,SSDPTask.MSearch
- Enclosing class:
- SSDPDiscoveryService
public static interface SSDPDiscoveryService.Listener
SSDPDiscoveryService
listener interface definition.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
receiveEvent(SSDPDiscoveryService service, DatagramSocket socket, SSDPMessage message)
Callback made after receiving aSSDPMessage
.void
register(SSDPDiscoveryService service)
Callback when aSSDPDiscoveryService.Listener
is added to aSSDPDiscoveryService
.void
sendEvent(SSDPDiscoveryService service, DatagramSocket socket, SSDPMessage message)
Callback made just before sending aSSDPMessage
.void
unregister(SSDPDiscoveryService service)
Callback when aSSDPDiscoveryService.Listener
is removed from aSSDPDiscoveryService
.
-
-
-
Method Detail
-
register
void register(SSDPDiscoveryService service)
Callback when aSSDPDiscoveryService.Listener
is added to aSSDPDiscoveryService
.- Parameters:
service
- TheSSDPDiscoveryService
.
-
unregister
void unregister(SSDPDiscoveryService service)
Callback when aSSDPDiscoveryService.Listener
is removed from aSSDPDiscoveryService
.- Parameters:
service
- TheSSDPDiscoveryService
.
-
sendEvent
void sendEvent(SSDPDiscoveryService service, DatagramSocket socket, SSDPMessage message)
Callback made just before sending aSSDPMessage
.- Parameters:
service
- TheSSDPDiscoveryService
.socket
- TheDatagramSocket
.message
- TheSSDPMessage
.
-
receiveEvent
void receiveEvent(SSDPDiscoveryService service, DatagramSocket socket, SSDPMessage message)
Callback made after receiving aSSDPMessage
.- Parameters:
service
- TheSSDPDiscoveryService
.socket
- TheDatagramSocket
.message
- TheSSDPMessage
.
-
-