MATLAB Mex Socket Wrapper Library
Asked Answered
N

1

2

Have anybody written a POSIX socket wrapping library for MATLAB using Mex?

I basically want to open, write and read. Both sync and asynchronous alternatives would be nice. My main target platform is Linux. I know Mex and I know POSIX sockets. I just want to make certain that nobody else has done this already?

Nephelinite answered 2/10, 2011 at 14:11 Comment(0)
I
4

If you want to work with sockets, you have two options:

1) use Java capabilities from inside MATLAB (see this answer here on SO for a quick example):

2) use C MEX-wrappers:

I also think that the Instrument Control Toolbox includes support for TCP UDP communication.

Inquiline answered 2/10, 2011 at 14:39 Comment(1)
For Windows, a third option is to call into Microsoft .NET libraries from MATLAB: mathworks.com/help/techdoc/matlab_external/brpb5k6.html (I doubt this will work with Mono on Linux)Inquiline

© 2022 - 2024 — McMap. All rights reserved.