|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectNetwork.Network
public class Network
Class Network Repertorie toutes les connections actives
| Field Summary | |
|---|---|
private Connection[] |
connections
|
| Constructor Summary | |
|---|---|
Network()
|
|
| Method Summary | |
|---|---|
void |
addConnection(Connection c)
Ajoute une connection dans le tableau des connexions |
void |
closeConnections()
Ferme toutes les connections en cours |
Connection[] |
getConnections()
Get the value of connections |
void |
removeConnection(int id)
Enlève la connection id dans le tableau des connexions |
void |
send(int id,
java.lang.String data)
Envoie la chaine data à travers la connexion établie id |
void |
send(java.lang.String data)
Envoie la chaine data à travers toutes les connexions établies |
void |
setConnections(Connection[] value)
Set the value of connections |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Connection[] connections
| Constructor Detail |
|---|
public Network()
| Method Detail |
|---|
public void addConnection(Connection c)
c - la connection ajoutéepublic void closeConnections()
public Connection[] getConnections()
public void removeConnection(int id)
id - l'identifiant de la connection à enlevée
public void send(int id,
java.lang.String data)
id - de la connexiondata - public void send(java.lang.String data)
data - public void setConnections(Connection[] value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||