A B C D E F G H I L M P Q R S T U W

A

addError() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Add to and check the error count.

B

BACKLOG - Variable in class com.mischiefbox.dmud.net.Listener
The maximum number of un-accepted connections queued.
bActive - Variable in class com.mischiefbox.dmud.util.ProcessorThread
Indicates if this is currently in use (active).
baMessageFooter - Static variable in class com.mischiefbox.dmud.util.InputQueue
Message footer byte signature.
baMessageHeader - Static variable in class com.mischiefbox.dmud.util.InputQueue
Message header byte signature.
bHandling - Variable in class com.mischiefbox.dmud.net.ConnectionHandler
Flag to indicate if this is currently handling I/O.
bis - Variable in class com.mischiefbox.dmud.net.ConnectionInfo
The input stream associated with the socket.
bListening - Variable in class com.mischiefbox.dmud.net.Listener
Flag to indicate listening for new connections.
bos - Variable in class com.mischiefbox.dmud.net.ConnectionInfo
The output stream associated with the socket.
bProcessing - Variable in class com.mischiefbox.dmud.net.ConnectionInfo
Indicates this is is processing input.
bProcessing - Variable in class com.mischiefbox.dmud.util.ProcessorThread
Indicates if this is processing (thread started).

C

com.mischiefbox.dmud - package com.mischiefbox.dmud
 
com.mischiefbox.dmud.message - package com.mischiefbox.dmud.message
 
com.mischiefbox.dmud.net - package com.mischiefbox.dmud.net
 
com.mischiefbox.dmud.util - package com.mischiefbox.dmud.util
 
CONNECTION_HANDLER_THREAD_NAME - Static variable in class com.mischiefbox.dmud.net.ConnectionHandler
The connection handler thread name.
CONNECTION_INFO_THREAD_GROUP - Static variable in class com.mischiefbox.dmud.net.ConnectionHandler
The name of thread group for connection info objects.
connectionHandler - Variable in class com.mischiefbox.dmud.Server
The connection handler.
ConnectionHandler - class com.mischiefbox.dmud.net.ConnectionHandler.
Responsible for keeping track of connection info objects, checking for new input on connections, and passing new output to connections.
ConnectionHandler(InputQueue, Queue) - Constructor for class com.mischiefbox.dmud.net.ConnectionHandler
Create a new connection handler.
ConnectionInfo - class com.mischiefbox.dmud.net.ConnectionInfo.
Connection information object.
ConnectionInfo(ConnectionHandler, Socket, int) - Constructor for class com.mischiefbox.dmud.net.ConnectionInfo
Create a new connection info object.

D

dequeue() - Method in class com.mischiefbox.dmud.util.Queue
Dequeue the next object on the queue.

E

enqueue(Object) - Method in class com.mischiefbox.dmud.util.Queue
Enqueue a new object.

F

finalize() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Finalizer, in case this goes out of scope.
FOOTER - Static variable in class com.mischiefbox.dmud.message.Message
The header that indicates the end of a message.

G

getBytes() - Method in class com.mischiefbox.dmud.message.Message
Get the message's byte representation.
getConnectionId() - Method in class com.mischiefbox.dmud.message.Message
Get the Message's associated connection id.
getConnectionId() - Method in class com.mischiefbox.dmud.message.MessageTooLargeException
Gets the offending connection id.
getConnectionId() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Get the connection id.
getConnectionInfoThreadGroup() - Method in class com.mischiefbox.dmud.net.ConnectionHandler
Get the connection info thread group object.
getContent() - Method in class com.mischiefbox.dmud.message.Message
Get the Message's content.
getErrors() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Get the number of errors on the connection.
getInputStream() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Get the input stream.
getLastUsed() - Method in class com.mischiefbox.dmud.util.ProcessorThread
Gets the last used time.
getLastUsedTime() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Get the last used time (in milliseconds).
getListener() - Method in class com.mischiefbox.dmud.Server
Get the listener.
getOutputStream() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Get the output stream.
getSize() - Method in class com.mischiefbox.dmud.util.Queue
Get the number of elements in the queue.

H

handler - Variable in class com.mischiefbox.dmud.net.Listener
The connection handler which gets new socket connections.
handler - Variable in class com.mischiefbox.dmud.net.ConnectionInfo
The connection handler that created and is responsible for the connection.
HEADER - Static variable in class com.mischiefbox.dmud.message.Message
The header that indicates the start of a message.
hmConnectionInfo - Variable in class com.mischiefbox.dmud.net.ConnectionHandler
Registered connection info objects.
htMessages - Variable in class com.mischiefbox.dmud.util.InputQueue
The dictionary (Hashtable) of partial messages.

I

