The projects that I used that for are now defunct, so I doubt that I
will be making any updates. You can take over the code if you want to
improve it.
Henry Rich
On 11/8/2019 4:42 PM, Gilles Kirouac wrote:
I am studying the webio script
(https://code.jsoftware.com/wiki/Scripts/Socket_System).
I tried using the first example, but it fails using gethostbyname
because xlatecache has not been defined.
It seems that no sockmux object was created, thus preventing the
initialize verb to run.
After launching a new J session:
require'sockets/sockutils/webio'
((<,<'') ; 'www.google.com' ; '/') webgetform 0 2 $ a:
|domain error: gethostbyname_sockmux_
| h=.0;AF_INET_jsocket_;((1{"1 xlatecache),<'255.255.255.255'){~(0{"1
xlatecache) i.(<y)
To avoid that error, before running webgetform, I ran:
purgexlatecache_sockmux_ ''
Then no error occurred. I now have a sync example that I can trace.
As for the second example, reading a web page asynchronously, it fails
on using sdasync about which Chris wrote that it was now decommitted.
Henry, I hate to suggest more work, but if you find time someday, a
correction would be very welcome. Thanks! ~ Gilles
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm