News
It’s been a while I have not posted something..well it’s because I have been very busy !!
First of all, my parser can parse the prolog < ?xml ... ?> now which is important for SCPD and for Control Events later.
Then I spent a lot of time working with the Sniffer making sure that I was sending the right stuff, I noticed for example that the byebye were not received. But it all got fixed. Also something is still odd, when I run my test app, the sniffer starts sending search requests by binding on port 1900 as well as a random port. It doesn’t do that with other devices like the MediaRenderer. It’s odd.
Anyway, I spent some time and changed quite a few things although I don’t know yet if that’s useful. A UDP socket per interface for SSDP NOTIFY for example is kept around now and reused .. The Search Responses sockets also don’t bind to port 1900 anymore.
Then I started to think, jesus that would be cool if it was working on CE. I started to play around with evc30 and realized that std:string is not ported to CE !
So I decided to rewrite everything with my own string class. I wanted to make it UNICODE first for CE and then realized it was a pain and didnt really need to so I made it non UNICODE, we’ll see how it goes for CE. I played around with evc4 and evc3, my parsing totally works but the multicast doesn’t on the emulator so I will have to wait to try on a real device.
Finally I started working on Control layer. I can now receive POST, parse the XML and call the action with the arguments. So far it’s not responding but that’s a start.
Ah and also, there’s no need to use non blocking sockets! My scheduler works with blocking sockets too and it seems to behave a lot better when reading data compared to non blocking.
I also found out that there’s a bug under NT for UDP packets. It can return WSACONRESET instead of WSAWOULDBLOCK sometimes. Maybe that’s why a socket per interface helps maybe instead of one for all…
Time to sleep. I probably spent more than 20 hours in the last 3 days on this, I am beat … but it’s coming along nicely…