realbasic-nug
[Top] [All Lists]

Re: ICPSocket with Separate Apps

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: ICPSocket with Separate Apps
From: Joe Strout <joe@inspiringapps.com>
Date: Fri, 31 Jul 2009 15:06:39 -0600
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <20090731202508.3ACE64B5201C@mail.flattopinc.com>
Organization: Inspiring Applications, Inc.
References: <20090731202508.3ACE64B5201C@mail.flattopinc.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
User-agent: Thunderbird 2.0.0.22 (Macintosh/20090605)
Rubber Chicken Software Co. wrote:
I am trying to create two separate applications that talked to each other through ICPSocket.

Do you basically do this with both apps?

// Set each apps ICPSockets Path in the ICPSocket Constructor; Me.Path = /tmp/AppComm"
// create the ICPSocket (New())
// MyICP.Connect
// MyICP.Listen

All Write commends should show up in the other app's DataAvailable event.

Pretty much. They don't both connect and listen -- one listens, the other connects to the listener.

NOW, one twist. One is a ServiceApplication, the other is a regular Application. I Launch the Service App from the regular app. The ServiceApp creates, connects, and listens, then goes into a Loop until the DataAvailable says "stop", then it breaks out. During the loop, the Service App Writes() to the regular app and increments a counter to display on the Window.

What's the twist?  This all sounds OK to me.

Best,
- Joe

--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>