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

A

ask(String, Serializable) - Method in interface ch.awae.netcode.NetcodeClient
Sends a question to another client and awaits its response.

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.
ChannelInformation - Class in ch.awae.netcode
 
ChannelInformation() - Constructor for class ch.awae.netcode.ChannelInformation
 
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
 
ClientQuestionHandler - Interface in ch.awae.netcode
Handler for ClientQuestions (introduced in netcode 2.0.0).
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
 
copy() - Method in class ch.awae.netcode.NetcodeClientFactory
 
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.
getChannelInformation() - Method in interface ch.awae.netcode.NetcodeClient
Requests channel information for the current channel from the server.
getDefault() - Static method in class ch.awae.netcode.ChannelConfiguration
 
getEventHandler() - Method in interface ch.awae.netcode.NetcodeClient
Returns the current event handler or null if none is currently set.
getMessageHandler() - Method in interface ch.awae.netcode.NetcodeClient
Returns the current message handler or null if none is currently set.
getPayload() - Method in interface ch.awae.netcode.Message
The message payload.
getPublicChannels() - Method in interface ch.awae.netcode.NetcodeClient
Requests a list of all public channels from the server.
getQuestionHandler() - Method in interface ch.awae.netcode.NetcodeClient
Returns the current question handler or null if none is currently set.
getTime() - Method in interface ch.awae.netcode.Message
The time the message was created.
getTimeout() - Method in interface ch.awae.netcode.NetcodeClient
returns the current timeout value in milliseconds
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
 
handlePrivateMessage(Message, String) - Method in interface ch.awae.netcode.MessageHandler
handles private messages Since 2.0.0 it is possible to define separate handlers for private messages.
handleQuestion(String, Serializable) - Method in interface ch.awae.netcode.ClientQuestionHandler
 

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.

L

listPublicChannels() - Method in class ch.awae.netcode.NetcodeClientFactory
get a list of all public Netcode channels with at least one free slot.

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
Replaces the event handler.
setEventHandler(ChannelEventHandler) - Method in class ch.awae.netcode.NetcodeClientFactory
 
setMaxClients(int) - Method in class ch.awae.netcode.NetcodeServerFactory
specifies the connection backlog.
setMessageHandler(MessageHandler) - Method in interface ch.awae.netcode.NetcodeClient
Replaces the message handler.
setMessageHandler(MessageHandler) - Method in class ch.awae.netcode.NetcodeClientFactory
 
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.
setQuestionHandler(ClientQuestionHandler) - Method in interface ch.awae.netcode.NetcodeClient
Replaces the question handler.
setQuestionHandler(ClientQuestionHandler) - Method in class ch.awae.netcode.NetcodeClientFactory
 
setTimeout(long) - Method in interface ch.awae.netcode.NetcodeClient
Sets a new timeout for server commands and client questions.
setTimeout(long) - Method in class ch.awae.netcode.NetcodeClientFactory
Sets a new timeout value to be used for server commands and client questions.
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.

U

UnsupportedFeatureException - Exception in ch.awae.netcode
Exception indicating that a required feature is not supported by the server.
UnsupportedFeatureException(String) - Constructor for exception ch.awae.netcode.UnsupportedFeatureException
 

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.
A C D G H I J L M N R S T U V 
Skip navigation links

Copyright © 2018. All Rights Reserved.