⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 closemajordomo.m

📁 A very small 250-line library (written entirely in MATLAB) that allows multiple MATLAB programs to t
💻 M
字号:
function closemajordomo(sendsoc,receivesoc)%function closemajordomo(sendsoc,receivesoc)%%This funtion closes the ports opened with initmajordomo,%but first releases any remote worker that could be %available in the input queues%% by Lucio Andrade con=tcpip_listen(receivesoc); while con>-1  ack=1;  sendvar(con,ack)  con=tcpip_listen(receivesoc); end  pause(2) % to ensure workers are available  con=tcpip_listen(sendsoc); while con>-1  func.name='release';  func.argin=0;func.argout=0;  sendvar(con,func.name)  sendvar(con,char(func.argin))  sendvar(con,char(func.argout))  con=tcpip_listen(sendsoc); end   pause(2) % to ensure workers were released before braking the pipe tcpip_close('all')

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -