RiverRat  - An MIT iCampus project http://web.mit.edu/riverrat/

Main Page | Software Documentation | Hardware Documentation | People | Contact | Wiki

Main Page | Class Hierarchy | Class List | File List | Class Members

riverrat.LiveServer Class Reference

Empty - A type of RiverRat server that provides data in realtime. More...

Inheritance diagram for riverrat.LiveServer:

riverrat.BasicServer List of all members.

Public Member Functions

 LiveServer (Race newrace)
 Constructor.

 LiveServer (Race newrace, int newport)
 Constructor.


Static Public Member Functions

void main (String args[])
 Test case.


Protected Attributes

InputStream radioInputStream = null
 InputStream to read data from.

Race therace = null
 Race data.


Detailed Description

Empty - A type of RiverRat server that provides data in realtime.

Definition at line 8 of file LiveServer.java.


Constructor & Destructor Documentation

riverrat.LiveServer.LiveServer Race  newrace  ) 
 

Constructor.

Calls super() to initialize server, and assigns Race.

Parameters:
newrace Race to use for sending data

Definition at line 19 of file LiveServer.java.

References riverrat.LiveServer.therace.

riverrat.LiveServer.LiveServer Race  newrace,
int  newport
 

Constructor.

Calls super(newport) to initalize server, and assigns Race.

Parameters:
newrace Race to use for sending data newport int with port to listen on

Definition at line 29 of file LiveServer.java.

References riverrat.LiveServer.therace.


Member Function Documentation

void riverrat.LiveServer.main String  args[]  )  [static]
 

Test case.

Opens up a server socket and listens for client connections. On connecting, looks for XML files in the path from which the server was launched and outputs them over the socket, parsing them on the fly and using the ContentHandler callbacks to output the data.

Parameters:
args 

Reimplemented from riverrat.BasicServer.

Definition at line 35 of file LiveServer.java.


The documentation for this class was generated from the following file:  

Brought to you by the RiverRat team.