IPC with Squeak
David T. Lewis
lewis at mail.msen.com
Thu Jan 3 01:28:43 UTC 2008
On Wed, Jan 02, 2008 at 10:45:56PM +0100, Bert Freudenberg wrote:
> On Jan 2, 2008, at 22:10 , Michael Haupt wrote:
> >A process is talking to a running Squeak VM/image, sending it
> >requests. Squeak responds. Through what channels could both requests
> >and responses be sent?
> And OSProcess lets you connect processes via stdin/stdout.
On Unix or OS X you can use CommandShell with OSProcess, so that
an external process with stdin/stdout/stderr streams connected
to Squeak via OS pipes is for example:
(CommandShell pipeableProxyFor: 'ls -l') value
Sockets are a good cross-platform approach, and also would be
better if you want Squeak to respond to unsolicited connections
or to processes that are started independently of Squeak.
With respect to performance, as always if you did not measure
it then don't assume it's a problem. Sockets and pipes are good
enough for most purposes.
More information about the Squeak-dev