Meeting  1.1
BTS SNIR LaSalle Avignon 2021
Référence de la classe com.lasalle.meeting.Communication

Communication entre l'application et le portier. Plus de détails...

Graphe de collaboration de com.lasalle.meeting.Communication:
Collaboration graph

Fonctions membres publiques

void arreter ()
 Arrête la socket, donc la communication avec les portiers. Plus de détails...
 
 Communication (Handler handler)
 Constructeur par défaut de la classe Communication. Plus de détails...
 
 Communication ()
 
void envoyer (String trame, String adressePortier)
 Envoyer la trame. Plus de détails...
 
String fabriquerTrameDemande (int typeTrame)
 Fabrique la trame de demande. Plus de détails...
 
String fabriquerTrameModification (int typeTrame, List< String > parametres)
 Fabrique la trame de modification. Plus de détails...
 
void recevoir ()
 Recevoir les trames des portiers. Plus de détails...
 
void run ()
 Assure la réception des trames. Plus de détails...
 
void setHandler (Handler handler)
 
boolean verifierTrame (String trame)
 Vérifie la trame. Plus de détails...
 

Fonctions membres publiques statiques

static int recupererTypeTrame (String[] champs)
 Détermine le type de trame. Plus de détails...
 

Attributs publics statiques

static final String adresseMulticast = "239.0.0.42"
 Adresse multicast des portiers. Plus de détails...
 
static final int CHAMP_CODE = 1
 
static final int CHAMP_DESCRIPTION = 1
 
static final int CHAMP_DISPONIBILITE = 4
 
static final int CHAMP_INDICE_DE_CONFORT = 5
 
static final int CHAMP_LIEU = 2
 
static final int CHAMP_NOM = 0
 
static final int CHAMP_SUPERFICIE = 3
 
static final int CHAMP_TEMPERATURE = 6
 
static final String DELIMITEUR_CHAMP = ";"
 
static final String DELIMITEUR_EN_TETE = "$"
 
static final String DELIMITEUR_FIN = "\r\n"
 
static final int DEMANDE_DISPONIBILITE = 3
 
static final int DEMANDE_INFORMATIONS = 1
 
static final int MODIFICATION_DISPONIBILITE = 3
 
static final int MODIFICATION_INFORMATIONS = 1
 
static final int NB_CHAMPS_DEMANDE_DISPONIBILITE = 1
 
static final int NB_CHAMPS_DEMANDE_INFORMATIONS = 7
 
static final int NB_CHAMPS_DISPONIBILITE = 1
 
static final int NB_CHAMPS_DISPONIBILITE_CODE = 2
 
static final int NB_CHAMPS_INFORMATIONS = 4
 
static final int NB_CHAMPS_MODIFICATION_DISPONIBILITE = 2
 
static final int NB_CHAMPS_RETOUR_MODIFICATION_DISPONIBILITE = 3
 
static final int TRAME_INCONNUE = -1
 
static final int TYPE_RECEPTION = 1
 Code du message indiquant une réception de données. Plus de détails...
 

Fonctions membres privées

void envoyerMessage (int type, String adresse, int port, String donnees)
 Envoie un message. Plus de détails...
 

Attributs privés

InetAddress adresseIP = null
 Adresse IP du portier. Plus de détails...
 
Handler handler
 Handler permettant l'échange de Message avec l'activité Plus de détails...
 
final ReentrantLock mutex = new ReentrantLock()
 
LinkedBlockingQueue< DatagramPacket > queueEmission
 Queue d'émission des trames. Plus de détails...
 
DatagramSocket socket = null
 Socket UDP. Plus de détails...
 

Attributs privés statiques

static final int PORT = 5000
 Port d'écoute des portiers. Plus de détails...
 
static final String TAG = "_Communication"
 TAG pour les logs. Plus de détails...
 

Description détaillée

Communication entre l'application et le portier.

Définition à la ligne 29 du fichier Communication.java.

