<?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="rpcFibSrv_8m" kind="file" language="Objective-C">
    <compoundname>rpcFibSrv.m</compoundname>
      <sectiondef kind="var">
      <memberdef kind="variable" id="rpcFibSrv_8m_1ac6ecadf74d2079879779f49fb4003443" prot="public" static="no" mutable="no">
        <type>Continue receiving requests until error</type>
        <definition>Continue receiving requests until error input</definition>
        <argsstring></argsstring>
        <name>input</name>
        <initializer>= rpc.recv()</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" line="13" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" bodystart="13" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="rpcFibSrv_8m_1a2d54af2c0461e77ee9e6fc69a05c3e4c" prot="public" static="no" mutable="no">
        <type></type>
        <definition>pprev</definition>
        <argsstring></argsstring>
        <name>pprev</name>
        <initializer>= 0</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" line="21" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" bodystart="21" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="rpcFibSrv_8m_1a5ea3f8c3f8afcd9e2839d3c46973d866" prot="public" static="no" mutable="no">
        <type></type>
        <definition>prev</definition>
        <argsstring></argsstring>
        <name>prev</name>
        <initializer>= 1</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" line="22" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" bodystart="22" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="rpcFibSrv_8m_1a937d4dd628a8858b443a399410d2600b" prot="public" static="no" mutable="no">
        <type></type>
        <definition>result</definition>
        <argsstring></argsstring>
        <name>result</name>
        <initializer>= 1</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" line="23" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" bodystart="23" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="rpcFibSrv_8m_1aeab71244afb687f16d8c4f5ee9d6ef0e" prot="public" static="no" mutable="no">
        <type></type>
        <definition>n</definition>
        <argsstring></argsstring>
        <name>n</name>
        <initializer>= 1</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" line="24" column="1" bodyfile="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" bodystart="24" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="rpcFibSrv_8m_1a2b9c9e92bb4144fa29d12b22cef8be28" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>function</type>
        <definition>function rpcFibSrv</definition>
        <argsstring>(sleeptime) sleeptime</argsstring>
        <name>rpcFibSrv</name>
        <param>
          <type>sleeptime</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" line="2" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibSrv_8m_1a78bfe7988e3120b680222ef2acc91036" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>fprintf</definition>
        <argsstring>(&apos;Hello from Matlab rpcFibSrv:sleeptime=%f\n&apos;, sleeptime)</argsstring>
        <name>fprintf</name>
        <param>
          <type>&apos;Hello from Matlab rpcFibSrv:sleeptime</type>
          <defval>%f\n&apos;</defval>
        </param>
        <param>
          <type>sleeptime</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" line="5" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibSrv_8m_1a28687825806224d0102490b307d76b17" prot="public" static="no" const="no" explicit="no" inline="no" virt="virtual">
        <type>&apos;<ref refid="classCisRpcServer" kindref="compound">CisRpcServer</ref>&apos;, &apos;rpcFibSrv&apos;, &apos;%d&apos;, &apos;%d %d&apos;</type>
        <definition>&apos;CisRpcServer&apos;, &apos;rpcFibSrv&apos;, &apos;%d&apos;, &apos;%d %d&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/rpcFibSrv.m" line="7" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibSrv_8m_1a23c617484c318852a6945c031a06d19d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>Continue receiving requests until error</type>
        <definition>Continue receiving requests until error occurs</definition>
        <argsstring>(the connection is closed % by all clients that have connected). while 1 [flag</argsstring>
        <name>occurs</name>
        <param>
          <type>the connection is closed % by all clients that have</type>
          <declname>connected</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" line="10" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibSrv_8m_1af08e63f5009804b89a7ecd5f39abf586" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>if</definition>
        <argsstring>(~flag)</argsstring>
        <name>if</name>
        <param>
          <type>~</type>
          <declname>flag</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" line="14" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibSrv_8m_1a263db12cac42d3a3872b1bf353fd65d1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>fprintf</definition>
        <argsstring>(&apos;rpcFibSrv(M):end of input&apos;)</argsstring>
        <name>fprintf</name>
        <param>
          <type>&apos;rpcFibSrv(M):end of input&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" line="15" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibSrv_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/rpcFibSrv.m" line="16" column="1"/>
      </memberdef>
      <memberdef kind="function" id="rpcFibSrv_8m_1a425cbe621be860ac0615b1e220281b3e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>end Compute fibonacci number</type>
        <definition>end Compute fibonacci number fprintf</definition>
        <argsstring>(&apos;rpcFibSrv(M):&lt;- input %d&apos;, input{1})</argsstring>
        <name>fprintf</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m" line="20" 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/>rpcFibSrv(sleeptime)</highlight></codeline>
<codeline lineno="3"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="4"><highlight class="normal"><sp/><sp/>sleeptime<sp/>=<sp/>str2num(sleeptime);</highlight></codeline>
<codeline lineno="5"><highlight class="normal"><sp/><sp/>fprintf(</highlight><highlight class="stringliteral">&apos;Hello<sp/>from<sp/>Matlab<sp/>rpcFibSrv:<sp/>sleeptime<sp/>=<sp/>%f\n&apos;</highlight><highlight class="normal">,<sp/>sleeptime);</highlight></codeline>
<codeline lineno="6"><highlight class="normal"></highlight></codeline>
<codeline lineno="7"><highlight class="normal"><sp/><sp/>%<sp/>Create<sp/>server-side<sp/>rpc<sp/>conneciton<sp/>using<sp/>model<sp/>name</highlight></codeline>
<codeline lineno="8"><highlight class="normal"><sp/><sp/>rpc<sp/>=<sp/>CisInterface(&apos;<ref refid="classCisRpcServer" kindref="compound">CisRpcServer</ref>&apos;,<sp/>&apos;rpcFibSrv&apos;,<sp/>&apos;%d&apos;,<sp/>&apos;%d<sp/>%d&apos;);</highlight></codeline>
<codeline lineno="9"><highlight class="normal"></highlight></codeline>
<codeline lineno="10"><highlight class="normal"><sp/><sp/>%<sp/>Continue<sp/>receiving<sp/>requests<sp/>until<sp/>error<sp/>occurs<sp/>(the<sp/>connection<sp/>is<sp/>closed</highlight></codeline>
<codeline lineno="11"><highlight class="normal"><sp/><sp/>%<sp/>by<sp/>all<sp/>clients<sp/>that<sp/>have<sp/>connected).</highlight></codeline>
<codeline lineno="12"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>1</highlight></codeline>
<codeline lineno="13"><highlight class="normal"><sp/><sp/><sp/><sp/>[flag,<sp/>input]<sp/>=<sp/>rpc.recv();</highlight></codeline>
<codeline lineno="14"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(~flag);</highlight></codeline>
<codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(</highlight><highlight class="stringliteral">&apos;rpcFibSrv(M):<sp/>end<sp/>of<sp/>input&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>exit(0);</highlight></codeline>
<codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="18"><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/>%<sp/>Compute<sp/>fibonacci<sp/>number</highlight></codeline>
<codeline lineno="20"><highlight class="normal"><sp/><sp/><sp/><sp/>fprintf(</highlight><highlight class="stringliteral">&apos;rpcFibSrv(M):<sp/>&lt;-<sp/>input<sp/>%d&apos;</highlight><highlight class="normal">,<sp/>input{1});</highlight></codeline>
<codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/>pprev<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/>prev<sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/>result<sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/>n<sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>n<sp/>&lt;<sp/>input{1}</highlight></codeline>
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>result<sp/>=<sp/>prev<sp/>+<sp/>pprev;</highlight></codeline>
<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>pprev<sp/>=<sp/>prev;</highlight></codeline>
<codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>prev<sp/>=<sp/>result;</highlight></codeline>
<codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>n<sp/>=<sp/>n+1;</highlight></codeline>
<codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/>fprintf(</highlight><highlight class="stringliteral">&apos;<sp/>:::<sp/>-&gt;(%2d<sp/>%2d)\n&apos;</highlight><highlight class="normal">,<sp/>input{1},<sp/>result);</highlight></codeline>
<codeline lineno="32"><highlight class="normal"></highlight></codeline>
<codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/>%<sp/>Sleep<sp/>and<sp/>then<sp/>send<sp/>response<sp/>back</highlight></codeline>
<codeline lineno="34"><highlight class="normal"><sp/><sp/><sp/><sp/>pause(sleeptime);</highlight></codeline>
<codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/>flag<sp/>=<sp/>rpc.send(input{1},<sp/>result);</highlight></codeline>
<codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(~flag);</highlight></codeline>
<codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fprintf(</highlight><highlight class="stringliteral">&apos;rpcFibSrv(M):<sp/>ERROR<sp/>sending&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/>rpcFibSrv&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">end</highlight></codeline>
<codeline lineno="45"><highlight class="normal"></highlight></codeline>
<codeline lineno="46"><highlight class="normal"></highlight></codeline>
<codeline lineno="47"><highlight class="normal"></highlight></codeline>
    </programlisting>
    <location file="/root/cis_interface/cis_interface/cis_interface/examples/rpcFib/src/rpcFibSrv.m"/>
  </compounddef>
</doxygen>
