What is the best way to do a asynchronous socket (for reading socket)
in application without userinterface?
Those WSAAsyncXXX methods want that window handle ...
Any sample or hint?
Regards
MiLa
> What is the best way to do a asynchronous socket (for reading socket)
> in application without userinterface?
>
> Those WSAAsyncXXX methods want that window handle ...
You'll alway need a window if you wan't asynchronous sockets, because after
these functions have done their job, they have to inform you about it, and
the only way is to send a message to a window.
But you can use a hidden window! ( w/o WS_VISIBLE )
Bye,
Daniel
Regards
Mikko
Daniel Weber wrote in message ...
>Hi,
>
>What is the best way to do a asynchronous socket (for reading socket)
>in application without userinterface?
You use the same method as is used on Unix. Use the select function.
It can test a set of sockets for information to send/read and will
furthermore allow you to have a timeout.
This is covered by any Unix books on networks/sockets
Lars
------------------------------
Lars Gregersen (l...@kt.dtu.dk)
http://www.gbar.dtu.dk/~matlg
http://members.xoom.com/gregersenweb/
D
Lars Gregersen <l...@kt.dtu.dk> wrote in message
news:38d60b31...@news.dtu.dk...