MATLAB Answers

Sockets

11 views (last 30 days)
Aldin
Aldin on 8 Mar 2012
Sockets in MATLAB - how to implement?

Answers (1)

Walter Roberson
Walter Roberson on 8 Mar 2012
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!