How can I send a periodically data from client to server in Mina. here is
an example to elaborate the question:
String name= "Abeer";
int id= "112233";
myclass obj = new myclass (name, id);
after I open the socket and do all the steps, when I want to send these
data (name, id) to the server I do like that:
connector.setHandler(new ClientSessionHandler(obj));
until now every thing is OK.
if I want to update id value periodically with the same connection, for
example:
id = "6666";
Or, if I want to add a new variable, for example:
salary = "5000";
HOW can I send it to the server with the same connection? - I mean the
initial connection-

Reply via email to