Hey there,

It is now time to have a closer look at witty for me.
I looked at the suggested methodes and using the Wt::WSocketNotifier
sounds nice, but I can't figure out how.

At the moment, I use asio with async sockets. I would need to connect  
those operations/sockets with
the Wt::WSocketNotifier, but i can't find neither an callback function, a  
connect method nor any possiblity to
pass a socket, only an int parameter.. do you use low-level OS sockets  
instead of the asio abstraction there?
and how would I get the signal then


--Mathias



On Mon, 01 Sep 2008 18:38:55 +0200, Wim Dumon <[EMAIL PROTECTED]> wrote:

> Hello Mathias,
>
> Yes you can.
> You will probably need the update lock for synchronisation purposes:
> http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WApplication_1_1UpdateLock.html
>
> Or, as an alternative, you may consider to use SocketNotifier:
> http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WSocketNotifier.html
> In this case, wt will keep track of events on your file descriptors
> and invoke slots when events occur.
>
> Regards,
> Wim.
>
> 2008/9/1 Mathias L. Baumann <[EMAIL PROTECTED]>:
>> Hi there,
>> i plan to write an multiserver. That is, a server that not only works  
>> with
>> http but also several other protocols. For that i need to start my own
>> socket functions and so on.
>> if read that for executing wt one needs to call WTrun (or sth like  
>> that).
>>
>> My question now is, can i execute this function in an other thread so i
>> can do my own program loop at the same time, listening for other ports  
>> and
>> so on?
>>
>> --Mathias L. Baumann
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's  
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great  
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the  
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's  
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great  
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the  
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to