mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
la til en function som lar deg sendet et objekt til bare en client
This commit is contained in:
parent
b1892e3447
commit
ce97c92325
@ -53,8 +53,13 @@ public class RoboRallyServer {
|
|||||||
public void sendToAllClients(Object object) {
|
public void sendToAllClients(Object object) {
|
||||||
server.sendToAllTCP(object);
|
server.sendToAllTCP(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void sendToClient(Connection connection, Object object){
|
||||||
|
server.sendToTCP(connection.getID(),object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This listener handles all sending and responses for the server
|
* This listener handles all sending and responses for the server
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user