|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPC
This interface allows the game to use inter process communication to the clients connected to the game. Through the use of this interface the implemenation specific details are hidden (whether they be tcp/ip or some other mechanism is irrelevant).
Method Summary | |
---|---|
void |
connect(IPCHandle handle,
Id client)
Connect the handle with the specified Id. |
void |
disconnect(IPCHandle handle)
Disconnect the client. |
IPCRequest |
receive()
Receive an event from a client. |
void |
send(Id recipient,
GameEvent e)
Send an event to the specified client. |
void |
sendToAll(GameEvent e)
Send the event to all clients. |
Method Detail |
---|
void send(Id recipient, GameEvent e)
void sendToAll(GameEvent e)
send
multiple times for all clients.
IPCRequest receive()
void connect(IPCHandle handle, Id client)
void disconnect(IPCHandle handle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |