1<!-- Creator : groff version 1.22.2 --> 2<!-- CreationDate: Wed Feb 1 22:24:31 2017 --> 3<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 4"http://www.w3.org/TR/html4/loose.dtd"> 5<html> 6<head> 7<meta name="generator" content="groff -Thtml, see www.gnu.org"> 8<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> 9<meta name="Content-Style" content="text/css"> 10<style type="text/css"> 11 p { margin-top: 0; margin-bottom: 0; vertical-align: top } 12 pre { margin-top: 0; margin-bottom: 0; vertical-align: top } 13 table { margin-top: 0; margin-bottom: 0; vertical-align: top } 14 h1 { text-align: center } 15</style> 16<title>mtcp_destroy</title> 17<link rel="stylesheet" href="./common.css"> 18</head> 19<body> 20<div class="main"> 21<h1 align="center">mtcp_destroy</h1> 22<!-- 23<a href="#NAME">NAME</a><br> 24<a href="#SYNOPSIS">SYNOPSIS</a><br> 25<a href="#DESCRIPTION">DESCRIPTION</a><br> 26<a href="#RETURN VALUE">RETURN VALUE</a><br> 27<a href="#NOTES">NOTES</a><br> 28<a href="#AUTHORS">AUTHORS</a><br> 29<a href="#SEE ALSO">SEE ALSO</a><br> 30<a href="#COLOPHON">COLOPHON</a><br> 31<hr> 32--> 33 34<h2>NAME 35<a name="NAME"></a> 36</h2> 37 38 39<p style="margin-left:11%; margin-top: 1em">mtcp_destroy 40− clean up the mTCP stack.</p> 41 42<h2>SYNOPSIS 43<a name="SYNOPSIS"></a> 44</h2> 45 46 47<p style="margin-left:11%; margin-top: 1em"><b>#include 48<mtcp_api.h></b></p> 49 50<p style="margin-left:11%; margin-top: 1em"><b>void 51mtcp_destroy();</b></p> 52 53<h2>DESCRIPTION 54<a name="DESCRIPTION"></a> 55</h2> 56 57 58 59<p style="margin-left:11%; margin-top: 1em"><b>mtcp_destroy</b>() 60call is used to clean up the networking stack for the mTCP 61application. This is usually the last call the application 62makes before terminating.</p> 63 64<h2>RETURN VALUE 65<a name="RETURN VALUE"></a> 66</h2> 67 68 69<p style="margin-left:11%; margin-top: 1em">Nothing is 70returned.</p> 71 72<h2>NOTES 73<a name="NOTES"></a> 74</h2> 75 76 77<p style="margin-left:11%; margin-top: 1em">This function 78only needs to be called once in an mTCP application.</p> 79 80<h2>AUTHORS 81<a name="AUTHORS"></a> 82</h2> 83 84 85<p style="margin-left:11%; margin-top: 1em">mOS 86development team <[email protected]></p> 87 88<!-----------------------------------------------------------> 89<h2>EXAMPLES 90<a name="EXAMPLES"></a> 91</h2> 92 93<p style="margin-left:11%; margin-top: 1em"> 94 <a href="http://mos.kaist.edu/guide/programmer/05_api_example.html#application-destroy-routine"> 95 http://mos.kaist.edu/guide/programmer/05_api_example.html#application-destroy-routine 96 </a> 97</p> 98<!-----------------------------------------------------------> 99 100<h2>SEE ALSO 101<a name="SEE ALSO"></a> 102</h2> 103 104 105 106<p style="margin-left:11%; margin-top: 1em"><b>mtcp_init</b>()</p> 107 108<h2>COLOPHON 109<a name="COLOPHON"></a> 110</h2> 111 112 113<p style="margin-left:11%; margin-top: 1em">This page is 114part of mOS release 0.3 <i>docs</i> section. A description 115of the project, and information about reporting bugs, can be 116found at http://mos.kaist.edu/.</p> 117<!--<hr>--> 118<br> 119<div class="footer"> 120 <img src="back-arrow.jpg" width="2%" height="2%"><a href="http://mos.kaist.edu/index_man.html">Back to Index</a> 121</div> 122</div> 123</body> 124</html> 125