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
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
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
Fantastic. Thanks.
I'll have a play. It'll probably take me a while so don't hold your breath!
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
Hi,
can you share this one too? ;-)
Cheers, -- Pavel
On Mon, Sep 20, 2010 at 5:29 PM, Jason Grossman spam-me@xeny.net wrote:
Fantastic. Thanks.
I'll have a play. It'll probably take me a while so don't hold your breath!
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
oh, sorry, I missed the previous mail
-- Pavel
On Mon, Sep 20, 2010 at 5:39 PM, Pavel Krivanek pavel.krivanek@gmail.comwrote:
Hi,
can you share this one too? ;-)
Cheers, -- Pavel
On Mon, Sep 20, 2010 at 5:29 PM, Jason Grossman spam-me@xeny.net wrote:
Fantastic. Thanks.
I'll have a play. It'll probably take me a while so don't hold your breath!
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
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
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
http://localhost:8080/lobbyFor more information see the object webserver
-- Pavel
On Wed, Sep 22, 2010 at 11:36 AM, Jason Grossman spam-me@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
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@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
self-interest@lists.selflanguage.org