Best way to use Octave in external application
Doug Stewart
dastew at sympatico.ca
Sat Apr 12 06:47:42 CDT 2008
Francesco Cat wrote:
> 2008/4/11, Doug Stewart <dastew at sympatico.ca>:
>
>> Francesco Cat wrote:
>>
>>
>>> Hi all,
>>> I am planning to create a standalone C++ or Java application. I would
>>> like to use Octave for various tasks, such as calculus and linear
>>> system analysis.
>>> What is the best choice do do this? I have tried using sockets but I
>>> got nothing working (poor documentation and no examples at all).
>>>
>>>
>>>
>>>
>> these links might help you get the socket to work. I got it going in c#
>>
>> http://velveeta.che.wisc.edu/octave/lists/archive//help-octave.2006/msg00992.html
>>
>> and
>>
>> http://velveeta.che.wisc.edu/octave/lists/archive//help-octave.2006/msg00987.html
>>
>>
> my main problem is getting listen() working on octave 3.0:
> on octave-forge documentation
> (http://octave.sourceforge.net/doc/f/listen.html) i can see:
> listen(port,host,host,...)
> Listen for connections on the given port. [...]
>
> while inside octave i get:
>
> octave:2> help listen
> listen(octave_socket,int)
> See the listen() man
> pages/home/francesco/octave/sockets-1.0.3/i686-pc-linux-gnu-api-v32/sockets.oct
>
> and i wasn't able to see the listen() man pages....
>
>
here is the Octave results
octave:1> listen(22000,'192.168.1.100','debug')
listening on port 22000
trying to accept
connected
server: got connection from 192.168.1.100
trying to accept
waiting for command
received command !!!x after -0us
does this help? I was running on one machine on my LAN and my c# was at IP address 192.68.1.100
Doug
More information about the Help-octave
mailing list