Re: "socket" addon still not being detected

Duke Normandin <[email protected]> Sun, 19 Feb 2012 13:03:25 -0700
Newsgroups gmane.comp.lang.io
Message-ID <20120219130325.21991094@select-man>
On Sun, 19 Feb 2012 10:36:18 -0600
Jeremy Tregunna <[email protected]> wrote:

> 
> On 2012-02-19, at 10:29 AM, Duke Normandin wrote:
> 
> > I'm still trying this (from IoGuide.html)
> > 
> > whois := method(host,
> > socket := Socket clone 
> > setHost("rs.internic.net") setPort(43) 
> > socket connect streamWrite(host, "\n")
> > while(socket streamReadNextChunk, nil)
> > return socket readBuffer
> > )
> > 
> > whois iolanguage.com
> > 
> > I keep getting:
> > 
> > Exception: Socket does not respond to 'socket'
> > ---------
> > Socket socket Command Line 1
> > Object whois Command Line 1
> > 
> > Is there away to determine if the addons are installed? Any
> > other ideas? TIA ...
> > 
> > --
> > Duke
> > 

> In the REPL, just type: Socket, and see what happens.
> 
> Regards,
> 
> Jeremy Tregunna


dnormandin@select-man:~$
io
Io 20110905
Io> Socket
==>  Socket_0x840ac18:
  AF_INET          = 2
  AF_UNIX          = 1
  acceptTimeout    = 3
  address          = 127.0.0.1:0
  appendToWriteBuffer = method(buffer, ...)
  asyncAccept      = Socket_asyncAccept()
  asyncBind        = Socket_asyncBind()
  .
  .
  writeFromBuffer  = method(writeCallback, ...)
  writeListMessage = method(aList, ...)
  writeMessage     = method(aSeq, ...)
  writeTimeout     = 60

Yet, when I enter the "whois" code at the REPL, I keep getting the
"Socket does not respond to 'socket'" error.

--
Duke