|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeer2me.network.bluetooth.BluetoothListener
public class BluetoothListener
This class creates and opens up a connection so that other devices can establish a connection.
Constructor Summary | |
---|---|
BluetoothListener(Bluetooth bluetooth,
Service service)
Constructor that sets some local variables and starts the thread |
Method Summary | |
---|---|
java.util.Hashtable |
getIncompleteReceivedMessages()
Returns a HashTable containing all the incomplete received messages. |
java.lang.Thread |
getThread()
Returns the this class' thread |
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 BluetoothListener(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 has received all data and is finished.
run
in interface java.lang.Runnable
public java.util.Hashtable getIncompleteReceivedMessages()
public java.lang.Thread getThread()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |