Public Member Functions | |
ActionReceiver (int tcpipPort, ClientServerType type) | |
Will only accept actions from the localhost. | |
ActionReceiver (int tcpipPort, ClientServerType type, String...trusted) | |
void | addActionHandler (ActionHandler handler) |
Add another listener that handles received actions. | |
String | getHostAddress () |
String | getHostName () |
void | setConnectionListener (ActionReceiverConnectionListener listener) |
void | stopDaemon () |
Tell the server to stop sending actions. | |
Static Public Member Functions | |
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) |
static void | stopDaemons () |
Kill one or both servers. | |
Static Public Attributes | |
static final String | CONFIG_FILE_KEY = "actionreceiver.trustedsenders" |
Read our trusted senders from this config file (see Configuration.java). | |
static final String | CONFIG_FILE_VALUE = "/config/ActionReceiver.xml" |
static final int | DEFAULT_JAVA_PORT = Constants.Ports.ACTION_RECEIVER_JAVA |
Will listen on this port for Java XML objects. | |
static final int | DEFAULT_PLAINTEXT_PORT = Constants.Ports.ACTION_RECEIVER_PLAINTEXT |
Will listen on this port for text commands. |
This software is distributed under the BSD License.
Definition at line 36 of file ActionReceiver.java.
ActionReceiver | ( | int | tcpipPort, | |
ClientServerType | type | |||
) |
Will only accept actions from the localhost.
type | ||
tcpipPortPlainText |
Definition at line 165 of file ActionReceiver.java.
Referenced by ActionReceiver.startDaemons().
ActionReceiver | ( | int | tcpipPort, | |
ClientServerType | type, | |||
String... | trusted | |||
) |
trusted | a list of IPs, DNSs, or (todo) subnets that we trust... |
Definition at line 173 of file ActionReceiver.java.
void addActionHandler | ( | ActionHandler | handler | ) |
Add another listener that handles received actions.
handler |
Definition at line 204 of file ActionReceiver.java.
String getHostAddress | ( | ) |
String getHostName | ( | ) |
void setConnectionListener | ( | ActionReceiverConnectionListener | listener | ) |
static void startDaemons | ( | int | tcpipPortJava, | |
int | tcpipPortPlainText | |||
) | [static] |
tcpipPortJava | ||
tcpipPortPlainText |
Definition at line 84 of file ActionReceiver.java.
References ActionReceiver.ActionReceiver().
static void startDaemons | ( | ) | [static] |
Unlike the pen servers, it's probably OK to start both a java and text server.
..
Definition at line 76 of file ActionReceiver.java.
References ActionReceiver.DEFAULT_JAVA_PORT, and ActionReceiver.DEFAULT_PLAINTEXT_PORT.