[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unix sockets
From: |
Mike Miller |
Subject: |
Re: unix sockets |
Date: |
Tue, 13 Jun 2017 10:44:44 -0700 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Tue, Jun 13, 2017 at 18:18:37 +0200, Amin Mozaffarin wrote:
> Hi,
>
> I want to use unix sockets within octave.
> Is there an example, how to specify the serverinfo struct in order to
> connect to a socket?
> There only examples for AF_INET, not for AF_UNIX.
Are you asking about the sockets package? It looks to me like the
sockets package only supports AF_INET sockets at the moment. The socket
function allows you to create an AF_UNIX socket, but the bind and
connect functions only understand host and port arguments relevant for
AF_INET.
If you are comfortable with the option of writing your own C++ function
for Octave, then you can create a socket any way you like using the
system libraries.
If you are willing to test the in-development Python interface, then the
Python socket library should work.
--
mike
- unix sockets, Amin Mozaffarin, 2017/06/13
- Re: unix sockets,
Mike Miller <=