I setup an event and command socket to DCE and register for message interceptors - all good so far. I can directly message my device as many times as I like, but when it receives an intercepted message the core seems to expect some response, and closes my connection when I don't give it any. What is the solution for this?
look under 7. and 8. here (I think that you also have to reply with OK to intercepted message):http://wiki.linuxmce.org/index.php/Plain_Text_DCE_Messages
DCERouter is waiting only for a really short time...Quite frequently my device gets disconnected if it doesn't response quickly enough...
And when your device is disconnected in such way, there is a problem, cause its entry in /usr/pluto/locks stays and router reload won't start it again - you'll have to delete its ID from that file manually... I've learned this the hard way...
You can also check connectivity with Router by sending PING and receiving PONG back....