Le 21/02/15 00:09, Abeer Al-Anazi a écrit : > 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-
Use the session.The connection is just there to establish the relation between your client and the server.
