<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>mbed TLS v2.7.6: TCP/IP communication module</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">mbed TLS v2.7.6 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.13 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',false,false,'search.php','Search'); }); </script> <div id="main-nav"></div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">TCP/IP communication module</div> </div> </div><!--header--> <div class="contents"> <p>The TCP/IP communication module provides for a channel of communication for the <a class="el" href="group__ssltls__communication__module.html">SSL/TLS communication module</a> to use. In the TCP/IP-model it provides for communication up to the Transport (or Host-to-host) layer. SSL/TLS resides on top of that, in the Application layer, and makes use of its basic provisions:</p><ul> <li>listening on a port (see <code><a class="el" href="net__sockets_8h.html#aa1cb7fc819153c43a2c75c95d0152c75" title="Create a receiving socket on bind_ip:port in the chosen protocol. If bind_ip == NULL, all interfaces are bound. ">mbedtls_net_bind()</a></code>).</li> <li>accepting a connection (through <code><a class="el" href="net__sockets_8h.html#a2f862b9086f3466593d5cf399b2c98c6" title="Accept a connection from a remote client. ">mbedtls_net_accept()</a></code>).</li> <li>read/write (through <code><a class="el" href="net__sockets_8h.html#a03af351ec420bbeb5e91357abcfb3663" title="Read at most 'len' characters. If no error occurs, the actual amount read is returned. ">mbedtls_net_recv()</a>/<code><a class="el" href="net__sockets_8h.html#a4841afd0e14f1fd44b82c3a850961ab7" title="Write at most 'len' characters. If no error occurs, the actual amount read is returned. ">mbedtls_net_send()</a></code>)</code>.</li> <li>close a connection (through <code>mbedtls_net_close()</code>).</li> </ul> <p>This way you have the means to, for example, implement and use an UDP or IPSec communication solution as a basis.</p> <p>This module can be used at server- and clientside to provide a basic means of communication over the internet. </p> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Fri Oct 12 2018 20:26:59 for mbed TLS v2.7.6 by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.13 </small></address> </body> </html>