A B C E F G I M P R S U V W _

A

accept() - Method in class us.ihmc.mockets.ServerMocket
Listens for a connection to be made and accepts it.
accept() - Method in class us.ihmc.mockets.StreamServerMocket
Accept a new connection and return an instance of Mocket that represents the local endpoint for the new connection.

B

bind(SocketAddress) - Method in class us.ihmc.mockets.Mocket
Binds the local end point to a particular address (interface) and port.
bind(SocketAddress) - Method in class us.ihmc.mockets.StreamMocket
Binds a specific socket address (IP and port) to the local endpoint.

C

cancel(boolean, boolean, int) - Method in class us.ihmc.mockets.Mocket
Cancels (deletes) previously enqueued messages that have been tagged with the specified tag.
cancel(int) - Method in class us.ihmc.mockets.Mocket.Sender
Cancels (deletes) previously enqueued messages that have been tagged with the specified tag.
close() - Method in class us.ihmc.mockets.Mocket
Closes the current open connection to a remote endpoint.
close() - Method in class us.ihmc.mockets.MocketInputStream
 
close() - Method in class us.ihmc.mockets.MocketOutputStream
 
close() - Method in class us.ihmc.mockets.ServerMocket
Closes the current open connection to a remote endpoint.
close() - Method in class us.ihmc.mockets.StreamMocket
Closes the connection.
close() - Method in class us.ihmc.mockets.StreamServerMocket
Close the server mocket and no longer accept new incoming connections.
connect(String, int) - Method in class us.ihmc.mockets.Mocket
Attempts to connect to a ServerMocket at the specified remote host on the specified remote port.
connect(String, int, long) - Method in class us.ihmc.mockets.Mocket
Attempts to connect to a ServerMocket at the specified remote host on the specified remote port, and choosing the connection attempt timeout.
connect(InetSocketAddress) - Method in class us.ihmc.mockets.Mocket
Attempts to connect to a ServerMocket, address and port are specified using an IP Socket Address.
connect(SocketAddress, long) - Method in class us.ihmc.mockets.Mocket
Attempts to connect to a ServerMocket, address and port are specified as a Socket Address.
connect(InetAddress, int) - Method in class us.ihmc.mockets.StreamMocket
Opens a connection to the specified remote address and port.
connect(InetAddress, int, int) - Method in class us.ihmc.mockets.StreamMocket
Opens a connection to the specified remote address and port.

E

enableCrossSequecing(boolean) - Method in class us.ihmc.mockets.Mocket
Enables or disables cross sequencing across the reliable sequenced and unreliable sequenced packets.

F

finalize() - Method in class us.ihmc.mockets.Mocket
Native method that removes mocket object.
finalize() - Method in class us.ihmc.mockets.Mocket.Sender
Removes mocket object.
finalize() - Method in class us.ihmc.mockets.MocketOutputStream
 
finalize() - Method in class us.ihmc.mockets.Params
Removes params object.
finalize() - Method in class us.ihmc.mockets.ServerMocket
Removes the ServerMocket object.
finalize() - Method in class us.ihmc.mockets.StreamMocket
Removes StreamMocket object.
finalize() - Method in class us.ihmc.mockets.StreamServerMocket
 
flush() - Method in class us.ihmc.mockets.MocketOutputStream
 

G

getConnectionLingerTime() - Method in class us.ihmc.mockets.Mocket
Returns the current setting for the connection linger time.
getDataBufferingTime() - Method in class us.ihmc.mockets.StreamMocket
Returns the maximum time for buffering outgoing data before transmitting data.
getDiscardedPacketCounts() - Method in class us.ihmc.mockets.StreamMocket.Statistics
 
