[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: open socket with listen() and still have command line available?
From: |
Paul Kienzle |
Subject: |
Re: open socket with listen() and still have command line available? |
Date: |
Sun, 27 May 2007 15:00:00 -0400 |
On May 27, 2007, at 11:49 AM, Tom Holroyd (NIH/NIMH) [E] wrote:
Hmm... that still leaves the send/recv function in parallel which
will conflict with the posix socket interface.
Is there no way to implement namespaces?
Something like this needs to be done sometime.
pkg load socket
send(blah)
pkg load socket as skt
skt.send(blah)
We could get this sort of functionality with a new octave type
'module'. This would presumably be based on the octave symbol table
class, with some overloads for function lookup. The constructor would
take the module path as its parameter. The main work would be down by
overloading subsref to access the module.name references.
The syntax would look something like:
skt = module('socket')
skt.send(blah)
The vtk bindings in octave already do something similar IIRC.
All of the code is already in Octave to handle this, but it will almost
certainly need some refactoring in order to share rather than copy it.
- Paul
- Re: open socket with listen() and still have command line available?, (continued)
- Re: open socket with listen() and still have command line available?, Paul Kienzle, 2007/05/23
- Re: open socket with listen() and still have command line available?, Brian W., 2007/05/24
- Re: open socket with listen() and still have command line available?, Paul Kienzle, 2007/05/24
- Re: open socket with listen() and still have command line available?, Przemek Klosowski, 2007/05/25
- Re: open socket with listen() and still have command line available?, David Bateman, 2007/05/25
- Re: open socket with listen() and still have command line available?, John Swensen, 2007/05/25
- Re: open socket with listen() and still have command line available?, Paul Kienzle, 2007/05/26
- Re: open socket with listen() and still have command line available?, Paul Kienzle, 2007/05/26
- Re: open socket with listen() and still have command line available?, David Bateman, 2007/05/26
- Re: open socket with listen() and still have command line available?, Tom Holroyd (NIH/NIMH) [E], 2007/05/27
- Re: open socket with listen() and still have command line available?,
Paul Kienzle <=
- Re: open socket with listen() and still have command line available?, Tom Holroyd (NIH/NIMH) [E], 2007/05/30
- Re: open socket with listen() and still have command line available?, Paul Kienzle, 2007/05/31