bubolo
 All Classes Namespaces Functions Variables Enumerator
Public Member Functions | Package Functions | List of all members
bubolo.net.ConnectionWriter Class Reference
Inheritance diagram for bubolo.net.ConnectionWriter:

Public Member Functions

void run ()
 

Package Functions

 ConnectionWriter (Socket client)
 
void addCommand (NetworkCommand command)
 

Detailed Description

Sends NetworkCommands to a connected socket. This is a light-weight class that is designed to be used with a thread queue.

Author
BU CS673 - Clone Productions

Definition at line 14 of file ConnectionWriter.java.

Constructor & Destructor Documentation

bubolo.net.ConnectionWriter.ConnectionWriter ( Socket  client)
package

Constructs a new ConnectionWriter.

Parameters
clienta connection to a client.
Exceptions
NetworkExceptionif the output stream is unavailable.

Definition at line 24 of file ConnectionWriter.java.

Member Function Documentation

void bubolo.net.ConnectionWriter.addCommand ( NetworkCommand  command)
package

Adds the command to the list of commands that will be sent.

Parameters
command

Definition at line 41 of file ConnectionWriter.java.

void bubolo.net.ConnectionWriter.run ( )

Definition at line 47 of file ConnectionWriter.java.