getDuplicatedDiscardedPacketCount() - Method in class us.ihmc.mockets.Mocket.Statistics
Returns the number of incoming packets that were discarded because they were duplicates.
getEnqueueTimeout() - Method in class us.ihmc.mockets.Params
Native method to extract the enqueue timeout that indicates the length of time in milliseconds for which the method will wait if there is no room in the outgoing buffer.
getIdentifier() - Method in class us.ihmc.mockets.Mocket
Returns the identifier for this mocket instance.
getIdentifier() - Method in class us.ihmc.mockets.ServerMocket
Returns the identifier for this mocket instance.
getInputStream() - Method in class us.ihmc.mockets.StreamMocket
Returns the input stream for this connection.
getLocalPort() - Method in class us.ihmc.mockets.ServerMocket
Return the port where the ServerMocket is listening for connections.
getLocalPort() - Method in class us.ihmc.mockets.StreamServerMocket
Returns the port on which this socket is listening.
getLocalSocketAddress() - Method in class us.ihmc.mockets.StreamMocket
Returns the local address as a socket address.
getMaximumMTU() - Static method in class us.ihmc.mockets.Mocket
Returns the maximum MTU that may be used.
getNextMessageSize(long) - Method in class us.ihmc.mockets.Mocket
Returns the size of the next message that is ready to be delivered to the application.
getNoRoomDiscardedPacketCount() - Method in class us.ihmc.mockets.Mocket.Statistics
Returns the number of incoming packets that were discarded because there was no room to buffer them.
getOutputStream() - Method in class us.ihmc.mockets.StreamMocket
Returns the output stream for this connection.
getPeerName() - Method in class us.ihmc.mockets.Mocket
Extract the address of the peer in the form Socket Address.
getPriority() - Method in class us.ihmc.mockets.Params
Native method to extract the priority.
getReceivedByteCount() - Method in class us.ihmc.mockets.Mocket.Statistics
Returns the number of bytes received during this mocket connection.
getReceivedByteCount() - Method in class us.ihmc.mockets.StreamMocket.Statistics
 
getReceivedPacketCount() - Method in class us.ihmc.mockets.Mocket.Statistics
Returns the number of packets received during this mocket connection.
getReceivedPacketCount() - Method in class us.ihmc.mockets.StreamMocket.Statistics
 
getRemoteAddress() - Method in class us.ihmc.mockets.Mocket
Native method that returns the IP addess of the remote host.
getRemotePort() - Method in class us.ihmc.mockets.Mocket
Native method that returns the remote port to which the connection has been established.
getRemoteSocketAddress() - Method in class us.ihmc.mockets.StreamMocket
Returns the address of the remote peer as a socket address.
getRetransmitCount() - Method in class us.ihmc.mockets.StreamMocket.Statistics
 
getRetransmittedPacketCount() - Method in class us.ihmc.mockets.Mocket.Statistics
Returns the number of retransmitted packets during this mocket connection
getRetryTimeout() - Method in class us.ihmc.mockets.Params
Native method to extract the retry timeout from Params.
getSender(boolean, boolean) - Method in class us.ihmc.mockets.Mocket
Obtains a new sender with the specified combination of reliability and sequencing.
getSentByteCount() - Method in class us.ihmc.mockets.Mocket.Statistics
Returns the number of bytes transmitted during this mocket connection.
getSentByteCount() - Method in class us.ihmc.mockets.StreamMocket.Statistics
 
getSentPacketCount() - Method in class us.ihmc.mockets.Mocket.Statistics
Returns the number of sent packets during this mocket connection.
getSentPacketCount() - Method in class us.ihmc.mockets.StreamMocket.Statistics
 
getStatistics() - Method in class us.ihmc.mockets.Mocket
Returns a pointer to the Statistics class that maintains statistics about this mocket connection.
getStatistics() - Method in class us.ihmc.mockets.StreamMocket
Returns the statistics associated with this mocket.
getStreamMocket() - Method in class us.ihmc.mockets.MocketInputStream
 
getStreamMocket() - Method in class us.ihmc.mockets.MocketOutputStream
 
getTag() - Method in class us.ihmc.mockets.Params
Native method to extract the tag.
getTotal() - Method in class us.ihmc.mockets.StreamMocket.Statistics.Discards
 
getTransmitterWaitCounts() - Method in class us.ihmc.mockets.StreamMocket.Statistics
 
gsend(boolean, boolean, byte[], int, short, long, long, String, String) - Method in class us.ihmc.mockets.Mocket
 
gsend(boolean, boolean, byte[], int, int, int, short, long, long, String, String) - Method in class us.ihmc.mockets.Mocket
 
