|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeer2me.network.bluetooth.BluetoothPingListener
public class BluetoothPingListener
This class creates and opens up a connection so that other devices can establish a connection. The connections are only used to see if the local node is alive. No data is ever transferred on this connection
Constructor Summary | |
---|---|
BluetoothPingListener(Bluetooth bluetooth,
Service service)
Constructor that sets some local variables and starts the thread |
Method Summary | |
---|---|
void |
run()
Opens up a connection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BluetoothPingListener(Bluetooth bluetooth, Service service)
bluetooth
- A reference to Bluetooth, which created an instance of this classservice
- The service contains necessary information to open up a connectionMethod Detail |
---|
public void run()
BluetoothConnectionHandler
which is assositated with the connection. It will not
open up a new connection until the current connection is closed.
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |