Re: How to synchronize apps running?



On Thu, 18 Oct 2007 08:56:12 -0700, masterwally@xxxxxxxxx wrote:
One thing I forgot to mention: the first app waits for only one
connection, and - after the socket closes - terminates itself. So
your solution would close my app1 after "master" tries succeeds...

So change it. You said you could modify app1 and the master app.

You might also parse the output of an external tool like "lsof" or
"netstat" (or whatever's available for your platform) to see when the
socket is waiting for connections.

/gordon

--
.



Relevant Pages

  • Re: attn:MVPs
    ... winsock dll to the managed .net environment. ... I have an asynchronous TCP socket that listens for data from ... The Slave should not initiate any connection requests/ send other messages ... EXCEPT the acknowledgement for the incoming messages from master, ...
    (microsoft.public.dotnet.framework)
  • Re: Problem with socketpair , AF_UNIX and select call - can anybody through any light on this!
    ... The latter will make the recv return 0, ... $ ./socketpair server - Socket is ready to write ... master - Socket is ready to write ... that means the other end closed the connection. ...
    (Fedora)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #3]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... kernel socket family. ... presentation side is left to the client. ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... Make it possible for the client socket to be used to go to more than one ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #2]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... Make it possible for the client socket to be used to go to more than one ... Each connection goes to a particular "service". ...
    (Linux-Kernel)