gsend(byte[], byte[]) - Method in class us.ihmc.mockets.Mocket.Sender
 
gsend(byte[], int, int, byte[], int, int) - Method in class us.ihmc.mockets.Mocket.Sender
 
gsend(byte[], byte[], byte[]) - Method in class us.ihmc.mockets.Mocket.Sender
 
gsend(byte[], int, int, byte[], int, int, byte[], int, int) - Method in class us.ihmc.mockets.Mocket.Sender
 
gsend(byte[], byte[], byte[], byte[]) - Method in class us.ihmc.mockets.Mocket.Sender
 
gsend(byte[], int, int, byte[], int, int, byte[], int, int, byte[], int, int) - Method in class us.ihmc.mockets.Mocket.Sender
 

I

implCloseSelectableChannel() - Method in class us.ihmc.mockets.MocketChannel
 
implConfigureBlocking(boolean) - Method in class us.ihmc.mockets.MocketChannel
 
init(StreamMocket) - Method in class us.ihmc.mockets.MocketInputStream
 
isConnected() - Method in class us.ihmc.mockets.StreamMocket
 
isCrossSequencingEnabled() - Method in class us.ihmc.mockets.Mocket
Returns the current setting for cross sequencing.

M

Mocket - Class in us.ihmc.mockets
The main class for a client application to use the Mockets communication library.
Mocket() - Constructor for class us.ihmc.mockets.Mocket
Creates a new, unconnected Mocket endpoint.
Mocket.Sender - Class in us.ihmc.mockets
The class used to send messages over Mockets.
Mocket.Sender() - Constructor for class us.ihmc.mockets.Mocket.Sender
 
Mocket.Statistics - Class in us.ihmc.mockets
The class that contains statistics about an active mocket connection.
Mocket.Statistics() - Constructor for class us.ihmc.mockets.Mocket.Statistics
 
MocketChannel - Class in us.ihmc.mockets
 
MocketChannel() - Constructor for class us.ihmc.mockets.MocketChannel
 
MocketInputStream - Class in us.ihmc.mockets
 
MocketOutputStream - Class in us.ihmc.mockets
 
MocketStatusListener - Interface in us.ihmc.mockets
This interface defines methods to be used by the Mocket to periodically notify the listeners about the mocket status.

P

Params - Class in us.ihmc.mockets
Class to be used to encapsulate the communication parameters into a single object.
Params(int, short, long, long) - Constructor for class us.ihmc.mockets.Params
Created a new object with the specified parameters.
peerReachable(long) - Method in interface us.ihmc.mockets.MocketStatusListener
Register a callback function to be invoked once peerUnreachable has been invoked and subsequently we have heard from the peer The callback will indicate the time (in milliseconds) since last contact
peerUnreachableWarning(long) - Method in interface us.ihmc.mockets.MocketStatusListener
Function to be invoked when no data (or keepalive) has been received from the peer mocket.

R

read() - Method in class us.ihmc.mockets.MocketInputStream
 
read(byte[]) - Method in class us.ihmc.mockets.MocketInputStream
 
read(byte[], int, int) - Method in class us.ihmc.mockets.MocketInputStream
 
