Skip navigation links
A B C D E G I L N O P R S W 

A

available() - Method in interface org.macroing.cit.network.BinaryMessage
Returns the amount of bytes that can be read without blocking.

B

BinaryMessage - Interface in org.macroing.cit.network
A binary Message that can be sent to a MessageChannel.
BinaryMessage.Builder - Interface in org.macroing.cit.network
Builder is used for building BinaryMessage instances.
BinaryMessages - Class in org.macroing.cit.network
This class consists exclusively of static methods that operates on or returns BinaryMessages.
build() - Method in interface org.macroing.cit.network.BinaryMessage.Builder
Returns a new BinaryMessage based on the data provided by this Builder.

C

close() - Method in interface org.macroing.cit.network.Session
Closes this Session.

D

decode(Message) - Method in interface org.macroing.cit.network.Protocol
Returns a Message representing the decoded version of another Message.

E

encode(Message) - Method in interface org.macroing.cit.network.Protocol
Returns a Message representing the encoded version of another Message.

G

getBytes() - Method in interface org.macroing.cit.network.BinaryMessage
Returns an array of bytes.
getConfiguration() - Method in interface org.macroing.cit.network.Session
Returns the Configuration used by this Session instance.
getIdentifier() - Method in interface org.macroing.cit.network.BinaryMessage
Returns the identifier assigned to this BinaryMessage.
getInputMessageChannel() - Method in interface org.macroing.cit.network.Session
Returns the MessageChannel that is used for input.
getMessage() - Method in class org.macroing.cit.network.SessionMessageAdapter
Returns the Message assigned to this SessionMessageAdapter.
getOutputMessageChannel() - Method in interface org.macroing.cit.network.Session
Returns the MessageChannel that is used for output.
getSession() - Method in interface org.macroing.cit.network.SessionMessage
Returns the Session assigned to this SessionMessage.
getSession() - Method in class org.macroing.cit.network.SessionMessageAdapter
Returns the Session assigned to this SessionMessageAdapter.

I

isHeadless() - Method in interface org.macroing.cit.network.BinaryMessage
Returns true if, and only if, this BinaryMessage can be considered head-less, false otherwise.

L

length() - Method in interface org.macroing.cit.network.BinaryMessage
Returns the length of this BinaryMessage at this time.

N

newBinaryMessageBuilder() - Static method in class org.macroing.cit.network.BinaryMessages
Returns a new BinaryMessage.Builder instance.
newBinaryMessageBuilder(int) - Static method in class org.macroing.cit.network.BinaryMessages
Returns a new BinaryMessage.Builder instance.
newIdentifier(int) - Method in interface org.macroing.cit.network.BinaryMessage
Returns a new BinaryMessage with the same content, but with a new identifier.
newInstance(Session, Message) - Static method in class org.macroing.cit.network.SessionMessageAdapter
Returns a new SessionMessageAdapter for the given values.
newMessage(Message) - Method in class org.macroing.cit.network.SessionMessageAdapter
Returns a new SessionMessageAdapter with the current Session, but with a new Message.
newProtocol() - Static method in class org.macroing.cit.network.Protocols
Returns a new instance of a simple Protocol.

O

org.macroing.cit.network - package org.macroing.cit.network
Provides classes and interfaces common to network communication.

P

Protocol - Interface in org.macroing.cit.network
A contract for a protocol.
Protocols - Class in org.macroing.cit.network
This class consists exclusively of static methods that operates on or returns Protocols.

R

readBits(int) - Method in interface org.macroing.cit.network.BinaryMessage
Reads numberOfBits bits.
readByte() - Method in interface org.macroing.cit.network.BinaryMessage
Reads a byte as an int.
readInt() - Method in interface org.macroing.cit.network.BinaryMessage
Reads an int.
readLong() - Method in interface org.macroing.cit.network.BinaryMessage
Reads a long.
readShort() - Method in interface org.macroing.cit.network.BinaryMessage
Reads a short as an int.
readString() - Method in interface org.macroing.cit.network.BinaryMessage
Reads a String with length available().
readString(int) - Method in interface org.macroing.cit.network.BinaryMessage
Reads a String with length length.

S

Session - Interface in org.macroing.cit.network
A Session represents the connection between two end-points.
sessionClosed(Session) - Method in interface org.macroing.cit.network.SessionObserver
Called when a Session is closed.
SessionMessage - Interface in org.macroing.cit.network
A Session-aware Message that can be sent to a MessageChannel.
SessionMessageAdapter - Class in org.macroing.cit.network
A Session-aware Message adapter that can be sent to a MessageChannel.
SessionObserver - Interface in org.macroing.cit.network
A SessionObserver is used for observing changes made to a Session.
sessionOpened(Session) - Method in interface org.macroing.cit.network.SessionObserver
Called when a Session is opened.

W

writeBits(int, int) - Method in interface org.macroing.cit.network.BinaryMessage.Builder
Writes value as numberOfBits bits.
writeByte(int) - Method in interface org.macroing.cit.network.BinaryMessage.Builder
Writes value as a byte.
writeInt(int) - Method in interface org.macroing.cit.network.BinaryMessage.Builder
Writes value as an int.
writeLong(long) - Method in interface org.macroing.cit.network.BinaryMessage.Builder
Writes value as a long.
writeShort(int) - Method in interface org.macroing.cit.network.BinaryMessage.Builder
Writes value as a short.
A B C D E G I L N O P R S W 
Skip navigation links