|
|||||||||
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.ActionMessenger
public abstract class ActionMessenger
Given an R3Action, the messenger will package it up and send it across the wire, so that the receiver can perform the designated action.
This software is distributed under the BSD License.
Field Summary | |
---|---|
protected static java.lang.String |
LINE_SEPARATOR
The OS-specific newline string. |
Constructor Summary | |
---|---|
ActionMessenger(java.net.Socket s)
|
Method Summary | |
---|---|
void |
destroy()
Clean up resources. |
abstract byte[] |
getMessage(R3Action action)
Get the byte array to send across the socket. |
void |
sendAction(R3Action action)
Sends the bytes over the wire. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String LINE_SEPARATOR
Constructor Detail |
---|
public ActionMessenger(java.net.Socket s)
s
- Method Detail |
---|
public void destroy()
public abstract byte[] getMessage(R3Action action)
action
-
public void sendAction(R3Action action)
action
-
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |