Server Configuration matlab code
Client Configuration matlab code
data = 'Hai';
s = whos('data')
tcpipServer = tcpip('0.0.0.0',55000,'NetworkRole','Server');
set(tcpipServer,'OutputBufferSize',s.bytes);
fopen(tcpipServer);
fwrite(tcpipServer,data(:),'char');
fclose(tcpipServer);
Client Configuration matlab code
tcpipClient = tcpip('192.168.1.106',55000,'NetworkRole','Client')
set(tcpipClient,'InputBufferSize',7688);
fopen(tcpipClient);
rawData = fread(tcpipClient,961,'double');
fclose(tcpipClient);
No comments:
Post a Comment