01-27-2006 04:19 AM - edited 01-27-2006 04:19 AM
Message Edited by Dennisvr on 01-27-2006 04:20 AM
02-22-2006 07:57 AM
02-22-2006 08:36 AM
It's used for local communication between applications. Instead of using ip address and port numbers, it uses a file to open the socket connection. The System logging daemon (syslogd) creates the /dev/log socket, and every program/daemon/service can open it to send messages to syslogd.
I solved the problem some time ago by writing a library in C (libsyslog.so) that interfaces to the socket. I'm still interested if there are other methods to open unix domain sockets.
I can give you a source example of the C code if you're interested.
02-23-2006 08:54 AM
I haven't heard the term you are using but the functionality sounds suspiciously like what I would call pipes. If that is so look at the pipe VIs that come with LabVIEW.
@Dennisvr wrote:
It's used for local communication between applications. Instead of using ip address and port numbers, it uses a file to open the socket connection. The System logging daemon (syslogd) creates the /dev/log socket, and every program/daemon/service can open it to send messages to syslogd.
I solved the problem some time ago by writing a library in C (libsyslog.so) that interfaces to the socket. I'm still interested if there are other methods to open unix domain sockets.
I can give you a source example of the C code if you're interested.
02-24-2006 03:04 AM
02-24-2006 04:06 AM
I see. Well LabVIEW does not support this type of socket. The only socket interface it has already is the one used for its TCP/UDP implementation and that is using sockaddr_in internally to bind. As such you have two options:
@Dennisvr wrote:Pipes and sockets are different things. At first I thougt they could be the same too, and I even tried opening it using the LabVIEW pipe functions, but that didn't work.Look at this link, it explains how it works, even with some examples: http://www.ecst.csuchico.edu/~beej/guide/ipc/usock.html
02-24-2006 07:26 AM