Re: [WinLIRC] problem: somewhere between receiving via telnet and transmitting.
Brought to you by:
dukeeeey
From: Jim P. <ji...@jt...> - 2004-05-30 05:17:34
|
> It's an interesting problem. WinLirc by itself functions fine. I > have a remote set up, and can use the WinLirc interface to send a > command, which is received by the CD player. My program works fine > as well. I'm using WinSock to transmit messages to WinLirc (just > like the sample code on the website). WinLirc is receiving these > messages, I know that because the debug log shows it. The debug log shows that the message was received, but not that it was printed properly. You could try adding more debugging to the receive data function (around line 350 in server.cpp) to make sure that it's actually getting to the SendMessage line with the right data, which is where the code gets transferred to the main window for sending. At casual glance it does look like much of the string manipulation in server.cpp is wrong; for the error messages, the allocated strings for responses are consistently too short. I hadn't seen that before. That might explain why it behaves differently on different OSes, although you shouldn't even be hitting those cases unless you're sending it bad data or something. -jim |