Page 1 of 1

ConnectionLost Event

PostPosted: Fri 14. Jun 2013, 13:10
by tiveria
The IRTransServer class has an event called ConnectionLost.
But if I manually shut down the server or use the server control ui to stop the server, the event is not fired.

How else can I detect if the irtransserver connection is lost?

Re: ConnectionLost Event

PostPosted: Sat 15. Jun 2013, 20:07
by IRTrans
This behaviour is caused by the TCP Stack. A client might not immediately detect a closed session.
To make sure you will need to send a request to the irserver.

IRTrans

Re: ConnectionLost Event

PostPosted: Fri 21. Jun 2013, 12:11
by tiveria
Ok, are there any calls that do not create much load on the server and can be used as connection check without sending commands to the ir devices?

Re: ConnectionLost Event

PostPosted: Fri 21. Jun 2013, 16:16
by IRTrans
An easy one would be

SetLoglevel(0)

It will throw an exception in case the connection is closed.

IRTrans