On Wed, 27 Jun 2007, kurmannthomas wrote:
> And last but not least, is there a backgroundworker (like in C#) that
> always runs in the background but doesnt lock the programm. For
> instance im using TCP sockets and connecting to the server, but if it
> doesnt connect it just locks and waits for connection. It would be
> nice to let this run in the background, always waiting for connection.
nah there's nothing so primitive :-)
Not quite sure what you application is - your description above sounds a
little contradictory.
If you are setting up a socket to listen for incoming connections then you
probably want async sockets see...
http://squirl.nightmare.com/medusa/async_sockets.html
if you are making a connection to another machine that isn't listening you
need to use non-blocking an example is here
http://www.developerweb.net/forum/showthread.php?p=13486
None of this is specific to this board - it is standard Unix/Linux network
programming. Google is your friend, e.g.
http://www.faqs.org/faqs/unix-faq/socket/
http://www.scit.wlv.ac.uk/~jphb/comms/sockets.html
and loads of other places.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|