This is a stable framework for writing client-server programs. It offers two-layers of usage from which you can choose. 1) send and receive ByteArray's or 2) send and receive objects.
Using the first layer, the only thing you're required to provide the framework is a one-argument block that answers the "response" ByteArray given the "request" ByteArray (the argument). This means you can actually write a server program in one line of code.
Using the object layer requires one additional piece of information, for details see http://minnow.cc.gatech.edu/squeak/2978.
The server-side of the framework manages scalability by queueing requests and sending responses in background Processes. There is also event support for each step along the way, which Magma uses for gathering statistics about the various queues, but its use isn't required, so as to preserve the utter simplicity.
Enjoy..
- Chris
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
Am Montag, 3. Februar 2003 19:46 schrieb Chris Muller:
This is a stable framework for writing client-server programs. It offers two-layers of usage from which you can choose. 1) send and receive ByteArray's or 2) send and receive objects.
As far as I understood the documentation, the following should send 'aaa' and receive 'Hello world!'?
MaServerSocket new listenOn: 12345 answer: [ :requestByteArray | 'Hello world!' ]. mySocket _ MaClientSocket hostAddress: #(127 0 0 1) port: 12345. mySocket sendData: #(65 65 65)
Regards, Markus
squeak-dev@lists.squeakfoundation.org