|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.r3.actions.remote.ActionReceiver
public class ActionReceiver
A daemon that sits and waits for actions to come in over the wire. It then invokes those actions.
This software is distributed under the BSD License.
Field Summary | |
---|---|
static java.lang.String |
CONFIG_FILE_KEY
Read our trusted senders from this config file (see Configuration.java). |
static java.lang.String |
CONFIG_FILE_VALUE
|
static int |
DEFAULT_JAVA_PORT
Will listen on this port for Java XML objects. |
static int |
DEFAULT_PLAINTEXT_PORT
Will listen on this port for text commands. |
Constructor Summary | |
---|---|
ActionReceiver(int tcpipPort,
ClientServerType type)
Will only accept actions from the localhost. |
|
ActionReceiver(int tcpipPort,
ClientServerType type,
java.lang.String... trusted)
|
Method Summary | |
---|---|
void |
addActionHandler(ActionHandler handler)
Add another listener that handles received actions. |
java.lang.String |
getHostAddress()
|
java.lang.String |
getHostName()
|
void |
setConnectionListener(ActionReceiverConnectionListener listener)
|
static void |
startDaemons()
Unlike the pen servers, it's probably OK to start both a java and text server... |
static void |
startDaemons(int tcpipPortJava,
int tcpipPortPlainText)
|
void |
stopDaemon()
Tell the server to stop sending actions. |
static void |
stopDaemons()
Kill one or both servers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIG_FILE_KEY
public static final java.lang.String CONFIG_FILE_VALUE
public static final int DEFAULT_JAVA_PORT
public static final int DEFAULT_PLAINTEXT_PORT
Constructor Detail |
---|
public ActionReceiver(int tcpipPort, ClientServerType type)
type
- tcpipPortPlainText
- public ActionReceiver(int tcpipPort, ClientServerType type, java.lang.String... trusted)
trusted
- a list of IPs, DNSs, or (todo) subnets that we trust...Method Detail |
---|
public static void startDaemons()
public static void startDaemons(int tcpipPortJava, int tcpipPortPlainText)
tcpipPortJava
- tcpipPortPlainText
- public static void stopDaemons()
public void addActionHandler(ActionHandler handler)
handler
- public java.lang.String getHostAddress()
public java.lang.String getHostName()
public void setConnectionListener(ActionReceiverConnectionListener listener)
listener
- public void stopDaemon()
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |