models.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Network interface &#8212; Modelverse 0.4.0 documentation</title>
  7. <link rel="stylesheet" href="_static/classic.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: './',
  12. VERSION: '0.4.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/underscore.js"></script>
  20. <script type="text/javascript" src="_static/doctools.js"></script>
  21. <link rel="top" title="Modelverse 0.4.0 documentation" href="index.html" />
  22. <link rel="prev" title="Internal workings" href="internal.html" />
  23. </head>
  24. <body role="document">
  25. <div class="related" role="navigation" aria-label="related navigation">
  26. <h3>Navigation</h3>
  27. <ul>
  28. <li class="right" style="margin-right: 10px">
  29. <a href="genindex.html" title="General Index"
  30. accesskey="I">index</a></li>
  31. <li class="right" >
  32. <a href="internal.html" title="Internal workings"
  33. accesskey="P">previous</a> |</li>
  34. <li class="nav-item nav-item-0"><a href="index.html">Modelverse 0.4.0 documentation</a> &#187;</li>
  35. </ul>
  36. </div>
  37. <div class="document">
  38. <div class="documentwrapper">
  39. <div class="bodywrapper">
  40. <div class="body" role="main">
  41. <div class="section" id="network-interface">
  42. <h1>Network interface<a class="headerlink" href="#network-interface" title="Permalink to this headline">¶</a></h1>
  43. <p>The network communication in the Modelverse builds on top of the raw socket implementation of Python.
  44. Whereas we use normal HTTP requests, we explicitly opted not to use these libraries.
  45. Many of these libraries hide important implementation details, such as how successive requests are handled (sequential, threaded, ...), whether or not to keep connections open and reuse them, which HTTP version to implement, and so on.
  46. As the HTTP protocol is a simple protocol, we reimplemented it completely in SCCD (StateCharts and Class Diagrams).</p>
  47. <p>There are two network components: a server in the MvS, and a server and client in the MvK.
  48. These are discussed next.</p>
  49. <div class="section" id="mvs-server">
  50. <h2>MvS server<a class="headerlink" href="#mvs-server" title="Permalink to this headline">¶</a></h2>
  51. <img alt="_images/mvs_server.svg" src="_images/mvs_server.svg" /></div>
  52. <div class="section" id="mvk-server">
  53. <h2>MvK server<a class="headerlink" href="#mvk-server" title="Permalink to this headline">¶</a></h2>
  54. <img alt="_images/mvk_server.svg" src="_images/mvk_server.svg" /></div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  60. <div class="sphinxsidebarwrapper">
  61. <h3><a href="index.html">Table Of Contents</a></h3>
  62. <ul>
  63. <li><a class="reference internal" href="#">Network interface</a><ul>
  64. <li><a class="reference internal" href="#mvs-server">MvS server</a></li>
  65. <li><a class="reference internal" href="#mvk-server">MvK server</a></li>
  66. </ul>
  67. </li>
  68. </ul>
  69. <h4>Previous topic</h4>
  70. <p class="topless"><a href="internal.html"
  71. title="previous chapter">Internal workings</a></p>
  72. <div role="note" aria-label="source link">
  73. <h3>This Page</h3>
  74. <ul class="this-page-menu">
  75. <li><a href="_sources/models.txt"
  76. rel="nofollow">Show Source</a></li>
  77. </ul>
  78. </div>
  79. <div id="searchbox" style="display: none" role="search">
  80. <h3>Quick search</h3>
  81. <form class="search" action="search.html" method="get">
  82. <div><input type="text" name="q" /></div>
  83. <div><input type="submit" value="Go" /></div>
  84. <input type="hidden" name="check_keywords" value="yes" />
  85. <input type="hidden" name="area" value="default" />
  86. </form>
  87. </div>
  88. <script type="text/javascript">$('#searchbox').show(0);</script>
  89. </div>
  90. </div>
  91. <div class="clearer"></div>
  92. </div>
  93. <div class="related" role="navigation" aria-label="related navigation">
  94. <h3>Navigation</h3>
  95. <ul>
  96. <li class="right" style="margin-right: 10px">
  97. <a href="genindex.html" title="General Index"
  98. >index</a></li>
  99. <li class="right" >
  100. <a href="internal.html" title="Internal workings"
  101. >previous</a> |</li>
  102. <li class="nav-item nav-item-0"><a href="index.html">Modelverse 0.4.0 documentation</a> &#187;</li>
  103. </ul>
  104. </div>
  105. <div class="footer" role="contentinfo">
  106. &#169; Copyright 2016, Yentl Van Tendeloo.
  107. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.6.
  108. </div>
  109. </body>
  110. </html>