02-14-2014 11:36 AM
Trying to port a Windows app to Linux 64-bit app. I ported a project well into LabVIEW 2014 Beta, however there is a module that uses wsock32.dll to call the following function:
long setsockopt( long socket, long protocol, long selector, long *value, long size)
What is a replacement method in Linux?
Thanks
02-14-2014 04:44 PM
02-14-2014 04:53 PM
What is the name of the library in Linux? Is there an example of a wrapper?
Thanks!
02-16-2014 03:30 PM
02-19-2014 10:16 AM
Could you please tell me the correct .so when you get a chance?
Thanks!
02-19-2014 12:01 PM
02-23-2014 03:33 PM
Checked and on Linux they seem to have wrapped all basic code into libc.so including libsocket. The only difficulty about this is that the actual libc usually is versioned and that Linux distributions don't seem to create a libc.so symbolic link at all but rather one that is a so called soname, currently libc.so.6.
Mine is libc-2.10.1.so and libc.so.6 but that is from an old Ubuntu 9 installation. Newest Linux kernels certainly will contain a default libc of 2.18 or higher.
Because of this and also the different numeric values of most socket constants like SOL_xxx and others between WinSock and BSD sockets, I still think trying to do this all on LabVIEW level is more pain than gain.