help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to use Octave in external application


From: Doug Stewart
Subject: Re: Best way to use Octave in external application
Date: Sat, 12 Apr 2008 07:47:42 -0400
User-agent: Thunderbird 2.0.0.12 (X11/20080227)

Francesco Cat wrote:
2008/4/11, Doug Stewart <address@hidden>:
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]