Public Member Functions | |
void | run () |
Package Functions | |
Connections (Network networkSystem, ServerSocket server) | |
boolean | isActive () |
void | addCommand (NetworkCommand command) |
void | addConnection (Socket socket) |
void | destroy () |
void | update () |
Runnable that accepts client connections, queues NetworkCommand
s, and sends the queued commands over the network.
Definition at line 20 of file Connections.java.
|
package |
Constructs a new Server object.
networkSystem | reference to the network system. |
server | reference to an instantiated server socket. |
Definition at line 41 of file Connections.java.
|
package |
Queues a network command that will be sent to the other players.
command | the network command to send. |
Definition at line 62 of file Connections.java.
|
package |
Adds a connection to the list.
socket | a connected socket. |
Definition at line 71 of file Connections.java.
|
package |
Closes all active connections.
Definition at line 79 of file Connections.java.
|
package |
Specifies whether the Connections object is active.
Definition at line 53 of file Connections.java.
void bubolo.net.Connections.run | ( | ) |
Accepts connections from clients, and adds them to the client list.
Definition at line 125 of file Connections.java.
References bubolo.net.Network.isActive().
|
package |
Sends queued network commands across the network.
Definition at line 91 of file Connections.java.