ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: TS-7260 Application

To:
Subject: Re: [ts-7000] Re: TS-7260 Application
From: Jason Stahls <>
Date: Wed, 27 Jun 2007 08:02:48 -0400
You'll also need to lookup fork() and/or pthreads, as well as how to do IPC in Linux if you don't want your program to be stuck waiting for a socket connection.  Or you can use select() and sets of file descriptors.  If you don't want to go multi-threaded/process then your only bet will be select()

Jason

Jim Jackson wrote:

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:
    m("yahoogroups.com","ts-7000-digest");"> 
    m("yahoogroups.com","ts-7000-fullfeatured");">

<*> To unsubscribe from this group, send an email to:
    m("yahoogroups.com","ts-7000-unsubscribe");">

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

  
__._,_.___


SPONSORED LINKS
Single board computer Hardware Computer running slow
Linux os Single board

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU