Skip navigation links
A C D E G I L M R S T V 

A

addListener(SocketListener) - Method in class de.ocarthon.libArcus.ArcusSocket
Adds a listener to the internal List.
ArcusSocket - Class in de.ocarthon.libArcus
ArcusSocket creates a socket in a thread to send and receive message based on the Protocol Buffers library developed by Google.
ArcusSocket() - Constructor for class de.ocarthon.libArcus.ArcusSocket
 

C

close() - Method in class de.ocarthon.libArcus.ArcusSocket
Closes the socket.
connect(String, int) - Method in class de.ocarthon.libArcus.ArcusSocket
Connects to a remote address.

D

de.ocarthon.libArcus - package de.ocarthon.libArcus
 

E

Error - Class in de.ocarthon.libArcus
 
Error(Error.ErrorCode, String) - Constructor for class de.ocarthon.libArcus.Error
 
Error(Error.ErrorCode, String, boolean) - Constructor for class de.ocarthon.libArcus.Error
 
error(ArcusSocket, Error) - Method in interface de.ocarthon.libArcus.SocketListener
Fired when an error occurs on this socket
Error.ErrorCode - Enum in de.ocarthon.libArcus
 

G

getErrorCode() - Method in class de.ocarthon.libArcus.Error
 
getErrorMessage() - Method in class de.ocarthon.libArcus.Error
 
getPort() - Method in class de.ocarthon.libArcus.ArcusSocket
This will return the ports specified by calls to listen(int) or connect(String, int).
getSocketTimeout() - Method in class de.ocarthon.libArcus.ArcusSocket
Returns the time until the socket times out while connecting, reading or writing.
getState() - Method in class de.ocarthon.libArcus.ArcusSocket
Returns the current state the socket is in.

I

isFatal() - Method in class de.ocarthon.libArcus.Error
 

L

listen(int) - Method in class de.ocarthon.libArcus.ArcusSocket
Listens for a new incoming connection on the specified port.

M

messageReceived(ArcusSocket) - Method in interface de.ocarthon.libArcus.SocketListener
Fired when this socket received and correctly parsed a new message.

R

registerMessageType(Message) - Method in class de.ocarthon.libArcus.ArcusSocket
Registers a new message type to receive and parse messages of the same type later.
removeAllListeners() - Method in class de.ocarthon.libArcus.ArcusSocket
Removes all listeners from the internal list.
removeListener(SocketListener) - Method in class de.ocarthon.libArcus.ArcusSocket
Removes a listener from the internal list.
reset() - Method in class de.ocarthon.libArcus.ArcusSocket
Resets the socket and the socket's state to use it again.

S

sendMessage(Message) - Method in class de.ocarthon.libArcus.ArcusSocket
Adds a message to the internal send queue.
setSocketTimeout(int) - Method in class de.ocarthon.libArcus.ArcusSocket
Sets the time until the socket times out while connecting, reading or writing.
SocketListener - Interface in de.ocarthon.libArcus
To get notified about state changes, error or new messages of a ArcusSocket, a SocketListener can be added by calling addListener(SocketListener).
SocketState - Enum in de.ocarthon.libArcus
Represents all possible states a ArcusSocket can be in.
stateChanged(ArcusSocket, SocketState) - Method in interface de.ocarthon.libArcus.SocketListener
Fires when the state of this ArcusSocket changes

T

takeNextMessage() - Method in class de.ocarthon.libArcus.ArcusSocket
Polls the first message in the receive queue.

V

valueOf(String) - Static method in enum de.ocarthon.libArcus.Error.ErrorCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum de.ocarthon.libArcus.SocketState
Returns the enum constant of this type with the specified name.
values() - Static method in enum de.ocarthon.libArcus.Error.ErrorCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum de.ocarthon.libArcus.SocketState
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E G I L M R S T V 
Skip navigation links

Copyright © 2016. All rights reserved.