<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.14">
  <compounddef id="rpcFibCli_8m" kind="file" language="Objective-C">
    <compoundname>rpcFibCli.m</compoundname>
      <sectiondef kind="var">
      <memberdef kind="variable" id="rpcFibCli_8m_1a0ab21f4419a1405b21abd8a77d54c110" prot="public" static="no" mutable="no">
        <type></type>
        <definition>rpc</definition>
        <argsstring></argsstring>
        <name>rpc</name>
        <initializer>= CisInterface(&apos;<ref refid="classCisRpcClient" kindref="compound">CisRpcClient</ref>&apos;, &apos;rpcFibSrv_rpcFibCli&apos;, &apos;%d&apos;, &apos;%d %d&apos;)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="10" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" bodystart="10" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="rpcFibCli_8m_1ab09a63eb35b270b5cdbead1983ebdccb" prot="public" static="no" mutable="no">
        <type></type>
        <definition>log</definition>
        <argsstring></argsstring>
        <name>log</name>
        <initializer>= CisInterface(&apos;<ref refid="classCisOutput" kindref="compound">CisOutput</ref>&apos;, &apos;output_log&apos;)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="11" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" bodystart="11" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="rpcFibCli_8m_1a4c9511b06510fc13437bc61d322d73e6" prot="public" static="no" mutable="no">
        <type>Read entire contents of</type>
        <definition>Read entire contents of yaml[ret, ycontent]</definition>
        <argsstring>[ret, ycontent]</argsstring>
        <name>yaml</name>
        <initializer>= ymlfile.recv()</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="13" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" bodystart="14" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="rpcFibCli_8m_1a6f6ccfcf58b31cb6412107d9d5281426" prot="public" static="no" mutable="no">
        <type>for</type>
        <definition>for i</definition>
        <argsstring></argsstring>
        <name>i</name>
        <initializer>= 1:iterations
    
    % Call the server and receive response
    fprintf(&apos;rpcFibCli(M):  fib(-&gt;%-2d) ::: &apos;, i)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="22" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" bodystart="22" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="rpcFibCli_8m_1a4aa8c2a57eff2bccca3195d50b2572ad" prot="public" static="no" mutable="no">
        <type>end Log result by sending it to the log connection</type>
        <definition>end Log result by sending it to the log connection s</definition>
        <argsstring></argsstring>
        <name>s</name>
        <initializer>= sprintf(&apos;fib(%2d&lt;-) = %-2d&lt;-\n&apos;, fib{1}, fib{2})</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="33" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" bodystart="33" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="rpcFibCli_8m_1af1ec77bdca1b30e8153fc5da88f603db" prot="public" static="no" mutable="no">
        <type></type>
        <definition>ret</definition>
        <argsstring></argsstring>
        <name>ret</name>
        <initializer>= log.send(s)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="35" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" bodystart="35" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="rpcFibCli_8m_1acdfac61daabc0ad1e3c2fb11fed163a7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>function</type>
        <definition>function rpcFibCli</definition>
        <argsstring>(iterations) iterations</argsstring>
        <name>rpcFibCli</name>
        <param>
          <type>iterations</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="2" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibCli_8m_1a3fabaff4499e0a3b9a09a25296cf07f3" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>fprintf</definition>
        <argsstring>(&apos;Hello from Matlab rpcFibCli:iterations=%d\n&apos;, iterations)</argsstring>
        <name>fprintf</name>
        <param>
          <type>&apos;Hello from Matlab rpcFibCli:iterations</type>
          <defval>%d\n&apos;</defval>
        </param>
        <param>
          <type>iterations</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="5" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibCli_8m_1a66be31b46c67ad7be6d4465bbf13a968" prot="public" static="no" const="no" explicit="no" inline="no" virt="virtual">
        <type>&apos;<ref refid="classCisInput" kindref="compound">CisInput</ref>&apos;, &apos;yaml_in&apos;</type>
        <definition>&apos;CisInput&apos;, &apos;yaml_in&apos; CisInterface</definition>
        <argsstring>()</argsstring>
        <name>CisInterface</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="8" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibCli_8m_1acb58dcce9da5e79d109c568816407b46" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>if</definition>
        <argsstring>(~ret)</argsstring>
        <name>if</name>
        <param>
          <type>~</type>
          <declname>ret</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="15" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibCli_8m_1ace8910818f62bc666cd074d5dadbb591" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>disp</definition>
        <argsstring>(&apos;rpcFibCli(M):RECV ERROR&apos;)</argsstring>
        <name>disp</name>
        <param>
          <type>&apos;rpcFibCli(M):RECV ERROR&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="16" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibCli_8m_1af50b3d88fee3112c7ed3cd06920e0677" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>exit</definition>
        <argsstring>(-1)</argsstring>
        <name>exit</name>
        <param>
          <type>-</type>
          <declname>1</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="17" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibCli_8m_1a55ef5048636cef08e477b682600c3c63" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>end</type>
        <definition>end fprintf</definition>
        <argsstring>(&apos;rpcFibCli:yaml has %d lines\n&apos;,... length(strsplit(ycontent, &apos;\n&apos;, &apos;CollapseDelimiters&apos;, false)))</argsstring>
        <name>fprintf</name>
        <param>
          <type>&apos;rpcFibCli:yaml has %d lines\n&apos;</type>
        </param>
        <param>
          <type>... </type>
          <declname>length</declname>
          <array>strsplit(ycontent, &apos;\n&apos;, &apos;CollapseDelimiters&apos;, false)</array>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="19" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibCli_8m_1aaf9e50bd0991af5eb0823954699821f6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>disp</definition>
        <argsstring>(&apos;rpcFibCli(M):RPC CALL ERROR&apos;)</argsstring>
        <name>disp</name>
        <param>
          <type>&apos;rpcFibCli(M):RPC CALL ERROR&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="28" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibCli_8m_1a28c3999d4bd36d9a7529f05f5699794d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>fprintf</definition>
        <argsstring>(s)</argsstring>
        <name>fprintf</name>
        <param>
          <type>s</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="34" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibCli_8m_1ae8a17e31748bac2f22d71288cfe73498" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>disp</definition>
        <argsstring>(&apos;rpcFibCli(M):SEND ERROR&apos;)</argsstring>
        <name>disp</name>
        <param>
          <type>&apos;rpcFibCli(M):SEND ERROR&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="37" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibCli_8m_1a2e0f2b6fb438c28f8d1fd552bb05701a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>end end</type>
        <definition>end end disp</definition>
        <argsstring>(&apos;Goodbye from Matlab rpcFibCli&apos;)</argsstring>
        <name>disp</name>
        <param>
          <type>&apos;Goodbye from Matlab rpcFibCli&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="42" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibCli_8m_1adf5c804dfce7a70e36dda02995fad481" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>exit</definition>
        <argsstring>(0)</argsstring>
        <name>exit</name>
        <param>
          <type>0</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m" line="43" column="1"/>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="normal"></highlight></codeline>
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="keyword">function</highlight><highlight class="normal"><sp/>rpcFibCli(iterations)</highlight></codeline>
<codeline lineno="3"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="4"><highlight class="normal"><sp/><sp/>iterations<sp/>=<sp/>str2num(iterations);</highlight></codeline>
<codeline lineno="5"><highlight class="normal"><sp/><sp/>fprintf(</highlight><highlight class="stringliteral">&apos;Hello<sp/>from<sp/>Matlab<sp/>rpcFibCli:<sp/>iterations<sp/>=<sp/>%d\n&apos;</highlight><highlight class="normal">,<sp/>iterations);</highlight></codeline>
<codeline lineno="6"><highlight class="normal"></highlight></codeline>
<codeline lineno="7"><highlight class="normal"><sp/><sp/>%<sp/>Set<sp/>up<sp/>connections<sp/>matching<sp/>yaml</highlight></codeline>
<codeline lineno="8"><highlight class="normal"><sp/><sp/>%<sp/>RPC<sp/>client-side<sp/>connection<sp/>will<sp/>be<sp/>$(server_name)_$(client_name)</highlight></codeline>
<codeline lineno="9"><highlight class="normal"><sp/><sp/>ymlfile<sp/>=<sp/>CisInterface(&apos;<ref refid="classCisInput" kindref="compound">CisInput</ref>&apos;,<sp/>&apos;yaml_in&apos;);</highlight></codeline>
<codeline lineno="10"><highlight class="normal"><sp/><sp/>rpc<sp/>=<sp/>CisInterface(</highlight><highlight class="stringliteral">&apos;CisRpcClient&apos;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&apos;rpcFibSrv_rpcFibCli&apos;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&apos;%d&apos;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&apos;%d<sp/>%d&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="11"><highlight class="normal"><sp/><sp/>log<sp/>=<sp/>CisInterface(</highlight><highlight class="stringliteral">&apos;CisOutput&apos;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&apos;output_log&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="12"><highlight class="normal"></highlight></codeline>
<codeline lineno="13"><highlight class="normal"><sp/><sp/>%<sp/>Read<sp/>entire<sp/>contents<sp/>of<sp/>yaml</highlight></codeline>
<codeline lineno="14"><highlight class="normal"><sp/><sp/>[ret,<sp/>ycontent]<sp/>=<sp/>ymlfile.recv();</highlight></codeline>
<codeline lineno="15"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(~ret);</highlight></codeline>
<codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/>disp(</highlight><highlight class="stringliteral">&apos;rpcFibCli(M):<sp/>RECV<sp/>ERROR&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/>exit(-1);</highlight></codeline>
<codeline lineno="18"><highlight class="normal"><sp/><sp/>end</highlight></codeline>
<codeline lineno="19"><highlight class="normal"><sp/><sp/>fprintf(</highlight><highlight class="stringliteral">&apos;rpcFibCli:<sp/>yaml<sp/>has<sp/>%d<sp/>lines\n&apos;</highlight><highlight class="normal">,<sp/>...</highlight></codeline>
<codeline lineno="20"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>length(strsplit(ycontent,<sp/></highlight><highlight class="charliteral">&apos;\n&apos;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&apos;CollapseDelimiters&apos;</highlight><highlight class="normal">,<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="21"><highlight class="normal"></highlight></codeline>
<codeline lineno="22"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>1:iterations</highlight></codeline>
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/>%<sp/>Call<sp/>the<sp/>server<sp/>and<sp/>receive<sp/>response</highlight></codeline>
<codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/>fprintf(</highlight><highlight class="stringliteral">&apos;rpcFibCli(M):<sp/><sp/>fib(-&gt;%-2d)<sp/>:::<sp/>&apos;</highlight><highlight class="normal">,<sp/>i);</highlight></codeline>
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/>[ret,<sp/>fib]<sp/>=<sp/>rpc.call(i);</highlight></codeline>
<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(~ret);</highlight></codeline>
<codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>disp(</highlight><highlight class="stringliteral">&apos;rpcFibCli(M):<sp/>RPC<sp/>CALL<sp/>ERROR&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>exit(-1);</highlight></codeline>
<codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="31"><highlight class="normal"></highlight></codeline>
<codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/>%<sp/>Log<sp/>result<sp/>by<sp/>sending<sp/>it<sp/>to<sp/>the<sp/>log<sp/>connection</highlight></codeline>
<codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/>s<sp/>=<sp/>sprintf(</highlight><highlight class="stringliteral">&apos;fib(%2d&lt;-)<sp/>=<sp/>%-2d&lt;-\n&apos;</highlight><highlight class="normal">,<sp/>fib{1},<sp/>fib{2});</highlight></codeline>
<codeline lineno="34"><highlight class="normal"><sp/><sp/><sp/><sp/>fprintf(s);</highlight></codeline>
<codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/>ret<sp/>=<sp/>log.send(s);</highlight></codeline>
<codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(~ret);</highlight></codeline>
<codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>disp(</highlight><highlight class="stringliteral">&apos;rpcFibCli(M):<sp/>SEND<sp/>ERROR&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="38"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>exit(-1);</highlight></codeline>
<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="40"><highlight class="normal"><sp/><sp/>end</highlight></codeline>
<codeline lineno="41"><highlight class="normal"></highlight></codeline>
<codeline lineno="42"><highlight class="normal"><sp/><sp/>disp(</highlight><highlight class="stringliteral">&apos;Goodbye<sp/>from<sp/>Matlab<sp/>rpcFibCli&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="43"><highlight class="normal"><sp/><sp/>exit(0);</highlight></codeline>
<codeline lineno="44"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="45"><highlight class="normal">end</highlight></codeline>
<codeline lineno="46"><highlight class="normal"></highlight></codeline>
<codeline lineno="47"><highlight class="normal"></highlight></codeline>
<codeline lineno="48"><highlight class="normal"></highlight></codeline>
<codeline lineno="49"><highlight class="normal"></highlight></codeline>
    </programlisting>
    <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibCli.m"/>
  </compounddef>
</doxygen>