iErrorCount - Variable in class com.mischiefbox.dmud.net.ConnectionInfo
The consecutive error count on the connection.
incomingMessage(String, byte[]) - Method in class com.mischiefbox.dmud.util.InputQueue
Convert partial messages into Message objects.
inputMessage(ConnectionInfo, byte[]) - Method in class com.mischiefbox.dmud.net.ConnectionHandler
Pass a message on the behalf of the connection info to the input queue.
InputQueue - class com.mischiefbox.dmud.util.InputQueue.
Input queue and manager.
InputQueue() - Constructor for class com.mischiefbox.dmud.util.InputQueue
Create a new InputQueue.
iPort - Variable in class com.mischiefbox.dmud.Server
The server port on which to listen.
iPort - Variable in class com.mischiefbox.dmud.net.Listener
The port on which to listen for new connections.
iProcessorThreadsMax - Variable in class com.mischiefbox.dmud.Server
The maximum number of processor threads.
isActive() - Method in class com.mischiefbox.dmud.util.ProcessorThread
Indicates if this is actively processing.
isHandling() - Method in class com.mischiefbox.dmud.net.ConnectionHandler
Indicates if this is handling I/O.
isListening() - Method in class com.mischiefbox.dmud.net.Listener
Indicate if this is listening.
isProcessing() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Indicates if this is processing input.

L

listener - Variable in class com.mischiefbox.dmud.Server
The listener.
Listener - class com.mischiefbox.dmud.net.Listener.
Listens for new connections.
Listener(ConnectionHandler, int) - Constructor for class com.mischiefbox.dmud.net.Listener
Create a new Listener.
lLastUsedMillis - Variable in class com.mischiefbox.dmud.util.ProcessorThread
The last used time of this processor thread.
lLastUseMillis - Variable in class com.mischiefbox.dmud.net.ConnectionInfo
The last recorded time I/O was performed on the socket.
lShutdownMillis - Variable in class com.mischiefbox.dmud.util.ProcessorThread
The time when this will be idle too long and be shut down automatically.

M

main(String[]) - Static method in class com.mischiefbox.dmud.UnitTester
 
main(String[]) - Static method in class com.mischiefbox.dmud.Server
Command line method to start the server.
MAX_ERROR - Static variable in class com.mischiefbox.dmud.net.ConnectionInfo
The maximum number of consecutive errors permitted for the connection.
MAX_MESSAGE_SIZE - Static variable in class com.mischiefbox.dmud.util.InputQueue
The maximum incomplete message size.
Message - class com.mischiefbox.dmud.message.Message.
Message object.
Message(String, String) - Constructor for class com.mischiefbox.dmud.message.Message
Create a new Message object.
MessageTooLargeException - exception com.mischiefbox.dmud.message.MessageTooLargeException.
Indicates that a message was too large.
MessageTooLargeException(String) - Constructor for class com.mischiefbox.dmud.message.MessageTooLargeException
Create a new message too-large exception.
msg - Variable in class com.mischiefbox.dmud.util.ProcessorThread
The message to process.

P

paProcessor - Variable in class com.mischiefbox.dmud.Server
The array of processor threads.
peek() - Method in class com.mischiefbox.dmud.util.Queue
Peeks at the next object available on the queue.
PROCESSOR_THREAD_COUNT - Static variable in class com.mischiefbox.dmud.Server
The default number of processor threads.
PROCESSOR_THREAD_GROUP - Static variable in class com.mischiefbox.dmud.Server
The default name of the processor thread group.
ProcessorThread - class com.mischiefbox.dmud.util.ProcessorThread.
Defines a message processor thread.
ProcessorThread(ThreadGroup, Queue, Queue) - Constructor for class com.mischiefbox.dmud.util.ProcessorThread
Create a new processor thread.
pyInterp - Variable in class com.mischiefbox.dmud.util.ProcessorThread
The processor thread's python interpreter.

Q

qInput - Variable in class com.mischiefbox.dmud.Server
The common input queue.
qInput - Variable in class com.mischiefbox.dmud.net.ConnectionHandler
The input (incoming message) queue.
qInput - Variable in class com.mischiefbox.dmud.util.ProcessorThread
The input queue with new messages to be processed.
qOutput - Variable in class com.mischiefbox.dmud.Server
The common output queue.
qOutput - Variable in class com.mischiefbox.dmud.net.ConnectionHandler
The output (outgoing message) queue.
qOutput - Variable in class com.mischiefbox.dmud.util.ProcessorThread
The output queue that will receive messages processed by this thread.
Queue - class com.mischiefbox.dmud.util.Queue.
Implements a basic FIFO queue.
Queue() - Constructor for class com.mischiefbox.dmud.util.Queue
Construct a new Queue.

R