Documentation des constructeurs et destructeur

◆ Communication() [1/2]

com.lasalle.meeting.Communication.Communication ( Handler  handler)

Constructeur par défaut de la classe Communication.

Paramètres
handlerHandler

Définition à la ligne 79 du fichier Communication.java.

Références com.lasalle.meeting.Communication.handler.

80  {
81  this.handler = handler;
82 
83  try
84  {
85  socket = new DatagramSocket(PORT);
86  Log.d(TAG, "Création de la socket UDP sur le port " + PORT);
87  }
88  catch(Exception e)
89  {
90  e.printStackTrace();
91  }
92 
93  queueEmission = new LinkedBlockingQueue<DatagramPacket>();
94  }
static final int PORT
Port d&#39;écoute des portiers.
static final String TAG
TAG pour les logs.
Handler handler
Handler permettant l&#39;échange de Message avec l&#39;activité
LinkedBlockingQueue< DatagramPacket > queueEmission
Queue d&#39;émission des trames.
DatagramSocket socket
Socket UDP.

◆ Communication() [2/2]

com.lasalle.meeting.Communication.Communication ( )

Définition à la ligne 96 du fichier Communication.java.

97  {
98  this.handler = null;
99 
100  try
101  {
102  socket = new DatagramSocket();
103  Log.d(TAG, "Création d'une socket UDP");
104  }
105  catch(Exception e)
106  {
107  e.printStackTrace();
108  }
109 
110  queueEmission = new LinkedBlockingQueue<DatagramPacket>();
111  }
static final String TAG
TAG pour les logs.
Handler handler
Handler permettant l&#39;échange de Message avec l&#39;activité
LinkedBlockingQueue< DatagramPacket > queueEmission
Queue d&#39;émission des trames.
DatagramSocket socket
Socket UDP.

Documentation des fonctions membres

◆ arreter()

void com.lasalle.meeting.Communication.arreter ( )

Arrête la socket, donc la communication avec les portiers.

Définition à la ligne 331 du fichier Communication.java.

Référencé par com.lasalle.meeting.EspaceDeTravail.initialiserCommunication().

332  {
333  if(socket == null)
334  return;
335  socket.close();
336  }
DatagramSocket socket
Socket UDP.

◆ envoyer()

void com.lasalle.meeting.Communication.envoyer ( String  trame,
String  adressePortier 
)

Envoyer la trame.

Paramètres
tramela trame à envoyer
adressePortierl'adresse IP du portier

Définition à la ligne 123 du fichier Communication.java.

Références com.lasalle.meeting.Communication.run().

Référencé par com.lasalle.meeting.EspaceDeTravail.demanderInformations(), com.lasalle.meeting.IHMMeeting.demarrerReseau(), com.lasalle.meeting.IHMMeeting.initialiserEspacesDeTravail(), com.lasalle.meeting.EspaceDeTravail.liberer(), com.lasalle.meeting.EspaceDeTravail.modifierInformations(), et com.lasalle.meeting.EspaceDeTravail.reserver().

124  {
125  if(socket == null || socket.isClosed())
126  return;
127 
128  Log.d(TAG, "envoyer() : adressePortier = " + adressePortier);
129 
130  final InetAddress adresseIPDistante;
131  try
132  {
133  adresseIPDistante = InetAddress.getByName(adressePortier);
134  }
135  catch (UnknownHostException e)
136  {
137  e.printStackTrace();
138  return;
139  }
140 
141  // Crée et démarre un thread pour envoyer la trame
142  new Thread()
143  {
144  @Override public void run()
145  {
146  byte[] emission = new byte[1024];
147 
148  try
149  {
150  emission = trame.getBytes();
151  DatagramPacket paquetRetour = new DatagramPacket(emission, emission.length, adresseIPDistante, PORT);
152  socket.send(paquetRetour);
153  Log.d(TAG, "envoyer() : " + trame + " à " + adresseIPDistante + ":" + PORT);
154  }
155  catch (IOException e)
156  {
157  e.printStackTrace();
158  Log.d(TAG, "Erreur émission !");
159  }
160  }
161  }.start();
162  }
void run()
Assure la réception des trames.
static final int PORT
Port d&#39;écoute des portiers.
static final String TAG
TAG pour les logs.
DatagramSocket socket
Socket UDP.

