Skip navigation links
C D G H I J M N R S T V 

C

ch.awae.netcode - package ch.awae.netcode
 
ChannelConfiguration - Class in ch.awae.netcode
Configuration Object for channels.
ChannelConfiguration() - Constructor for class ch.awae.netcode.ChannelConfiguration
 
ChannelEventHandler - Interface in ch.awae.netcode
Event handler receiving channel events such as clients joining or leaving.
ChannelUserLimitReachedException - Exception in ch.awae.netcode
Exception indicating that a channel cannot be joined because is already full.
ChannelUserLimitReachedException(String) - Constructor for exception ch.awae.netcode.ChannelUserLimitReachedException
 
clientJoined(String) - Method in interface ch.awae.netcode.ChannelEventHandler
 
clientLeft(String) - Method in interface ch.awae.netcode.ChannelEventHandler
 
close() - Method in interface ch.awae.netcode.NetcodeServer
Terminates the server and disconnects all connected clients.
ConnectionException - Exception in ch.awae.netcode
Exception indicating that a connection with the server could not be established.
ConnectionException(String) - Constructor for exception ch.awae.netcode.ConnectionException
 
createChannel(String, ChannelConfiguration) - Method in class ch.awae.netcode.NetcodeClientFactory
Creates a new Netcode channel.

D

disconnect() - Method in interface ch.awae.netcode.NetcodeClient
Disconnect and terminate the client.
DuplicateUserIdException - Exception in ch.awae.netcode
Exception indicating that a channel could not be joined because a user with the requested userId does already exist.
DuplicateUserIdException(String) - Constructor for exception ch.awae.netcode.DuplicateUserIdException
 

G

get() - Method in class ch.awae.netcode.RandomStringGenerator
 
getChannelConfiguration() - Method in interface ch.awae.netcode.NetcodeClient
Get the configuration of the connected channel.
getDefault() - Static method in class ch.awae.netcode.ChannelConfiguration
 
getPayload() - Method in interface ch.awae.netcode.Message
The message payload.
getTime() - Method in interface ch.awae.netcode.Message
The time the message was created.
getUserId() - Method in interface ch.awae.netcode.Message
The userId of the sending client.
getUserId() - Method in interface ch.awae.netcode.NetcodeClient
Get the userId of this client.
getUsers() - Method in interface ch.awae.netcode.NetcodeClient
Get a list of all members of the channel.

H

handleMessage(Message) - Method in interface ch.awae.netcode.MessageHandler
 

I

IncompatibleServerException - Exception in ch.awae.netcode
Exception indicating that the connection could not be established due to an incompatibility between the client and the server version.
IncompatibleServerException(String) - Constructor for exception ch.awae.netcode.IncompatibleServerException
 
InvalidAppIdException - Exception in ch.awae.netcode
Exception indicating that the provided application id was rejected by the server.
InvalidAppIdException(String) - Constructor for exception ch.awae.netcode.InvalidAppIdException
 
InvalidChannelIdException - Exception in ch.awae.netcode
Exception indicating that there does not exist a channel with the provided channel id for the provided application id.
InvalidChannelIdException(String) - Constructor for exception ch.awae.netcode.InvalidChannelIdException
 
InvalidRequestException - Exception in ch.awae.netcode
Exception indicating the channel creation / joining request provided by the client was invalid.
InvalidRequestException(String) - Constructor for exception ch.awae.netcode.InvalidRequestException
 
isPrivateMessage() - Method in interface ch.awae.netcode.Message
Indicates if the message has been sent privately.

J

joinChannel(String, String) - Method in class ch.awae.netcode.NetcodeClientFactory
Joins an existing Netcode channel.

M

Message - Interface in ch.awae.netcode
Base interface for received messages.
MessageHandler - Interface in ch.awae.netcode
Interface for asynchronously handling messages.

N

NetcodeClient - Interface in ch.awae.netcode
The client instance for the Netcode system.
NetcodeClientFactory - Class in ch.awae.netcode
Factory for creating Netcode clients.
NetcodeClientFactory(String, int, String) - Constructor for class ch.awae.netcode.NetcodeClientFactory
Creates a new factory with the given host and port information and appId.
NetcodeServer - Interface in ch.awae.netcode
A Netcode server instance.
NetcodeServerFactory - Class in ch.awae.netcode
Factory for creating netcode server instances.
NetcodeServerFactory(int) - Constructor for class ch.awae.netcode.NetcodeServerFactory
Creates a new factory instance with a specified port number.

R

RandomStringGenerator - Class in ch.awae.netcode
A generator for generating strings of the pattern [a-zA-Z0-9]{n}.
RandomStringGenerator(int) - Constructor for class ch.awae.netcode.RandomStringGenerator
 
receive() - Method in interface ch.awae.netcode.NetcodeClient
Receive the next message synchronously and wait if no message is ready.
runAfterBind(Consumer<Socket>) - Method in class ch.awae.netcode.NetcodeClientFactory
Adds a function to the post-bind queue.
runAfterBind(Consumer<ServerSocket>) - Method in class ch.awae.netcode.NetcodeServerFactory
Adds a function to the post-bind queue.

S

SecurityMode - Enum in ch.awae.netcode
Defines the security constraints for the selected SocketMode.
send(Serializable) - Method in interface ch.awae.netcode.NetcodeClient
Send the given object to all members of the channel
sendPrivately(String, Serializable) - Method in interface ch.awae.netcode.NetcodeClient
Send the given object to the member of the channel with the given userId.
setAppIdValidator(Predicate<String>) - Method in class ch.awae.netcode.NetcodeServerFactory
Defines an application id validator.
setChannelIdProvider(Supplier<String>) - Method in class ch.awae.netcode.NetcodeServerFactory
Defines a generator for channel ids.
setEventHandler(ChannelEventHandler) - Method in interface ch.awae.netcode.NetcodeClient
 
setMaxClients(int) - Method in class ch.awae.netcode.NetcodeServerFactory
specifies the connection backlog.
setMessageHandler(MessageHandler) - Method in interface ch.awae.netcode.NetcodeClient
 
setMode(SocketMode, SecurityMode) - Method in class ch.awae.netcode.NetcodeClientFactory
Specifies both the socket mode and the security mode to use for new connections.
setMode(SocketMode, SecurityMode) - Method in class ch.awae.netcode.NetcodeServerFactory
Specifies both the socket mode and the security mode to use for new connections.
SocketMode - Enum in ch.awae.netcode
Defines the mode of operation for the underlying sockets.
start() - Method in class ch.awae.netcode.NetcodeServerFactory
Start the server

T

tryReceive() - Method in interface ch.awae.netcode.NetcodeClient
Receive the next message synchronously if it exists.

V

valueOf(String) - Static method in enum ch.awae.netcode.SecurityMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.awae.netcode.SocketMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum ch.awae.netcode.SecurityMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.awae.netcode.SocketMode
Returns an array containing the constants of this enum type, in the order they are declared.
C D G H I J M N R S T V 
Skip navigation links

Copyright © 2018. All Rights Reserved.