Hi,
thanks for responses...
Danielk: my driver is currently written in Perl and at the moment a mess. But I'm trying to figure out, why DCERouter closes socket to my device. I bet I'm doing something wrong in my implementation - but what I'd like to see or understand is a brief explanation in log why DCERouter decides to close socket....
Hari: I have implemented pretty much what is needed on restart. It goes like this :
1. DCERouter sends Close command - that means that all connected device drivers should clear sockets and die
2. on restart, DCERouter or better Launch Manager will start devices back again (all over from start)
3. During operation of device, DCERouter sends PING command to check whether device is alive and if it is - it responds with PONG. But I'm still not sure on which one to send this PONG response on outgoing socket or on incoming socket, from where PING got...
I had smaller problem with not sending PONG on right socket, but I guess I fixed that at that time....
Is there any other limitation, why would DCERouter close connection ?
Is it possible to see this from DCERouter's log or any other logs ?
05 03/30/08 10:30:05.614 [33;1mSocket::SendData sendbytes==0[0m <0x772c1b90>
05 03/30/08 10:30:05.629 [33;1mSocket::SendMessage *failed to send* type 7 id 10 from 0 to 77[0m <0x772c1b90>
05 03/30/08 10:30:05.632 [33;1mSocket::ReceiveData 0x8e42348 failed, bytes left 0 start: 2490000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 185 Incoming_Conn Socket 185 192.168.0.1EVENT 84[0m <0x63a9ab90>
05 03/30/08 10:30:05.632 [33;1mSocket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 185 192.168.0.1EVENT 84[0m <0x63a9ab90>
05 03/30/08 10:30:05.632 [33;1mTCPIP: Closing connection to 84 (Router Dev #0) 0x8e42348 m_Socket: -1[0m <0x63a9ab90>
05 03/30/08 10:30:05.632 [33;1mRouter::RemoveAndDeleteSocket 0x8e42348 84[0m <0x63a9ab90>
ID of my device driver is 84 and those lines in the middle mention this socket closing. I jsut wonder if I can get any more info on why DCERouter decides to do that....
Thanks in advance,
regards,
Bulek.