◆ envoyerMessage()

void com.lasalle.meeting.Communication.envoyerMessage ( int  type,
String  adresse,
int  port,
String  donnees 
)
private

Envoie un message.

Définition à la ligne 199 du fichier Communication.java.

Référencé par com.lasalle.meeting.Communication.recevoir().

200  {
201  if(handler == null)
202  return;
203  Message msg = Message.obtain();
204  msg.what = type;
205  Bundle b = new Bundle();
206  b.putString("adresseIP", adresse);
207  b.putInt("port", port);
208  b.putString("donnees", donnees);
209  msg.setData(b);
210  mutex.lock();
211  handler.sendMessage(msg);
212  mutex.unlock();
213  Log.d(TAG, "envoyerMessage() -> handler.sendMessage()");
214  }
static final String TAG
TAG pour les logs.
Handler handler
Handler permettant l&#39;échange de Message avec l&#39;activité

◆ fabriquerTrameDemande()

String com.lasalle.meeting.Communication.fabriquerTrameDemande ( int  typeTrame)

Fabrique la trame de demande.

Paramètres
typeTramele type de trame de demande
Renvoie
trame la trame fabriquée

Définition à la ligne 221 du fichier Communication.java.

Références com.lasalle.meeting.Communication.DELIMITEUR_FIN, com.lasalle.meeting.Communication.DEMANDE_DISPONIBILITE, et com.lasalle.meeting.Communication.DEMANDE_INFORMATIONS.

Référencé par com.lasalle.meeting.EspaceDeTravail.demanderInformations(), com.lasalle.meeting.IHMMeeting.demarrerReseau(), et com.lasalle.meeting.IHMMeeting.initialiserEspacesDeTravail().

222  {
223  /*
224  * Protocole
225  *
226  * Demande informations du portier :
227  * $GET;1\r\n
228  *
229  * Demande disponibilité du portier :
230  * $GET;3\r\n
231  */
232 
233  String trame = null;
234  Log.d(TAG, "fabriquerTrameDemande() type = " + typeTrame);
235 
236  switch(typeTrame)
237  {
239  trame = DELIMITEUR_EN_TETE + "GET;1" + DELIMITEUR_FIN;
240  break;
242  trame = DELIMITEUR_EN_TETE + "GET;3" + DELIMITEUR_FIN;
243  break;
244  default:
245  Log.d(TAG, "fabriquerTrameDemande() : type de trame inconnu !");
246  }
247 
248  Log.d(TAG,"fabriquerTrameDemande() trame = " + trame);
249 
250  return trame;
251  }
static final String DELIMITEUR_FIN
static final String TAG
TAG pour les logs.
static final String DELIMITEUR_EN_TETE

◆ fabriquerTrameModification()

String com.lasalle.meeting.Communication.fabriquerTrameModification ( int  typeTrame,
List< String >  parametres 
)

Fabrique la trame de modification.

Paramètres
typeTramele type de trame de modification
Renvoie
trame la trame fabriquée

Définition à la ligne 258 du fichier Communication.java.

Références com.lasalle.meeting.Communication.DELIMITEUR_FIN, com.lasalle.meeting.Communication.MODIFICATION_DISPONIBILITE, com.lasalle.meeting.Communication.MODIFICATION_INFORMATIONS, et com.lasalle.meeting.Communication.NB_CHAMPS_INFORMATIONS.

Référencé par com.lasalle.meeting.EspaceDeTravail.liberer(), com.lasalle.meeting.EspaceDeTravail.modifierInformations(), et com.lasalle.meeting.EspaceDeTravail.reserver().

