[Newbies] Network Game - Server Client Approach

Martin Bleichner bleichner.martin at gmail.com
Sat Jun 6 19:44:36 UTC 2009


Hi Derek,

I have to confess I just want the application. I assembled a small program
with squeak and was happy that I could do everything I wanted within
minutes.
(Drag and drop of morphs and some scripting).

Then I wanted to do that as a collaborative game and hoped that that would
also be possible quite quickly. However, it turned out to be more difficult.
So now I am stucked with network programing.
I am simply interested in the result. However, if there is no other way I am
also willing to learn how to get there.

Martin


2009/6/6 Derek O'Connell <doconnel at gmail.com>

> Hi Martin,
>
> is this an exercise to learn Smalltalk or do you just want the 4-way
> control application?
>
> Martin Bleichner wrote:
> > Hello again,
> >
> > I am making some slow progress. Well, I managed to run an example :)
> >
> > I run on one image the OldSocket example remoteTestServerUDP and on a
> second
> > the remoteTestClientUDP. I hope that is the right direction so far.
> > my transcript tells me that server and client endpoints are created, and
> > some packets are sent.
> >
> > I get the following message:
> > 4000 bytes/packet, 117packets/sec, 2370 packets dropped.
> >
> > he shouldn't drop packages, shouldn't he?
> >
> > Further, the image running the server is not responsive any more (does
> not
> > react to anything). Is that how it is supposed to work?
> >
> > Thanks for your help.
> > Martin
> >
> >
> > 2009/6/6 Markus Gaelli <gaelli at emergent.de>
> >
> >> Am 05.06.2009 um 21:26 schrieb Martin Bleichner:
> >>
> >>
> >>> Hi Markus,
> >>>
> >>> when I try out the example i get.
> >>> MessageNotUnderstood: MIMEDocument >>upToEnd
> >>> the example should run through, shouldn't it?
> >>> Martin
> >>>
> >> right, also examples should be tested first... ;-)
> >>
> >> Ok, with the following (replace upToEnd with contents and omit the
> closing
> >> of the (non)stream:
> >>
> >>   examplePostArgs
> >>        | args result resultStream |
> >>        args := Dictionary new.
> >>        args at: 'arg1' put: #('val1' );
> >>                 at: 'arg2' put: #('val2' );
> >>                 yourself.
> >>        resultStream := HTTPClient httpPostDocument: '
> >> http://www.squeaklet.com/cgi-bin/thrd.pl' args: args.
> >>        result := resultStream contents.
> >>        Transcript show: result;
> >>                 cr;
> >>                 cr
> >>
> >> it kind of works. Modulo that squeaklet.com is not there anymore so you
> >> don't get any specific answers.
> >> If I were you I'd probably go for the udp solution mentioned by others.
> >>
> >> It would be great though to have some kind of Etoyish solution for your
> >> problem (think lightweight open croquet for etoys) with udp or osc or
> >> anything under the hood) so this is a very interesting question!
> >>
> >> Cheers
> >>
> >> Markus
> >>
> >>
> >> _______________________________________________
> >> Beginners mailing list
> >> Beginners at lists.squeakfoundation.org
> >> http://lists.squeakfoundation.org/mailman/listinfo/beginners
> >>
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Beginners mailing list
> > Beginners at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20090606/88ae3bbd/attachment.htm


More information about the Beginners mailing list