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

Public Member Functions

void run ()
 

Package Functions

 ConnectionReader (Network network, Socket socket) throws NetworkException
 
boolean isActive ()
 
Socket getSocket ()
 
void destroy ()
 

Detailed Description

Receives NetworkCommands from a connected Socket.

Author
BU CS673 - Clone Productions

Definition at line 13 of file ConnectionReader.java.

Constructor & Destructor Documentation

bubolo.net.ConnectionReader.ConnectionReader ( Network  network,
Socket  socket 
) throws NetworkException
package

Constructs a ConnectionReader object.

Parameters
networkreference to the Network.
socketthe connected Socket.
Exceptions
NetworkExceptionif disabling Nagle's algorithm fails.

Definition at line 27 of file ConnectionReader.java.

Member Function Documentation

void bubolo.net.ConnectionReader.destroy ( )
package

Shuts down the ConnectionReader object.

Definition at line 63 of file ConnectionReader.java.

Socket bubolo.net.ConnectionReader.getSocket ( )
package

Returns a reference to the underlying Socket.

Returns
a reference to the underlying Socket.

Definition at line 55 of file ConnectionReader.java.

boolean bubolo.net.ConnectionReader.isActive ( )
package

Returns true if the ClientProcessor is active, or false if not.

Returns
true if the ClientProcessor is active.

Definition at line 46 of file ConnectionReader.java.

void bubolo.net.ConnectionReader.run ( )

Definition at line 69 of file ConnectionReader.java.

References bubolo.net.Network.isActive().