Public Member Functions | |
int[] | getReceivedData () |
void | send (int player, int x, int y, int z) |
void | receive () |
TicTacCom (TicTacMain p, int r) | |
void | run () |
void | debug (String st) |
void | deviceDiscovered (RemoteDevice btDevice, DeviceClass cod) |
void | inquiryCompleted (int discType) |
void | servicesDiscovered (int transID, ServiceRecord[] servRecord) |
void | serviceSearchCompleted (int transID, int responseCode) |
Static Public Attributes | |
static final int | ROLE_SERVEUR = 0 |
static final int | ROLE_CLIENT = 1 |
static final UUID | RFCOMM_UUID = new UUID(0x0003) |
Package Functions | |
void | init (int r) |
void | initServer () throws BluetoothStateException, IOException, Exception |
void | initClient () throws Exception |
Package Attributes | |
TicTacMain | parent |
int | role |
int | clientResponseCode = -1 |
Thread | thread = new Thread(this) |
boolean | initOK = false |
boolean | newData = false |
int | toSendData [] = new int[4] |
boolean | readRequest = false |
int | readData [] = new int[4] |
boolean | newReceivedData = false |
Private Attributes | |
DiscoveryAgent | discoveryAgent |
RemoteDevice[] | remoteDevices |
UUID[] | uuidSet |
String | serviceUrl |
StreamConnectionNotifier | notifier |
StreamConnection | conn |
LocalDevice | localDevice |
ServiceRecord | serviceRecord |
InputStream | input |
OutputStream | output |
boolean | stopThread = false |
Static Private Attributes | |
static String | serverUrl = "btspp://localhost:" + RFCOMM_UUID + ";name=rfcommtest;authorize=true" |
Definition at line 28 of file TicTacCom.java.
|
Constructeur.
Definition at line 114 of file TicTacCom.java. References init(), parent, role, and thread. Here is the call graph for this function: ![]() |
|
Definition at line 188 of file TicTacCom.java. Referenced by deviceDiscovered(), initClient(), inquiryCompleted(), servicesDiscovered(), and serviceSearchCompleted(). |
|
Callback de découverte d'un périphérique. Definition at line 234 of file TicTacCom.java. References debug(), discoveryAgent, RFCOMM_UUID, and uuidSet. Here is the call graph for this function: ![]() |
|
Recuperation des infos recues. Definition at line 79 of file TicTacCom.java. References readData. |
|
Initialisation de la communication. Definition at line 193 of file TicTacCom.java. References initClient(), initServer(), and role. Referenced by run(), and TicTacCom(). Here is the call graph for this function: ![]() |
|
Initialisation du client. Definition at line 222 of file TicTacCom.java. References debug(), discoveryAgent, and localDevice. Referenced by init(). Here is the call graph for this function: ![]() |
|
Initialisation du serveur. Definition at line 211 of file TicTacCom.java. References conn, initOK, localDevice, notifier, and serverUrl. Referenced by init(). |
|
Definition at line 252 of file TicTacCom.java. References debug(). Here is the call graph for this function: ![]() |
|
Mise en attende du coup de l'autre joueur. Definition at line 102 of file TicTacCom.java. References newReceivedData, and readRequest. |
|
Debut du thread. Initialisation et envois/receptions de données. Definition at line 128 of file TicTacCom.java. References conn, init(), initOK, input, newData, newReceivedData, notifier, output, readData, readRequest, role, ROLE_SERVEUR, serviceUrl, stopThread, and toSendData. Here is the call graph for this function: ![]() |
|
Envoi d'un coup.
Definition at line 90 of file TicTacCom.java. References newData, and toSendData. |
|
Un service a ete decouvert. Definition at line 258 of file TicTacCom.java. References debug(), and serviceUrl. Here is the call graph for this function: ![]() |
|
Fin de la recherche de service. Definition at line 268 of file TicTacCom.java. References clientResponseCode, debug(), initOK, and serviceUrl. Here is the call graph for this function: ![]() |
|
Definition at line 50 of file TicTacCom.java. Referenced by serviceSearchCompleted(). |
|
Definition at line 54 of file TicTacCom.java. Referenced by initServer(), and run(). |
|
Agent de découverte de périphériques. Definition at line 42 of file TicTacCom.java. Referenced by deviceDiscovered(), and initClient(). |
|
Definition at line 66 of file TicTacCom.java. Referenced by initServer(), run(), and serviceSearchCompleted(). |
|
Definition at line 57 of file TicTacCom.java. Referenced by run(). |
|
Definition at line 55 of file TicTacCom.java. Referenced by initClient(), and initServer(). |
|
Definition at line 68 of file TicTacCom.java. |
|
Definition at line 75 of file TicTacCom.java. |
|
Definition at line 53 of file TicTacCom.java. Referenced by initServer(), and run(). |
|
Definition at line 58 of file TicTacCom.java. Referenced by run(). |
|
Application source. Definition at line 31 of file TicTacCom.java. Referenced by TicTacCom(). |
|
Definition at line 72 of file TicTacCom.java. Referenced by getReceivedData(), and run(). |
|
Definition at line 71 of file TicTacCom.java. |
|
Liste des périphériques trouvés. Definition at line 44 of file TicTacCom.java. |
|
Identification partagée par le client et le serveur. Definition at line 39 of file TicTacCom.java. Referenced by deviceDiscovered(). |
|
Role: Client->1, Serveur->0 . Definition at line 33 of file TicTacCom.java. Referenced by init(), run(), and TicTacCom(). |
|
Definition at line 36 of file TicTacCom.java. |
|
Definition at line 35 of file TicTacCom.java. Referenced by run(). |
|
Definition at line 60 of file TicTacCom.java. Referenced by initServer(). |
|
Definition at line 56 of file TicTacCom.java. |
|
URL du service trouvé sur le serveur Definition at line 49 of file TicTacCom.java. Referenced by run(), servicesDiscovered(), and serviceSearchCompleted(). |
|
Definition at line 62 of file TicTacCom.java. Referenced by run(). |
|
Definition at line 64 of file TicTacCom.java. Referenced by TicTacCom(). |
|
Definition at line 69 of file TicTacCom.java. |
|
Definition at line 46 of file TicTacCom.java. Referenced by deviceDiscovered(). |