[self-interest] web server
Jason Grossman
spam-me at xeny.net
Wed Sep 22 14:45:35 UTC 2010
Thanks very much.
When I do that, all I get in my web browser is "Servlet Not Found" ... but this message is being served by Self, so I'm getting somewhere! I should be able to take it from here. Maybe. :-)
Jason
On 22/09/2010, at 8:32 PM, Pavel Krivanek wrote:
> Hi,
>
>
> to load it evaluate:
> 'webserver.self' runScript
>
> webserver registerServlet: (webserver exampleServlets lobbyBrowserServlet copy) At: 'lobby'.
> webserver start.
>
> then look at: http://localhost:8080/lobby
>
> For more information see the object webserver
>
> -- Pavel
>
> On Wed, Sep 22, 2010 at 11:36 AM, Jason Grossman <spam-me at xeny.net> wrote:
>
> Sorry for the newbie question but, would you believe, I can't work out how to file in that file into a snapshot? I've read the online documentation, and I can see how to file OUT a module, but unless I've missed something (very possible) those instructions don't cover going in the opposite direction.
>
>
>
> Jason
>
> On 20/09/2010, at 11:52 PM, Russell Allen wrote:
>
> > Hi Jason,
> >
> > A web server is pretty easy - no external functions needed. I've attached a simple one I did a while back - it probably doesn't work properly but it should give you the idea.
> >
> > If you do write one, please share it!
> >
> > Russell
> >
> >
> > <webserver.self>
> >
> > On 20/09/2010, at 11:57 AM, Jason Grossman wrote:
> >
> >> Hi all.
> >>
> >> I've been wondering whether it would be easy to write a web server in Self. Looking at the documentation, I can't see any reference to useful primitives for this. Am I missing something? Or would it have to be done by calling out to external functions written in e.g. C?
> >>
> >> Thanks
> >>
> >> Jason
> >
>
>
>
>
>
More information about the Self-interest
mailing list