259  {
260  /*
261  * Protocole
262  *
263  * Actualiser les informations d’un portier :
264  * $SET;1;nomSalle;description;emplacement;surface\r\n
265  *
266  * Actualiser la disponibilité d’un portier :
267  * $SET;3;disponibilité\r\n
268  *
269  * Exemple d'utilisation :
270  * List<String> parametres = Arrays.asList("B11", "Salle de cours", "Batiment BTS", "25");
271  * String trame = communication.fabriquerTrameModification(Communication.MODIFICATION_INFORMATIONS, parametres);
272  */
273 
274  // Vérifications
275  if(parametres == null)
276  return null;
277 
278  if(parametres.size() < 1)
279  return null;
280 
281  Log.d(TAG, "fabriquerTrameModification() type = " + typeTrame);
282  Log.d(TAG, "fabriquerTrameModification() Nb parametres = " + parametres.size());
283  for(int i=0;i<parametres.size();++i)
284  {
285  Log.d(TAG, "fabriquerTrameModification() parametres[" + i + "] = " + parametres.get(i));
286  }
287 
288  String trame = null;
289 
290  switch(typeTrame)
291  {
293  if(parametres.size() != NB_CHAMPS_INFORMATIONS)
294  return null;
295  trame = DELIMITEUR_EN_TETE + "SET;1;" + parametres.get(CHAMP_NOM) + DELIMITEUR_CHAMP + parametres.get(CHAMP_DESCRIPTION) + DELIMITEUR_CHAMP + parametres.get(CHAMP_LIEU) + DELIMITEUR_CHAMP + parametres.get(CHAMP_SUPERFICIE) + DELIMITEUR_FIN;
296  break;
297 
299  if(parametres.size() >= NB_CHAMPS_DISPONIBILITE && parametres.size() <= (NB_CHAMPS_DISPONIBILITE+1))
300  {
301  if (parametres.get(0).equals("0"))
302  trame = DELIMITEUR_EN_TETE + "SET;3;" + parametres.get(0) + DELIMITEUR_FIN;
303  else
304  trame = DELIMITEUR_EN_TETE + "SET;3;" + parametres.get(0) + ";" + parametres.get(1) + DELIMITEUR_FIN;
305  }
306  break;
307 
308  default:
309  Log.d(TAG, "fabriquerTrameModification() : type de trame inconnu !");
310  }
311 
312  Log.d(TAG,"fabriquerTrameModification() trame = " + trame);
313 
314  return trame;
315  }
static final int MODIFICATION_INFORMATIONS
static final String DELIMITEUR_FIN
static final int MODIFICATION_DISPONIBILITE
static final int NB_CHAMPS_DISPONIBILITE
static final String DELIMITEUR_CHAMP
static final String TAG
TAG pour les logs.
static final String DELIMITEUR_EN_TETE

◆ recevoir()

void com.lasalle.meeting.Communication.recevoir ( )

Recevoir les trames des portiers.

Définition à la ligne 167 du fichier Communication.java.

Références com.lasalle.meeting.Communication.envoyerMessage(), et com.lasalle.meeting.Communication.verifierTrame().

Référencé par com.lasalle.meeting.Communication.run().

