Hi Nicolas,

Right, I took it upon myself to use my initiative.  Turned out the docs
have a spelling error... It's not socket_rec, it's socket_recv :)

I'm now getting an error with the listen function, but that's just me
being stupid.

Lee



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lee
McColl-Sylvester
Sent: 14 March 2006 17:34
To: Neko intermediate language mailing list
Subject: RE: [Neko] Streams

Just in case you need it, heres the function I'm using

        static function main()
        {
                var sock = new neko.Socket(true);
                sock.bind(neko.Socket.resolveHost("localhost"), 2000);
                sock.listen(5);
                while true
                {
                        var s : neko.Socket = sock.accept();
                }
        }

And I've attached the socket class.

Please don't laugh... I've not used sockets much before.  It's not a
complete function, but I'm piecing it together with examples from
different languages on the web.  So far, I think it's right :-$

Lee



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lee
McColl-Sylvester
Sent: 14 March 2006 17:29
To: Neko intermediate language mailing list
Subject: RE: [Neko] Streams

Hi Nicolas,

I've started testing the Socket class... So far, so good... I do have
one problem though... When I run my test, I get

Primitive not found : [EMAIL PROTECTED](4)

Is the documentation for this method wrong?

Regards,
Lee



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nicolas
Cannasse
Sent: 14 March 2006 14:54
To: Neko intermediate language mailing list
Subject: Re: [Neko] Streams

> You'll never have to
> worry about learning Flash development :)

And you can't imagine how much you're lucky about that point, John !
Thread closed, please keep further discussions off-list ;)

Nicolas

-- 
Neko : One VM to run them all
(http://nekovm.org)

-- 
Neko : One VM to run them all
(http://nekovm.org)

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to