[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
loadlibrary... again
From: |
marcimatz |
Subject: |
loadlibrary... again |
Date: |
Thu, 21 Nov 2013 07:11:46 -0800 (PST) |
Hello,
I hope this is the right place to ask this. This is my first post and I am
very new to Octave.
I have a shared library that has several bindings (c/c++, Matlab, Java,
Python, Urbi). I want to make that library available in Octave.
So I understand there is no equivalent of loadLibrary in Octave. But how can
I handle following scenario in Octave (imagine the xxx-functions are
functions in my shared library, called via Octave):
clientId=xxxStartCommunicationWithServer(Ip,port)
xxxSendMessage(clientId,"Hello")
...
xxxStopCommunicationWithServer(clientId)
in above code, xxxStartCommunicationWithServer will start a communication
thread, connect to the server and stay connected until
xxxStopCommunicationWithServer is called.
If I use the Oct-file approach, each call to a xxx function will:
- load the library
- call the function
- unload the library
The unload of the library will automatically kill the communication thread
and release all memory/variables that were allocated during the call to
xxxStartCommunicationWithServer.
How can I handle my task in Octave? In Matlab, typically, I would do:
loadLibrary
clientId=xxxStartCommunicationWithServer(Ip,port)
xxxSendMessage(clientId,"Hello")
...
xxxStopCommunicationWithServer(clientId)
unloadLibrary
--
View this message in context:
http://octave.1599824.n4.nabble.com/loadlibrary-again-tp4659377.html
Sent from the Octave - General mailing list archive at Nabble.com.
- loadlibrary... again,
marcimatz <=
- Re: loadlibrary... again, Michael Goffioul, 2013/11/21
- Re: loadlibrary... again, marcimatz, 2013/11/21
- Re: loadlibrary... again, Michael Goffioul, 2013/11/21
- Re: loadlibrary... again, Jose, 2013/11/21
- Re: loadlibrary... again, marcimatz, 2013/11/23
- Re: loadlibrary... again, Jose, 2013/11/23
- Re: loadlibrary... again, Jose, 2013/11/23
- Re: loadlibrary... again, marcimatz, 2013/11/25