registerConnectionInfo(ConnectionInfo) - Method in class com.mischiefbox.dmud.net.ConnectionHandler
Register a new connection info object.
resetError() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Reset the error count to zero (success in I/O).
run() - Method in class com.mischiefbox.dmud.net.ConnectionHandler
Process connection I/O, including checking for available messages from the client and from the message handler.
run() - Method in class com.mischiefbox.dmud.net.Listener
Listen for new connections and pass them to the connection handler.
run() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Process input on the socket.
run() - Method in class com.mischiefbox.dmud.util.ProcessorThread
Process the message and put the results (if any) on the output queue.

S

scanByteArray(byte[], byte[]) - Static method in class com.mischiefbox.dmud.util.InputQueue
Scan a byte array for a pattern.
sConnectionId - Variable in class com.mischiefbox.dmud.message.Message
Connection id.
sConnectionId - Variable in class com.mischiefbox.dmud.message.MessageTooLargeException
The offending connection id.
sConnectionId - Variable in class com.mischiefbox.dmud.net.ConnectionInfo
The connection id (used to identify the connection).
server - Variable in class com.mischiefbox.dmud.net.Listener
The server socket.
Server - class com.mischiefbox.dmud.Server.
Implements a DMUD server.
SERVER_PORT - Static variable in class com.mischiefbox.dmud.Server
The default port on which to listen.
Server() - Constructor for class com.mischiefbox.dmud.Server
Create a new server.
setConnectionId(String) - Method in class com.mischiefbox.dmud.message.Message
Set the Message's associated connection id.
setContent(String) - Method in class com.mischiefbox.dmud.message.Message
Set the Message's content.
setLastUsedTime() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Set the last used time to now.
setPort(int) - Method in class com.mischiefbox.dmud.Server
Set the server port.
setThreadCount(int) - Method in class com.mischiefbox.dmud.Server
Set the maximum number of processor threads.
setThreadGroupName(String) - Method in class com.mischiefbox.dmud.Server
Set the processor thread group name.
shutdown() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Shut down the connection gracefully.
shutdown() - Method in class com.mischiefbox.dmud.util.ProcessorThread
Shut down the processor thread.
SLEEP_MILLIS - Static variable in class com.mischiefbox.dmud.net.ConnectionHandler
The sleep time for this thread (in between processing runs).
SLEEP_MILLIS - Static variable in class com.mischiefbox.dmud.net.Listener
The number of milliseconds to sleep between servicing each new socket request.
SLEEP_MILLIS - Static variable in class com.mischiefbox.dmud.net.ConnectionInfo
The sleep time for this thread (in between checks for new input).
SLEEP_MILLIS - Variable in class com.mischiefbox.dmud.util.ProcessorThread
Idle thread sleep time (between waking up to check status).
sMessageContent - Variable in class com.mischiefbox.dmud.message.Message
Message content.
sock - Variable in class com.mischiefbox.dmud.net.ConnectionInfo
The Socket associated with the connection.
sProcessorThreadGroup - Variable in class com.mischiefbox.dmud.Server
The name of the processor thread group.
start() - Method in class com.mischiefbox.dmud.net.Listener
Start listening.
startServer() - Method in class com.mischiefbox.dmud.Server
Start this server.
stop() - Method in class com.mischiefbox.dmud.net.Listener
Stop listening.
stopHandler() - Method in class com.mischiefbox.dmud.net.ConnectionHandler
Stops the handler from handling I/O.
stopServer() - Method in class com.mischiefbox.dmud.Server
Stop this server.

T

terminate() - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Close the socket connection immediately.
tgConnectionInfo - Variable in class com.mischiefbox.dmud.net.ConnectionHandler
The connection info object thread group.
tgManager - Variable in class com.mischiefbox.dmud.util.ProcessorThread
The thread group that contains this processor thread.
tgProcessor - Variable in class com.mischiefbox.dmud.Server
The processor thread group.
tHandler - Variable in class com.mischiefbox.dmud.net.ConnectionHandler
The handler thread.
THREAD_NAME - Static variable in class com.mischiefbox.dmud.net.Listener
Listener thread name.
toString() - Method in class com.mischiefbox.dmud.message.Message
Get the message information.
tProcessor - Variable in class com.mischiefbox.dmud.net.ConnectionInfo
The thread that processes input.
tProcessor - Variable in class com.mischiefbox.dmud.util.ProcessorThread
The processor thread.

U

UnitTester - class com.mischiefbox.dmud.UnitTester.
Test critical InputQueue functionality.
UnitTester() - Constructor for class com.mischiefbox.dmud.UnitTester
 
unregisterConnectionInfo(ConnectionInfo) - Method in class com.mischiefbox.dmud.net.ConnectionHandler
Unregister a connection info object.

W

writeMessage(byte[]) - Method in class com.mischiefbox.dmud.net.ConnectionInfo
Accept a message to be written to the client socket.

A B C D E F G H I L M P Q R S T U W

Copyright © 2001 by Christopher R. Jones. All Rights Reserved.