source: PlatformSupport/matperf/client/matperfClient_complete.asv

Last change on this file was 951, checked in by chunter, 16 years ago

adding matperf

  • Property svn:executable set to *
File size: 515 bytes
Line 
1% this program terminates the server and return the structs it made.
2% it basically sends signal 7 which the serve recognizes as a sign to
3% terminate the experiment.
4function matperfClient_complete
5while
6    udp = pnet('udpsocket',3333);
7    pnet(udp,'write',7);
8    pnet(udp,'writepacket','10.96.94.199',3333);
9    pnet(udp,'setreadtimeout',1);
10    pnet(udp,'readpacket');
11    data = pnet(udp,'read',1000,'double');
12    if data == 1,
13        disp('server terminated');
14    elseif data < 0 || data == 0
15end
16return
Note: See TracBrowser for help on using the repository browser.