| java.lang.Object | |
| ↳ | org.ocast.discovery.SSDPSocket |
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| interface | SSDPSocket.Listener | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| SSDPSocket() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
close()
Close the SSDPSocket
| ||||||||||
| void |
init(boolean joinGroup)
Initialize the socket
| ||||||||||
| List<SSDPMessage> |
read(int timeout, SSDPSocket.Listener responseListener)
Read data on the multicast channel
| ||||||||||
| void |
send(SSDPMessage message)
Send a SSDPMessage, typically M-SEARCH
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| MulticastSocket |
createSocket()
Allow subclass to customize the socket creation
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Close the SSDPSocket
Initialize the socket
| joinGroup | flag to tell whether we should join the multicast group to manage NOTIFY |
|---|
| IOException |
|---|
Read data on the multicast channel
| timeout | amount of time the method should wait for data |
|---|---|
| responseListener | the object to be notified just in time |
| IOException |
|---|
Send a SSDPMessage, typically M-SEARCH
| message | to be sent |
|---|
| IOException |
|---|
Allow subclass to customize the socket creation
| IOException |
|---|