Package com.sparshui.client
Class ClientToServerProtocol
java.lang.Object
com.sparshui.common.ClientProtocol
com.sparshui.client.ClientToServerProtocol
ClientToServerProtocol implements the Client side protocol. It is the
interface between Client.java and the lower level socket calls to communicate
with the Gesture Server.
adapted by Bob Hanson for Jmol 11/29/2009
- Author:
- Jay Roltgen
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sparshui.common.ClientProtocol
ClientProtocol.MessageType
-
Field Summary
Fields inherited from class com.sparshui.common.ClientProtocol
_in, _out, _socket
-
Constructor Summary
ConstructorsConstructorDescriptionClientToServerProtocol
(Socket socket) Constructor calls ClientProtocol's constructor and sets up data input and output streams for the specified socket. -
Method Summary
Modifier and TypeMethodDescriptionboolean
processRequest
(SparshClient client) Processes a request from the Gesture Server
-
Constructor Details
-
ClientToServerProtocol
Constructor calls ClientProtocol's constructor and sets up data input and output streams for the specified socket.- Parameters:
socket
- The socket that is connected to the Gesture Server.- Throws:
IOException
- If there is a communication error.
-
-
Method Details
-
processRequest
Processes a request from the Gesture Server- Parameters:
client
- The Client object that the server wants to communicate with.- Returns:
- true for success, false for failure
-