A B C D E G I K L M O P R S T V W

S

sc - Variable in class org.javagamesfactory.nioservers.StringBasedClient
 
selector - Variable in class org.javagamesfactory.nioservers.StringBasedServer
 
sendMessage(String) - Method in class org.javagamesfactory.nioservers.StringBasedClient
Blocking send messages to the server; not thread-safe!
sendStaggeredMessage(String) - Method in class org.javagamesfactory.nioservers.StringBasedClient
For testing only - deliberately splits messages into two pieces and sends them separately - this is VERY VERY useful for testing whether a JVM on the other end using NIO is correctly merging packets into complete messages (NB: even a NIO server in blocking mode will still occasionally receive split messages due to the internet)
serverHostname - Variable in class org.javagamesfactory.nioservers.StringBasedClient
 
ServerInfo - Class in org.javagamesfactory.nioservers
Contains all the metadata representing a single server instance
ServerInfo(String, InetAddress, int) - Constructor for class org.javagamesfactory.nioservers.ServerInfo
Creates a new record representing a server
serverPort - Variable in class org.javagamesfactory.nioservers.StringBasedClient
 
ServerState - Enum in org.javagamesfactory.nioservers
Represents the core internal state of any StringBasedServer (or subclass)
setNumConnectedChannels(int) - Method in interface org.javagamesfactory.nioservers.iServerInfo
 
setNumConnectedChannels(int) - Method in class org.javagamesfactory.nioservers.ServerInfo
Update the number of connected clients (should be called by the server implementation automatically)
setServerHostname(String) - Method in class org.javagamesfactory.nioservers.StringBasedClient
Configures the hostname that the connector will connect to
setServerPort(int) - Method in class org.javagamesfactory.nioservers.StringBasedClient
Configures the port that the connector will connect to
SimpleServerDemo - Class in org.javagamesfactory.nioservers
This is the class that runs automatically if you run the jar-file as an executable
SimpleServerDemo(int) - Constructor for class org.javagamesfactory.nioservers.SimpleServerDemo
Delegates directly to super-constructor with same signature
start() - Method in class org.javagamesfactory.nioservers.ResponseListener
Starts a new thread for this listener
start() - Method in class org.javagamesfactory.nioservers.StringBasedServer
Starts the server; must be called or else the server won't do anything.
status - Variable in class org.javagamesfactory.nioservers.StringBasedServer
 
stop() - Method in class org.javagamesfactory.nioservers.StringBasedServer
Stops the server - not immediately (attempts immediate stop, but the server will have to finish some processing and close down some native OS resources, which takes time)
StringBasedClient - Class in org.javagamesfactory.nioservers
A simple blocking client class that uses NIO over TCP, making it easier to interface with / share code with NIO servers you write.
StringBasedClient() - Constructor for class org.javagamesfactory.nioservers.StringBasedClient
Simple constructor - remember that you MUST also call the setServerHostname and setServerPort methods before calling connect
StringBasedClient(int) - Constructor for class org.javagamesfactory.nioservers.StringBasedClient
Remember that you MUST also call the setServerHostname and setServerPort methods before calling connect
StringBasedClient(String, int, int) - Constructor for class org.javagamesfactory.nioservers.StringBasedClient
Fully configures the connector, so that you can safely immediately call connect
StringBasedServer - Class in org.javagamesfactory.nioservers
Base class that provides the core of a non-blocking NIO-driven server which can send and receive Strings seamlessly.
StringBasedServer(int) - Constructor for class org.javagamesfactory.nioservers.StringBasedServer
Creates a server using the default byte buffer size
StringBasedServer(int, int) - Constructor for class org.javagamesfactory.nioservers.StringBasedServer
Creates a server with a custom byte-buffer size, and ignores the defaultByteBufferSize

A B C D E G I K L M O P R S T V W