Remote Squeaking (was Re: totally new to squeak)
Ned Konz
ned at bike-nomad.com
Sun Oct 21 18:49:46 UTC 2001
On Sunday 21 October 2001 09:31 am, Scott Jaderholm wrote:
> Alan Kay <Alan.Kay at squeakland.org> writes:
> > collaboration via: DnD of objects to other Squeaks,
>
> I'm probably reading this incorrectly, but can we drag objects to
> squeaks on other peoples systems?
Yes, if they're running a Squeak server. This code comes with Squeak. For
that matter, they can see your desktop, and manipulate things with a separate
Hand.
Actually, there seem to be three different systems available: the EToy*
stuff, the Nebraska stuff, and Telemorphic (which I haven't been able to
figure out yet).
> I really think it would be quite cool to be able to send objects over
> the network to other peoples squeak systems (with proper security of
> course). Is there support to do that?
You drag a Morph and drop it onto their badge using Nebraska, or onto the
fridge. Or if they have a "Morphs welcome here" sign in their world, you can
just drop a Morph into their world.
The security is limited to specifying certain privileges for other users:
chat/morph/fridge/statusrequest/statusreply/seedesktop/audiochat/audiochat2/multichat
By turning off the "morph" and "fridge" privileges, you can keep someone else
from giving you Morphs.
Look in the Objects tool under "Collaboration". You'll need a Listener; to
contact others you'll need their badges. You can make a badge given their IP
address.
The Listener listens on port 34151; you'll have to open that up through your
firewall. Telemorphic (RemoteHandMorph) uses port 54323.
You can make a badge for yourself like this:
(EToySenderMorph new
userName: 'Ned Konz'
userPicture: (Form fromFileNamed: '/home/ned/nedicon.jpg')
userEmail: 'ned at bike-nomad.com'
userIPAddress: 'nedkonz.dhs.org') openInWorld
If you drag a badge from the Objects tool, you can't set the user picture (as
far as I can tell) without inspecting it and setting the userPicture instvar
directly. It probably should have a menu choice to set the user picture.
Unfortunately, the default permissions for Nebraska are a bit permissive, as
the default is to allow all kinds of incoming messages from anyone. Look at
EToyGateKeeperEntry>>initialize
self flag: #bob. "need to decide better initial types"
super initialize.
ipAddress _ '???'.
accessAttempts _ attempsDenied _ 0.
lastRequests _ OrderedCollection new.
acceptableTypes _ Set withAll: EToyIncomingMessage allTypes.
I'd change the setting of acceptableTypes to something more restrictive, like:
Set withAll: #('chat' 'statusreply' 'statusrequest').
This way someone can start a chat but can't send you a bad Morph without
doing a little programming. You can later check the permission boxes in the
Listener as desired.
Nebraska uses port 9091, if you want to try that out. I don't know anything
about it, though.
--
Ned Konz
currently: Stanwood, WA
email: ned at bike-nomad.com
homepage: http://bike-nomad.com
More information about the Squeak-dev
mailing list
|