[GOODIE] NetworkContext

klaus.witzel at insyst.ch klaus.witzel at insyst.ch
Sun Oct 17 14:09:24 UTC 2004


from preamble:

"Change Set:		NetworkContext
Date:			25 September 2004
Author:			Klaus D. Witzel

Mailto:		klaus.witzel at insyst.ch

NetworkContext is Squeak's encounter with a new subclass of ContextPart
of the third kind.

With network context a MethodContext (and also BlockContext derived from
its MethodContext) can travel over a network and has then executed its
method on another machine. This is not remote procedure call, every
subclass of ContextPart can be sent over the network, with other words:
the context of every message send.

The concept ensures that the compiled method is the same on both sides
(no bytecodes, no viruses are transmitted ;-) Existing methods and new
methods can be enhanced with network context with ease, one has just to
tell at which endpoint of the network a block of code runs.

Have a look at the examples in TestNetworkContext and there is also a
Browser with network context (not finished, many hacks in Browser don't
make it easy to derive a subclass).

Read the class comment in NetworkContext and in NetworkContextSimulation
before working with network context in one of your methods.

There is a doIt in the class comment of BrowserWithNetworkContext which
lets you browse the Squeak image on my machine (as of the time of this
writing: no message selectors, no source [method] code - do only browse
the system categories and the class comments since everything else you
do is done against your Squeak image).

This version of NetworkContext has been tested and is in use for several
weeks. I am looking forward to receiving bug reports, comments,
suggestions for enhancements and for future directions and for answering
your questions.

Kind Regards,

Klaus D. Witzel
klaus.witzel at insyst.ch

"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NetworkContext.cs.gz
Type: application/octet-stream
Size: 20717 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20041017/4c69199d/NetworkContext.cs.obj


More information about the Squeak-dev mailing list