Login  Register

Hmmmm ... no HTTP

Posted by Chris Cunnington on Sep 06, 2011; 9:00pm
URL: https://forum.world.st/Hmmmm-no-HTTP-tp3794570.html

I took out a book on HTTP to probe Spoon. Then I broke out Wireshark and
watched messages from 62982 and the base image. Guess what? There is no
use of HTTP anywhere. It's all TCP. That makes sense. There is TCPStream
and no HTTPStream.

Correspondent has no protocols in its subclasses. Actually, there is no
HTTP at all that you could put into the #transport instvar, because it's
not in the image. Because HTTPServer is not in this alpha. I guess
there'd be a corresponding HTTPStream to put into HTTPServer.

WormholeServer>>initialize
     transport := (
                     (TCPStream transport)
                     beBinary;
                     port: 7777)

Neat things do go by watching with Wireshark: ModuleEdition;
TagsEdition; activeEditionOfMethodAt:; and "an instance of Array doesn't
understand #editionOfMethodAt:inClassWithBaseID:"

Spoon transports raw object memory as binary data on the TCP protocol.
That's how it appears to me.

Chris
_______________________________________________
Spoon mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/spoon