public class UdpScanChannel extends ScanChannel
Modifier and Type | Class and Description |
---|---|
static interface |
UdpScanChannel.UdpScanCallback |
mHandler, mScanning, mTimeout
Constructor and Description |
---|
UdpScanChannel(int port,
byte[] message,
int timeout) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
setTimeout(int timeout) |
void |
setUdpScanCallback(UdpScanChannel.UdpScanCallback udpScanCallback) |
void |
startScan() |
void |
stopScan() |
setOnScanBehaviorStopCallback
public UdpScanChannel(int port, byte[] message, int timeout)
port
- The port that UdpScanChannel
is going to broadcast
message
- timeout
- public void setUdpScanCallback(UdpScanChannel.UdpScanCallback udpScanCallback)
public void startScan()
startScan
in class ScanChannel
public void stopScan()
stopScan
in class ScanChannel
public void setTimeout(int timeout)
setTimeout
in class ScanChannel
public void destroy()
destroy
in class ScanChannel