MATLAB Mex套接字包装器库 [英] MATLAB Mex Socket Wrapper Library

查看:97
本文介绍了MATLAB Mex套接字包装器库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人用Mex编写了用于MATLAB的POSIX套接字包装库吗?

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

我基本上想打开,书写和阅读.同步和异步替代方案都很好.我的主要目标平台是Linux.我知道Mex,也知道POSIX套接字.我只是想确定没有其他人这样做过?

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?

推荐答案

如果要使用套接字,则有两个选择:

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

1)从MATLAB内部使用Java功能(请参见此答案这里是一个简单的例子):

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

  • TCP/IP Socket Communications in MATLAB
  • TCP/IP Socket Communications in MATLAB using Java Classes

2)使用C MEX包装器:

2) use C MEX-wrappers:

  • msocket
  • TCP/UDP/IP Toolbox

我还认为仪器控制工具箱包括对 TCP 的支持 UDP 通信.

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

这篇关于MATLAB Mex套接字包装器库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