[Newbies] Network Game - Server Client Approach

Martin Bleichner bleichner.martin at gmail.com
Fri Jun 5 19:26:09 UTC 2009


Hi all,

thanks for the many suggestions.
There does not seem to be THE way to do it.
What would be the easiest way, even if that would be not the nicest
solutoin.

Hi Markus,

when I try out the example i get.
MessageNotUnderstood: MIMEDocument >>upToEnd
the example should run through, shouldn't it?
Martin

2009/6/5 Markus Gaelli <gaelli at emergent.de>

> Hi Martin
>
>
>> I am still looking for a way to program my network game (four players on
>> four different computers collaboratively control the direction of one
>> object, each is responsible to move the object in one of four directions.)
>> I guess one solution would be a server-client approach.
>> Each client sends a value to the server, the server collects the input of
>> the four clients and returns the input of all four to each client.
>>
>> I figured that using the Komhttpserver package I can easily run a server.
>>
>> My problem is now is the communication between clients and server.
>> How can I send a value from each client to the server and get back the
>> inputs from all clients?
>>
>
> Have a look at
> HTTPClient examplePostArgs
> and
> HTTPClient httpGet: url
>
> As an alternative you might want to have a look at some remote messaging
> tools like soap opera
> http://www.mars.dti.ne.jp/~umejava/smalltalk/soapOpera/soapCore.html<http://www.mars.dti.ne.jp/%7Eumejava/smalltalk/soapOpera/soapCore.html>
> or rST
> http://wiki.squeak.org/squeak/2288
> or maybe even osc
> http://map.squeak.org/package/61f807be-83a3-4944-bfa1-686ddac7153c
>
> Cheers
>
> Markus
>
>
>>
>> Thanks a lot
>> Martin
>>
>> This is how I run my server.
>>
>> | ma |
>> ma := ModuleAssembly core.
>> ma serverRoot: FileDirectory default fullName.
>> ma documentRoot: FileDirectory default fullName.
>> ma directoryIndex: 'index.html index.htm'.
>> ma serveFiles.
>> (HttpService startOn: 8080 named: 'httpd') plug: ma rootModule
>> _______________________________________________
>> 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/20090605/270f24f0/attachment.htm


More information about the Beginners mailing list