168  {
169  byte[] reception = new byte[1024];
170 
171  while (socket != null && !socket.isClosed())
172  {
173  try
174  {
175  final DatagramPacket paquetRecu = new DatagramPacket(reception, reception.length);
176  socket.receive(paquetRecu);
177  final String donnees = new String(paquetRecu.getData(), paquetRecu.getOffset(), paquetRecu.getLength());
178  Log.d(TAG, "Réception [" + paquetRecu.getAddress().getHostAddress() + ":" + paquetRecu.getPort() + "] -> " + donnees);
179 
180  if(verifierTrame(donnees))
181  {
182  // Envoie les données reçues à l'activité
183  envoyerMessage(TYPE_RECEPTION, paquetRecu.getAddress().getHostAddress(), paquetRecu.getPort(), donnees);
184  }
185  }
186  catch (Exception e)
187  {
188  e.printStackTrace();
189  Log.d(TAG, "Erreur réception !");
190  }
191  }
192 
193  Log.d(TAG, "recevoir()");
194  }
void envoyerMessage(int type, String adresse, int port, String donnees)
Envoie un message.
boolean verifierTrame(String trame)
Vérifie la trame.
static final int TYPE_RECEPTION
Code du message indiquant une réception de données.
static final String TAG
TAG pour les logs.
DatagramSocket socket
Socket UDP.

◆ recupererTypeTrame()

static int com.lasalle.meeting.Communication.recupererTypeTrame ( String []  champs)
static

Détermine le type de trame.

Paramètres
champstableau contenant les champs de la trame
Renvoie
typeTrame le type de trame

Définition à la ligne 353 du fichier Communication.java.

Références com.lasalle.meeting.Communication.DEMANDE_DISPONIBILITE, com.lasalle.meeting.Communication.DEMANDE_INFORMATIONS, com.lasalle.meeting.Communication.MODIFICATION_DISPONIBILITE, com.lasalle.meeting.Communication.NB_CHAMPS_DEMANDE_DISPONIBILITE, com.lasalle.meeting.Communication.NB_CHAMPS_DEMANDE_INFORMATIONS, com.lasalle.meeting.Communication.NB_CHAMPS_RETOUR_MODIFICATION_DISPONIBILITE, et com.lasalle.meeting.Communication.TRAME_INCONNUE.

354  {
355  int typeTrame = Communication.TRAME_INCONNUE;
356 
357  switch(champs.length)
358  {
359  case Communication.NB_CHAMPS_DEMANDE_INFORMATIONS:
360  Log.d(TAG, "handleMessage() Trame DEMANDE_INFORMATIONS");
361  typeTrame = Communication.DEMANDE_INFORMATIONS;
362  break;
363  case Communication.NB_CHAMPS_DEMANDE_DISPONIBILITE:
364  Log.d(TAG, "handleMessage() Trame DEMANDE_DISPONIBILITE");
365  typeTrame = Communication.DEMANDE_DISPONIBILITE;
366  break;
367  case Communication.NB_CHAMPS_RETOUR_MODIFICATION_DISPONIBILITE:
368  Log.d(TAG, "handleMessage() Trame MODIFICATION_DISPONIBILITE");
369  typeTrame = Communication.MODIFICATION_DISPONIBILITE;
370  }
371 
372  return typeTrame;
373  }
static final String TAG
TAG pour les logs.

◆ run()

void com.lasalle.meeting.Communication.run ( )

Assure la réception des trames.

Définition à la ligne 342 du fichier Communication.java.

Références com.lasalle.meeting.Communication.recevoir().

Référencé par com.lasalle.meeting.Communication.envoyer().

343  {
344  Log.d(TAG, "Démarre le thread réception");
345  recevoir();
346  }
static final String TAG
TAG pour les logs.
void recevoir()
Recevoir les trames des portiers.

◆ setHandler()

void com.lasalle.meeting.Communication.setHandler ( Handler  handler)

Définition à la ligne 113 du fichier Communication.java.

Références com.lasalle.meeting.Communication.handler.

Référencé par com.lasalle.meeting.EspaceDeTravail.initialiserCommunication().

114  {
115  this.handler = handler;
116  }
Handler handler
Handler permettant l&#39;échange de Message avec l&#39;activité

◆ verifierTrame()

boolean com.lasalle.meeting.Communication.verifierTrame ( String  trame)

Vérifie la trame.

Paramètres
tramela trame à vérifier

Définition à la ligne 321 du fichier Communication.java.

Référencé par com.lasalle.meeting.Communication.recevoir().

