>> >> I tried your patch. It works well for me. Obviously returning an empty >> vector is better than setting return_list(0) to retval as I did > before. >> Thanks for the patch. >> >> Linker Flag: >> As I compile the paket with 'pkg install sockets.tgz', I do not get > the >> output of make. But running uname on command line returns >> 'MINGW32_NT-6.1'. >> uname inside octave gives: >> octave:1> uname >> ans = >> scalar structure containing the fields: >> >> sysname = unknown >> nodename = unknown >> release = unknown >> version = unknown >> machine = unknown >> >> Maybe my octave configuration is not correct. >> >> Regards, >> Sebastian Singer. >> > > Sorry my tests of your patch where not comprehensive the other day. It > seems to me, that the dimension vector needs to be set like this: > dim_vector d; > d(0)=1; > d(1)=retval; > data.resize(d); > > Otherwise size of the returned object is ( retval x 0). > > Regards, > Sebastian Singer.
I applied the patch, with modifications, as revision 10764. The output from recv() is backwards compatible. It passes the test_octave_sockets.m function, at least on debian squeeze + octave3.6.2 I do now know how to set the linker flags, but I added a note in the Makefile for other users. I wont relase a new version at this time. Thanks Sebastian for your help! Paul ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev