Sockets

3 次查看(过去 30 天)
Aldin
Aldin 2012-3-8
Sockets in MATLAB - how to implement?

回答(1 个)

Walter Roberson
Walter Roberson 2012-3-8
You can use the Instrument Control Toolbox.
Until a relatively recent version (R2011b I think it was), ICT was not able to act as a TCP server (but client was okay), but that limitation is no longer present.
There is a MATLAB File Exchange contribution "tcpudpip" which can be used as a replacement for the ICT networking capabilities.
Note: if you are wanting to create "raw sockets" (e.g., for custom headers, or for IP protocols other than UDP or TCP) or if you are wanting to go in to packet snooping mode, then the above-mentioned tools are not designed for that work, partly because raw sockets require privileged device access.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by