Scheduler works!

Posted on December 23, 2003

After spending 2 nights (at least 10 hours total), I have come up with a very very nice solution to my problem of multiplexing sockets and threads. I have made a Scheduler that accepts tasks and perform the tasks in a thread. The tasks must be non blocking of course and yield. So far the ssdp announce and listen can be non blocking and it works! I created 2 tasks. One to announce and one to listen with only one thread!. I now receive my announcements, even though I have only one thread! Ok I dont want to receive my announcements but at least it works! Now I just need to add tasks to listen to incoming requests on my webserver (for each interface) and we have a very basic upnp support with only 1 thread!!!! Ah I love it I love it …

Leave a Reply

Categories

Archives