receive(byte[]) - Method in class us.ihmc.mockets.Mocket
Retrieves the data from next message that is ready to be delivered to the application.
receive(byte[], int, int) - Method in class us.ihmc.mockets.Mocket
Retrieves the data from next message that is ready to be delivered to the application.
receive(byte[], long) - Method in class us.ihmc.mockets.Mocket
Retrieves the data from next message that is ready to be delivered to the application.
receive(byte[], int, int, long) - Method in class us.ihmc.mockets.Mocket
Retrieves the data from next message that is ready to be delivered to the application.
receive(long) - Method in class us.ihmc.mockets.Mocket
Retrieves the data from next message that is ready to be delivered to the application.
replace(boolean, boolean, byte[], int, int, short, long, long) - Method in class us.ihmc.mockets.Mocket
First cancels any previously enqueued messages that have been tagged with the specified OldTag value and then transmits the new message using the specified parameters.
replace(boolean, boolean, byte[], int, int, int, int, short, long, long) - Method in class us.ihmc.mockets.Mocket
First cancels any previously enqueued messages that have been tagged with the specified OldTag value and then transmits the new message using the specified parameters.
replace(byte[], int, int) - Method in class us.ihmc.mockets.Mocket.Sender
First cancels any previously enqueued messages that have been tagged with the specified OldTag value and then transmits the new message using the specified parameters.
replace(byte[], int, int, int, int) - Method in class us.ihmc.mockets.Mocket.Sender
First cancels any previously enqueued messages that have been tagged with the specified OldTag value and then transmits the new message using the specified parameters.
replace(byte[], int, Params) - Method in class us.ihmc.mockets.Mocket.Sender
First cancels any previously enqueued messages that have been tagged with the specified OldTag value and then transmits the new message using the specified parameters.
replace(byte[], int, int, int, Params) - Method in class us.ihmc.mockets.Mocket.Sender
First cancels any previously enqueued messages that have been tagged with the specified OldTag value and then transmits the new message using the specified parameters.
replace(byte[], int, int, short, long, long) - Method in class us.ihmc.mockets.Mocket.Sender
First cancels any previously enqueued messages that have been tagged with the specified OldTag value and then transmits the new message using the specified parameters.
replace(byte[], int, int, int, int, short, long, long) - Method in class us.ihmc.mockets.Mocket.Sender
First cancels any previously enqueued messages that have been tagged with the specified OldTag value and then transmits the new message using the specified parameters.

S

send(boolean, boolean, byte[], int, short, long, long) - Method in class us.ihmc.mockets.Mocket
Enqueues the specified data for transmission.
send(boolean, boolean, byte[], int, int, int, short, long, long) - Method in class us.ihmc.mockets.Mocket
Enqueues the specified data for transmission.
send(byte[]) - Method in class us.ihmc.mockets.Mocket.Sender
Basic send function.
send(byte[], int, int) - Method in class us.ihmc.mockets.Mocket.Sender
Basic send function.
send(byte[], int, short) - Method in class us.ihmc.mockets.Mocket.Sender
Enqueues data for transmission using the specified parameters.
send(byte[], int, int, int, short) - Method in class us.ihmc.mockets.Mocket.Sender
Enqueues data for transmission using the specified parameters.
send(byte[], Params) - Method in class us.ihmc.mockets.Mocket.Sender
Enqueues data for transmission using the specified parameters.
send(byte[], int, int, Params) - Method in class us.ihmc.mockets.Mocket.Sender
Enqueues data for transmission using the specified parameters.
send(byte[], int, short, long, long) - Method in class us.ihmc.mockets.Mocket.Sender
Enqueues data for transmission using the specified parameters.
send(byte[], int, int, int, short, long, long) - Method in class us.ihmc.mockets.Mocket.Sender
Enqueues data for transmission using the specified parameters.
ServerMocket - Class in us.ihmc.mockets
The main class for a server application to use the Mockets communication library.
ServerMocket(int) - Constructor for class us.ihmc.mockets.ServerMocket
Creates a new ServerMocket and binds it to the specified port on localhost ready to accept incoming connections.
ServerMocket(int, String) - Constructor for class us.ihmc.mockets.ServerMocket
Creates a new ServerMocket and binds it to the specified address ready to accept incoming connections.
setConnectionLingerTime(long) - Method in class us.ihmc.mockets.Mocket
Sets the length of time (in milliseconds) for which a connection should linger before closing in case there is unsent data.
setDataBufferingTime(int) - Method in class us.ihmc.mockets.StreamMocket
Sets the maximum time for buffering outgoing data before transmitting data.
setDefaultEnqueueTimeout(long) - Method in class us.ihmc.mockets.Mocket.Sender
Sets the default timeout for enqueuing data into the outgoing queue.
setDefaultRetryTimeout(long) - Method in class us.ihmc.mockets.Mocket.Sender
Sets the default timeout for retransmission of reliable packets that have not been acknowledged.
setIdentifier(String) - Method in class us.ihmc.mockets.Mocket
Sets a string to use as the application or user friendly identifier for this mocket instance.
setIdentifier(String) - Method in class us.ihmc.mockets.ServerMocket
Sets a string to use as the application or user friendly identifier for this mocket instance.
setStatusListener(MocketStatusListener) - Method in class us.ihmc.mockets.Mocket
Register a callback function to be invoked when no data (or keepalive) has been received from the peer mocket.
setStatusListener(MocketStatusListener) - Method in class us.ihmc.mockets.StreamMocket
Register a callback function to be invoked when no data (or keepalive) has been received from the peer mocket.
sreceive(byte[], byte[], long) - Method in class us.ihmc.mockets.Mocket
Retrieves the data from the next message that is ready to be delivered to the application splitting the data in different buffers.
sreceive(byte[], int, int, byte[], int, int, long) - Method in class us.ihmc.mockets.Mocket
Retrieves the data from the next message that is ready to be delivered to the application splitting the data in different buffers.
sreceive(byte[], byte[], byte[], long) - Method in class us.ihmc.mockets.Mocket
Retrieves the data from the next message that is ready to be delivered to the application splitting the data in different buffers.
sreceive(byte[], int, int, byte[], int, int, byte[], int, int, long) - Method in class us.ihmc.mockets.Mocket
Retrieves the data from the next message that is ready to be delivered to the application splitting the data in different buffers.
sreceive(byte[], byte[], byte[], byte[], long) - Method in class us.ihmc.mockets.Mocket
Retrieves the data from the next message that is ready to be delivered to the application splitting the data in different buffers.
sreceive(byte[], int, int, byte[], int, int, byte[], int, int, byte[], int, int, long) - Method in class us.ihmc.mockets.Mocket
Retrieves the data from the next message that is ready to be delivered to the application splitting the data in different buffers.
StreamMocket - Class in us.ihmc.mockets
The Mocket class represents an endpoint of a mobile socket connection.
StreamMocket() - Constructor for class us.ihmc.mockets.StreamMocket
Create a new, unconnected, endpoint for a mocket connection.
StreamMocket.Statistics - Class in us.ihmc.mockets
The Statistics class is used to retrieve statistics about the current mocket connection.
StreamMocket.Statistics() - Constructor for class us.ihmc.mockets.StreamMocket.Statistics
 
