Interface TransportServer
- All Superinterfaces:
AutoCloseable
A server that communicates with a client over a transport protocol.
-
Method Summary
Modifier and TypeMethodDescriptionintaccept()Receive a move selection from the client.voidinitialize(TransportConfiguration config) Initialize the transport server.voidSend the given game state to the client.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
initialize
Initialize the transport server.- Parameters:
config- the configuration for the transport server
-
send
Send the given game state to the client.- Parameters:
state- the game state to send
-
accept
int accept()Receive a move selection from the client.- Returns:
- the move selection
-