322  {
323  Log.d(TAG, "verifierTrame() " + (trame.startsWith(DELIMITEUR_EN_TETE) && trame.endsWith(DELIMITEUR_FIN)));
324 
325  return (trame.startsWith(DELIMITEUR_EN_TETE) && trame.endsWith(DELIMITEUR_FIN));
326  }
static final String DELIMITEUR_FIN
static final String TAG
TAG pour les logs.
static final String DELIMITEUR_EN_TETE

Documentation des données membres

◆ adresseIP

InetAddress com.lasalle.meeting.Communication.adresseIP = null
private

Adresse IP du portier.

Les attributs

Définition à la ligne 39 du fichier Communication.java.

◆ adresseMulticast

final String com.lasalle.meeting.Communication.adresseMulticast = "239.0.0.42"
static

Adresse multicast des portiers.

Définition à la ligne 40 du fichier Communication.java.

Référencé par com.lasalle.meeting.IHMMeeting.demarrerReseau(), et com.lasalle.meeting.IHMMeeting.initialiserEspacesDeTravail().

◆ CHAMP_CODE

final int com.lasalle.meeting.Communication.CHAMP_CODE = 1
static

Définition à la ligne 73 du fichier Communication.java.

Référencé par com.lasalle.meeting.EspaceDeTravail.extraireCode().

◆ CHAMP_DESCRIPTION

final int com.lasalle.meeting.Communication.CHAMP_DESCRIPTION = 1
static

Définition à la ligne 67 du fichier Communication.java.

Référencé par com.lasalle.meeting.EspaceDeTravail.extraireInformations().

◆ CHAMP_DISPONIBILITE

final int com.lasalle.meeting.Communication.CHAMP_DISPONIBILITE = 4
static

Définition à la ligne 70 du fichier Communication.java.

Référencé par com.lasalle.meeting.EspaceDeTravail.extraireInformations().

◆ CHAMP_INDICE_DE_CONFORT

final int com.lasalle.meeting.Communication.CHAMP_INDICE_DE_CONFORT = 5
static

Définition à la ligne 71 du fichier Communication.java.

Référencé par com.lasalle.meeting.EspaceDeTravail.extraireInformations().

◆ CHAMP_LIEU

final int com.lasalle.meeting.Communication.CHAMP_LIEU = 2
static

Définition à la ligne 68 du fichier Communication.java.

Référencé par com.lasalle.meeting.EspaceDeTravail.extraireInformations().

◆ CHAMP_NOM

final int com.lasalle.meeting.Communication.CHAMP_NOM = 0
static

◆ CHAMP_SUPERFICIE

final int com.lasalle.meeting.Communication.CHAMP_SUPERFICIE = 3
static

Définition à la ligne 69 du fichier Communication.java.

Référencé par com.lasalle.meeting.EspaceDeTravail.extraireInformations().

◆ CHAMP_TEMPERATURE

final int com.lasalle.meeting.Communication.CHAMP_TEMPERATURE = 6
static

Définition à la ligne 72 du fichier Communication.java.

Référencé par com.lasalle.meeting.EspaceDeTravail.extraireInformations().

◆ DELIMITEUR_CHAMP

final String com.lasalle.meeting.Communication.DELIMITEUR_CHAMP = ";"
static

Définition à la ligne 52 du fichier Communication.java.

◆ DELIMITEUR_EN_TETE

final String com.lasalle.meeting.Communication.DELIMITEUR_EN_TETE = "$"
static

Protocole

Définition à la ligne 51 du fichier Communication.java.

◆ DELIMITEUR_FIN

final String com.lasalle.meeting.Communication.DELIMITEUR_FIN = "\r\n"
static

◆ DEMANDE_DISPONIBILITE

final int com.lasalle.meeting.Communication.DEMANDE_DISPONIBILITE = 3
static

◆ DEMANDE_INFORMATIONS

◆ handler

Handler com.lasalle.meeting.Communication.handler
private

