Package wappsto.iot.rpc
Class RpcClient
- java.lang.Object
-
- wappsto.iot.rpc.RpcClient
-
-
Constructor Summary
Constructors Constructor Description RpcClient(Connection conn)Instantiate client with a connection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsend(java.lang.String message)Send message to the servervoidstart(RpcParser parser)Starts the connection and sets the parser for incoming datavoidstop()Close the connection to the server
-
-
-
Constructor Detail
-
RpcClient
public RpcClient(Connection conn)
Instantiate client with a connection- Parameters:
conn- connection to the server
-
-
Method Detail
-
start
public void start(RpcParser parser) throws java.lang.Exception
Starts the connection and sets the parser for incoming data
-
send
public void send(java.lang.String message)
Send message to the server
-
-