Details
Description
I started my server (implemented using MINA), the client connects to it and within 5 seconds a heartbeat comes in. To handle the heartbeat, I wanted to know if the heartbeat came in within 5 seconds since the last read time (in this case, connect time). However, the last read time is appearing as a value in the order of 10^9 or so ! So, the comparison always fails.
That is why, I wanted to know, if the last read time was the time duration since the last read. Or, does it actually represent some time (ddmmyy... etc.) ?
Also, the connect is happening once the client has sent a connect message (containing, for example, id and password). This message is handled in a handler. Isn't this connect counted as a read after the session is created (i.e. the server is bound as acceptor.bind(portNumber)) ?