Inter-moo communications?

H. Peter Anvin (hpa@trantor.storm.net)
Thu, 22 Feb 1996 23:38:31 PST


Followup to:  <Pine.LNX.3.91.960222221617.12856B-100000@monkey.sbay.org>
By author:    "Steven R. Loomis" <srl@monkey.sbay.org>
In newsgroup: local.moo
>
>  Hello, all.. I'm trying to set up some simple communications between t=
wo=20
> MOOs, basically an inter-MOO gateway.  I was thinking of having an obje=
ct=20
> on each side open an outbound connection to the other MOO.
>  Then if someone on moo "A" wanted to send the message "foo" to the oth=
er=20
> side, then the object on A which had the communciations open would caus=
e=20
> a verb on $login on moo B to be called. Two half duplex channels =3D on=
e=20
> full duplex.  Is there a better way to do this?

Yes, have the other MOO actually *log in*, say as "fooMOO".  Then use
standard MOO commands, or better yet, a read() loop to read the data.
Much more efficient.

>  Also, I have a simple gateway that lets one browse the MOO objects fro=
m
> a web browser. Right now, a cgi-bin opens up a new connection to the MO=
O=20
> and runs a hidden verb on $login, grabs the output, and closes the=20
> connection.
>=20

Yes, you can have the MOO trap HTTP commands directly.

	-hpa
--=20
PGP public key available - finger hpa@terminus.storm.net
"The earth is but one country, and mankind its citizens."  --  Bah=E1'u'l=
l=E1h
GE/CS 3.1 d- s-:- a- C++++ ULIS++++$ P+++ L++++>+++++ E++ W++ N++ o+ K
w--- O@ M V- PGP+ t+ 5++ X? R@ tv- b++ DI++++ D++(+) G e++ h- r-- y-