StreamMocket.Statistics.Discards - Class in us.ihmc.mockets
 
StreamMocket.Statistics.Discards() - Constructor for class us.ihmc.mockets.StreamMocket.Statistics.Discards
 
StreamMocket.Statistics.Waits - Class in us.ihmc.mockets
 
StreamMocket.Statistics.Waits() - Constructor for class us.ihmc.mockets.StreamMocket.Statistics.Waits
 
StreamServerMocket - Class in us.ihmc.mockets
The ServerMocket class represents an endpoint for mockets that is capable of receiving incoming connections.
StreamServerMocket(SocketAddress) - Constructor for class us.ihmc.mockets.StreamServerMocket
Construct a new server mocket that listens for incoming connections on the specified SocketAddress.
StreamServerMocket(int) - Constructor for class us.ihmc.mockets.StreamServerMocket
Construct a new server mocket that listens for incoming connections on the specified port.

U

us.ihmc.mockets - package us.ihmc.mockets
Provides the classes for implementing networking applications using the Mocket communication library.

V

validOps() - Method in class us.ihmc.mockets.MocketChannel
 

W

write(int) - Method in class us.ihmc.mockets.MocketOutputStream
 
write(byte[]) - Method in class us.ihmc.mockets.MocketOutputStream
 
write(byte[], int, int) - Method in class us.ihmc.mockets.MocketOutputStream
 

_

_belowWindow - Variable in class us.ihmc.mockets.StreamMocket.Statistics.Discards
 
_noRoom - Variable in class us.ihmc.mockets.StreamMocket.Statistics.Discards
 
_overlap - Variable in class us.ihmc.mockets.StreamMocket.Statistics.Discards
 
_packetQueueFull - Variable in class us.ihmc.mockets.StreamMocket.Statistics.Waits
 
_remoteWindowFull - Variable in class us.ihmc.mockets.StreamMocket.Statistics.Waits
 

A B C E F G I M P R S U V W _