Handler permettant l'échange de Message avec l'activité

Définition à la ligne 46 du fichier Communication.java.

Référencé par com.lasalle.meeting.Communication.Communication(), et com.lasalle.meeting.Communication.setHandler().

◆ MODIFICATION_DISPONIBILITE

◆ MODIFICATION_INFORMATIONS

final int com.lasalle.meeting.Communication.MODIFICATION_INFORMATIONS = 1
static

◆ mutex

final ReentrantLock com.lasalle.meeting.Communication.mutex = new ReentrantLock()
private

Définition à la ligne 43 du fichier Communication.java.

◆ NB_CHAMPS_DEMANDE_DISPONIBILITE

final int com.lasalle.meeting.Communication.NB_CHAMPS_DEMANDE_DISPONIBILITE = 1
static

Définition à la ligne 63 du fichier Communication.java.

Référencé par com.lasalle.meeting.Communication.recupererTypeTrame().

◆ NB_CHAMPS_DEMANDE_INFORMATIONS

final int com.lasalle.meeting.Communication.NB_CHAMPS_DEMANDE_INFORMATIONS = 7
static

◆ NB_CHAMPS_DISPONIBILITE

final int com.lasalle.meeting.Communication.NB_CHAMPS_DISPONIBILITE = 1
static

Définition à la ligne 60 du fichier Communication.java.

◆ NB_CHAMPS_DISPONIBILITE_CODE

final int com.lasalle.meeting.Communication.NB_CHAMPS_DISPONIBILITE_CODE = 2
static

Définition à la ligne 61 du fichier Communication.java.

◆ NB_CHAMPS_INFORMATIONS

final int com.lasalle.meeting.Communication.NB_CHAMPS_INFORMATIONS = 4
static

Définition à la ligne 59 du fichier Communication.java.

Référencé par com.lasalle.meeting.Communication.fabriquerTrameModification().

◆ NB_CHAMPS_MODIFICATION_DISPONIBILITE

final int com.lasalle.meeting.Communication.NB_CHAMPS_MODIFICATION_DISPONIBILITE = 2
static

Définition à la ligne 64 du fichier Communication.java.

Référencé par com.lasalle.meeting.EspaceDeTravail.extraireCode().

◆ NB_CHAMPS_RETOUR_MODIFICATION_DISPONIBILITE

final int com.lasalle.meeting.Communication.NB_CHAMPS_RETOUR_MODIFICATION_DISPONIBILITE = 3
static

Définition à la ligne 65 du fichier Communication.java.

Référencé par com.lasalle.meeting.Communication.recupererTypeTrame().

◆ PORT

final int com.lasalle.meeting.Communication.PORT = 5000
staticprivate

Port d'écoute des portiers.

Définition à la ligne 41 du fichier Communication.java.

◆ queueEmission

LinkedBlockingQueue<DatagramPacket> com.lasalle.meeting.Communication.queueEmission
private

Queue d'émission des trames.

Définition à la ligne 45 du fichier Communication.java.

◆ socket

DatagramSocket com.lasalle.meeting.Communication.socket = null
private

Socket UDP.

Définition à la ligne 44 du fichier Communication.java.

◆ TAG

final String com.lasalle.meeting.Communication.TAG = "_Communication"
staticprivate

TAG pour les logs.

Les constantes

Définition à la ligne 34 du fichier Communication.java.

◆ TRAME_INCONNUE

final int com.lasalle.meeting.Communication.TRAME_INCONNUE = -1
static

Définition à la ligne 54 du fichier Communication.java.

Référencé par com.lasalle.meeting.Communication.recupererTypeTrame().

◆ TYPE_RECEPTION

final int com.lasalle.meeting.Communication.TYPE_RECEPTION = 1
static

Code du message indiquant une réception de données.

Définition à la ligne 42 du fichier Communication.java.


La documentation de cette classe a été générée à partir du fichier suivant :