2014-02-19 23:45:00 +00:00
<!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.6" / >
< title > The Netsukuku Project: src/accept.h Source File< / 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 = "../../navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../resize.js" > < / script >
< script type = "text/javascript" src = "../../navtree.js" > < / script >
< script type = "text/javascript" >
$(document).ready(initResizable);
$(window).load(resizeHeight);
< / script >
< link href = "../../search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../search/search.js" > < / script >
< script type = "text/javascript" >
$(document).ready(function() { searchBox.OnSelectItem(0); });
< / 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;" >
2014-02-20 00:30:40 +00:00
< td id = "projectlogo" > < img alt = "Logo" src = "../../Logo_netsukuku.jpg" / > < / td >
2014-02-19 23:45:00 +00:00
< td style = "padding-left: 0.5em;" >
< div id = "projectname" > The Netsukuku Project
  < span id = "projectnumber" > 0.0.9< / span >
< / div >
< div id = "projectbrief" > An Alternative routing method< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
< / script >
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "../../index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "../../annotated.html" > < span > Data  Structures< / span > < / a > < / li >
< li class = "current" > < a href = "../../files.html" > < span > Files< / span > < / a > < / li >
< li >
< div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< img id = "MSearchSelect" src = "../../search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "../../search/close.png" alt = "" / > < / a >
< / span >
< / div >
< / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "../../files.html" > < span > File  List< / span > < / a > < / li >
< li > < a href = "../../globals.html" > < span > Globals< / span > < / a > < / li >
< / ul >
< / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
$(document).ready(function(){initNavTree('da/d68/accept_8h_source.html','../../');});
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(0)" > < span class = "SelectionMark" >   < / span > All< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(1)" > < span class = "SelectionMark" >   < / span > Data Structures< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" > < span class = "SelectionMark" >   < / span > Files< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(3)" > < span class = "SelectionMark" >   < / span > Functions< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(4)" > < span class = "SelectionMark" >   < / span > Variables< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(5)" > < span class = "SelectionMark" >   < / span > Typedefs< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(6)" > < span class = "SelectionMark" >   < / span > Enumerations< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(7)" > < span class = "SelectionMark" >   < / span > Enumerator< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(8)" > < span class = "SelectionMark" >   < / span > Macros< / a > < / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
< div class = "headertitle" >
< div class = "title" > accept.h< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< a href = "../../da/d68/accept_8h.html" > Go to the documentation of this file.< / a > < div class = "fragment" > < div class = "line" > < a name = "l00001" > < / a > < span class = "lineno" > 1< / span >   < span class = "comment" > /* This file is part of Netsukuku< / span > < / div >
< div class = "line" > < a name = "l00002" > < / a > < span class = "lineno" > 2< / span >   < span class = "comment" > * (c) Copyright 2004 Andrea Lo Pumo aka AlpT < alpt@freaknet.org> < / span > < / div >
< div class = "line" > < a name = "l00003" > < / a > < span class = "lineno" > 3< / span >   < span class = "comment" > *< / span > < / div >
< div class = "line" > < a name = "l00004" > < / a > < span class = "lineno" > 4< / span >   < span class = "comment" > * This source code is free software; you can redistribute it and/or< / span > < / div >
< div class = "line" > < a name = "l00005" > < / a > < span class = "lineno" > 5< / span >   < span class = "comment" > * modify it under the terms of the GNU General Public License as published < / span > < / div >
< div class = "line" > < a name = "l00006" > < / a > < span class = "lineno" > 6< / span >   < span class = "comment" > * by the Free Software Foundation; either version 2 of the License,< / span > < / div >
< div class = "line" > < a name = "l00007" > < / a > < span class = "lineno" > 7< / span >   < span class = "comment" > * or (at your option) any later version.< / span > < / div >
< div class = "line" > < a name = "l00008" > < / a > < span class = "lineno" > 8< / span >   < span class = "comment" > *< / span > < / div >
< div class = "line" > < a name = "l00009" > < / a > < span class = "lineno" > 9< / span >   < span class = "comment" > * This source code is distributed in the hope that it will be useful,< / span > < / div >
< div class = "line" > < a name = "l00010" > < / a > < span class = "lineno" > 10< / span >   < span class = "comment" > * but WITHOUT ANY WARRANTY; without even the implied warranty of< / span > < / div >
< div class = "line" > < a name = "l00011" > < / a > < span class = "lineno" > 11< / span >   < span class = "comment" > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.< / span > < / div >
< div class = "line" > < a name = "l00012" > < / a > < span class = "lineno" > 12< / span >   < span class = "comment" > * Please refer to the GNU Public License for more details.< / span > < / div >
< div class = "line" > < a name = "l00013" > < / a > < span class = "lineno" > 13< / span >   < span class = "comment" > *< / span > < / div >
< div class = "line" > < a name = "l00014" > < / a > < span class = "lineno" > 14< / span >   < span class = "comment" > * You should have received a copy of the GNU Public License along with< / span > < / div >
< div class = "line" > < a name = "l00015" > < / a > < span class = "lineno" > 15< / span >   < span class = "comment" > * this source code; if not, write to:< / span > < / div >
< div class = "line" > < a name = "l00016" > < / a > < span class = "lineno" > 16< / span >   < span class = "comment" > * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.< / span > < / div >
< div class = "line" > < a name = "l00017" > < / a > < span class = "lineno" > 17< / span >   < span class = "comment" > */< / span > < / div >
< div class = "line" > < a name = "l00018" > < / a > < span class = "lineno" > 18< / span >   < / div >
< div class = "line" > < a name = "l00019" > < / a > < span class = "lineno" > 19< / span >   < span class = "preprocessor" > #ifndef ACCEPT_H< / span > < / div >
< div class = "line" > < a name = "l00020" > < / a > < span class = "lineno" > 20< / span >   < span class = "preprocessor" > #define ACCEPT_H< / span > < / div >
< div class = "line" > < a name = "l00021" > < / a > < span class = "lineno" > 21< / span >   < / div >
< div class = "line" > < a name = "l00022" > < / a > < span class = "lineno" > < a class = "line" href = "../../da/d68/accept_8h.html#a053b7859476cc9867ec62c49e68d3fa1" > 22< / a > < / span >   < span class = "preprocessor" > #define MAX_CONNECTIONS 512< / span > < / div >
< div class = "line" > < a name = "l00023" > < / a > < span class = "lineno" > 23< / span >   < / div >
< div class = "line" > < a name = "l00024" > < / a > < span class = "lineno" > < a class = "line" href = "../../da/d68/accept_8h.html#aeedfc74fdbc64f01623b48cba867095a" > 24< / a > < / span >   < span class = "preprocessor" > #define MAX_ACCEPTS 16< / span > < / div >
< div class = "line" > < a name = "l00025" > < / a > < span class = "lineno" > < a class = "line" href = "../../da/d68/accept_8h.html#a3696e252725b215aabce7c9e82b954ba" > 25< / a > < / span >   < span class = "preprocessor" > #define FREE_ACCEPT_TIME 4 < / span > < span class = "comment" > /*in seconds*/< / span > < span class = "preprocessor" > < / span > < / div >
< div class = "line" > < a name = "l00026" > < / a > < span class = "lineno" > 26< / span >   < / div >
< div class = "line" > < a name = "l00027" > < / a > < span class = "lineno" > 27< / span >   < span class = "comment" > /*< / span > < / div >
< div class = "line" > < a name = "l00028" > < / a > < span class = "lineno" > 28< / span >   < span class = "comment" > * This struct keep tracks of single connection to the server.< / span > < / div >
< div class = "line" > < a name = "l00029" > < / a > < span class = "lineno" > 29< / span >   < span class = "comment" > * The thread_daemon who handle the connection knows the connection< / span > < / div >
< div class = "line" > < a name = "l00030" > < / a > < span class = "lineno" > 30< / span >   < span class = "comment" > * position in the accept_tbl.< / span > < / div >
< div class = "line" > < a name = "l00031" > < / a > < span class = "lineno" > 31< / span >   < span class = "comment" > */< / span > < / div >
< div class = "line" > < a name = "l00032" > < / a > < span class = "lineno" > < a class = "line" href = "../../d2/dbe/structaccept__table.html" > 32< / a > < / span >   < span class = "keyword" > struct < / span > < a class = "code" href = "../../d2/dbe/structaccept__table.html" > accept_table< / a > < / div >
< div class = "line" > < a name = "l00033" > < / a > < span class = "lineno" > 33< / span >   {< / div >
< div class = "line" > < a name = "l00034" > < / a > < span class = "lineno" > < a class = "line" href = "../../d2/dbe/structaccept__table.html#a66744aaafbdc3a2a7ece55238aff0fb6" > 34< / a > < / span >   < a class = "code" href = "../../da/d1d/structinet__prefix.html" > inet_prefix< / a > < a class = "code" href = "../../d2/dbe/structaccept__table.html#a66744aaafbdc3a2a7ece55238aff0fb6" > ip< / a > ; < span class = "comment" > /*Ip of the node connected*/< / span > < / div >
< div class = "line" > < a name = "l00035" > < / a > < span class = "lineno" > < a class = "line" href = "../../d2/dbe/structaccept__table.html#aa8ef322869a87f1cd85574852e07922a" > 35< / a > < / span >   < span class = "keywordtype" > unsigned< / span > < span class = "keywordtype" > char< / span > < a class = "code" href = "../../d2/dbe/structaccept__table.html#aa8ef322869a87f1cd85574852e07922a" > accepts< / a > ; < span class = "comment" > /*Number of connection from this node*/< / span > < / div >
< div class = "line" > < a name = "l00036" > < / a > < span class = "lineno" > < a class = "line" href = "../../d2/dbe/structaccept__table.html#a5ebdac1fa09806512a862dbf4bb80a30" > 36< / a > < / span >   pid_t *< a class = "code" href = "../../d2/dbe/structaccept__table.html#a5ebdac1fa09806512a862dbf4bb80a30" > pid< / a > ; < span class = "comment" > /*The pid of each child that have accepted the conn*/< / span > < / div >
< div class = "line" > < a name = "l00037" > < / a > < span class = "lineno" > < a class = "line" href = "../../d2/dbe/structaccept__table.html#a123f84522324c7fbc5e39b4db674c0b1" > 37< / a > < / span >   < span class = "keywordtype" > unsigned< / span > < span class = "keywordtype" > char< / span > *< a class = "code" href = "../../d2/dbe/structaccept__table.html#a123f84522324c7fbc5e39b4db674c0b1" > closed< / a > ; < span class = "comment" > /*Each element of this array is 1 or 0. It indicates if the connection has< / span > < / div >
< div class = "line" > < a name = "l00038" > < / a > < span class = "lineno" > 38< / span >   < span class = "comment" > been closed*/< / span > < / div >
< div class = "line" > < a name = "l00039" > < / a > < span class = "lineno" > < a class = "line" href = "../../d2/dbe/structaccept__table.html#a67f836efe4c20916746cacc7234eb2aa" > 39< / a > < / span >   time_t *< a class = "code" href = "../../d2/dbe/structaccept__table.html#a67f836efe4c20916746cacc7234eb2aa" > acp_t< / a > ; < span class = "comment" > /*The time when the connection was accepted. The " accepts" counter< / span > < / div >
< div class = "line" > < a name = "l00040" > < / a > < span class = "lineno" > 40< / span >   < span class = "comment" > will decrement when one of the acp_t+FREE_ACCEPT_TIME will < / span > < / div >
< div class = "line" > < a name = "l00041" > < / a > < span class = "lineno" > 41< / span >   < span class = "comment" > be < = current_time AND (the relative pid will be non existent OR< / span > < / div >
< div class = "line" > < a name = "l00042" > < / a > < span class = "lineno" > 42< / span >   < span class = "comment" > the relative closed element will be == 1)< / span > < / div >
< div class = "line" > < a name = "l00043" > < / a > < span class = "lineno" > 43< / span >   < span class = "comment" > */< / span > < / div >
< div class = "line" > < a name = "l00044" > < / a > < span class = "lineno" > < a class = "line" href = "../../d2/dbe/structaccept__table.html#a14d90f3c9c57fbf9a0a80e3f5f35e975" > 44< / a > < / span >   < span class = "keyword" > struct < / span > < a class = "code" href = "../../d5/dc9/structrequest__tbl.html" > request_tbl< / a > < a class = "code" href = "../../d2/dbe/structaccept__table.html#a14d90f3c9c57fbf9a0a80e3f5f35e975" > rqtbl< / a > ; < span class = "comment" > /*The request table*/< / span > < / div >
< div class = "line" > < a name = "l00045" > < / a > < span class = "lineno" > 45< / span >   };< / div >
< div class = "line" > < a name = "l00046" > < / a > < span class = "lineno" > 46< / span >   < / div >
< div class = "line" > < a name = "l00047" > < / a > < span class = "lineno" > 47< / span >   < span class = "comment" > /* This struct keeps all the info regarding each node connected */< / span > < / div >
< div class = "line" > < a name = "l00048" > < / a > < span class = "lineno" > < a class = "line" href = "../../da/d68/accept_8h.html#a766cfdccc178dd640fc17eb74c5e0d84" > 48< / a > < / span >   < span class = "keyword" > struct < / span > < a class = "code" href = "../../d2/dbe/structaccept__table.html" > accept_table< / a > *< a class = "code" href = "../../da/d68/accept_8h.html#a766cfdccc178dd640fc17eb74c5e0d84" > accept_tbl< / a > ;< / div >
< div class = "line" > < a name = "l00049" > < / a > < span class = "lineno" > 49< / span >   < / div >
< div class = "line" > < a name = "l00050" > < / a > < span class = "lineno" > 50< / span >   < span class = "comment" > /* < / span > < / div >
< div class = "line" > < a name = "l00051" > < / a > < span class = "lineno" > 51< / span >   < span class = "comment" > * accept_idx is the position of the accept_tbl of a thread.< / span > < / div >
< div class = "line" > < a name = "l00052" > < / a > < span class = "lineno" > 52< / span >   < span class = "comment" > * accept_sidx is the second index, it is used for example in pid[accept_sidx] < / span > < / div >
< div class = "line" > < a name = "l00053" > < / a > < span class = "lineno" > 53< / span >   < span class = "comment" > * note: this var are used only in the child and the child doesn' t need to modify them!< / span > < / div >
< div class = "line" > < a name = "l00054" > < / a > < span class = "lineno" > 54< / span >   < span class = "comment" > */< / span > < / div >
< div class = "line" > < a name = "l00055" > < / a > < span class = "lineno" > < a class = "line" href = "../../da/d68/accept_8h.html#a36aa3d912ef1ddbfbe1f99f53b25f162" > 55< / a > < / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a0f18723b84eee53d752cad728dcdf8cc" > accept_idx< / a > , < a class = "code" href = "../../da/d68/accept_8h.html#a36aa3d912ef1ddbfbe1f99f53b25f162" > accept_sidx< / a > ;< / div >
< div class = "line" > < a name = "l00056" > < / a > < span class = "lineno" > < a class = "line" href = "../../da/d68/accept_8h.html#a97092972bbcf6b25f39b6e61a40c338f" > 56< / a > < / span >   pthread_mutex_t < a class = "code" href = "../../da/d68/accept_8h.html#a17c05d21c92c90edf6315d960be7bc1b" > mtx_acpt_idx< / a > , < a class = "code" href = "../../da/d68/accept_8h.html#a97092972bbcf6b25f39b6e61a40c338f" > mtx_acpt_sidx< / a > ;< / div >
< div class = "line" > < a name = "l00057" > < / a > < span class = "lineno" > 57< / span >   < / div >
< div class = "line" > < a name = "l00058" > < / a > < span class = "lineno" > < a class = "line" href = "../../da/d68/accept_8h.html#a34038acdada5f785578712ba8967f7a7" > 58< / a > < / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a34038acdada5f785578712ba8967f7a7" > update_accept_tbl_mutex< / a > ;< / div >
< div class = "line" > < a name = "l00059" > < / a > < span class = "lineno" > 59< / span >   < / div >
< div class = "line" > < a name = "l00060" > < / a > < span class = "lineno" > < a class = "line" href = "../../da/d68/accept_8h.html#a0afac2e6900284b3945dcc8f237757cc" > 60< / a > < / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a0afac2e6900284b3945dcc8f237757cc" > max_connections< / a > , < a class = "code" href = "../../da/d68/accept_8h.html#abdb40729b94eb814ab0b77863fdbf006" > max_accepts_per_host< / a > , < a class = "code" href = "../../da/d68/accept_8h.html#a25866269ca9316e48f81e3a80c23efcf" > free_accept_time< / a > ;< / div >
< div class = "line" > < a name = "l00061" > < / a > < span class = "lineno" > 61< / span >   < / div >
< div class = "line" > < a name = "l00062" > < / a > < span class = "lineno" > 62< / span >   < span class = "keywordtype" > void< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a3032d579f748fa8a4440de3820b2be83" > init_accept_tbl< / a > (< span class = "keywordtype" > int< / span > startups, < span class = "keywordtype" > int< / span > < a class = "code" href = "../../d2/dbe/structaccept__table.html#aa8ef322869a87f1cd85574852e07922a" > accepts< / a > , < span class = "keywordtype" > int< / span > time);< / div >
< div class = "line" > < a name = "l00063" > < / a > < span class = "lineno" > 63< / span >   < span class = "keywordtype" > void< / span > < a class = "code" href = "../../da/d68/accept_8h.html#ae966f1b6c2e7318b524e1e613173d2b4" > destroy_accept_tbl< / a > (< span class = "keywordtype" > void< / span > );< / div >
< div class = "line" > < a name = "l00064" > < / a > < span class = "lineno" > 64< / span >   < span class = "keywordtype" > void< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a97f5d05130305618f3acfa5e28b86ab8" > update_accept_tbl< / a > (< span class = "keywordtype" > void< / span > );< / div >
< div class = "line" > < a name = "l00065" > < / a > < span class = "lineno" > 65< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a8c4bc9a7a82822dff37e2014a9c3b802" > find_ip_acpt< / a > (< a class = "code" href = "../../da/d1d/structinet__prefix.html" > inet_prefix< / a > < a class = "code" href = "../../d2/dbe/structaccept__table.html#a66744aaafbdc3a2a7ece55238aff0fb6" > ip< / a > );< / div >
< div class = "line" > < a name = "l00066" > < / a > < span class = "lineno" > 66< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a29e19093e403323930dcd5a4b1fb8bfb" > find_first_free< / a > (< span class = "keywordtype" > void< / span > );< / div >
< div class = "line" > < a name = "l00067" > < / a > < span class = "lineno" > 67< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a70224e39ebc9db020557c615688ada67" > is_ip_acpt_free< / a > (< a class = "code" href = "../../da/d1d/structinet__prefix.html" > inet_prefix< / a > < a class = "code" href = "../../d2/dbe/structaccept__table.html#a66744aaafbdc3a2a7ece55238aff0fb6" > ip< / a > , < span class = "keywordtype" > int< / span > *index);< / div >
< div class = "line" > < a name = "l00068" > < / a > < span class = "lineno" > 68< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a6da65f33355cabe5993fab2dff5941b4" > find_free_acp_t< / a > (< span class = "keywordtype" > int< / span > idx);< / div >
< div class = "line" > < a name = "l00069" > < / a > < span class = "lineno" > 69< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a5a4be13a1f36281b9c268aa9c507b70e" > new_accept< / a > (< span class = "keywordtype" > int< / span > idx, < a class = "code" href = "../../da/d1d/structinet__prefix.html" > inet_prefix< / a > < a class = "code" href = "../../d2/dbe/structaccept__table.html#a66744aaafbdc3a2a7ece55238aff0fb6" > ip< / a > );< / div >
< div class = "line" > < a name = "l00070" > < / a > < span class = "lineno" > 70< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a1c6006fb8298f7667eb793d8b099af91" > add_accept< / a > (< a class = "code" href = "../../da/d1d/structinet__prefix.html" > inet_prefix< / a > < a class = "code" href = "../../d2/dbe/structaccept__table.html#a66744aaafbdc3a2a7ece55238aff0fb6" > ip< / a > , < span class = "keywordtype" > int< / span > replace);< / div >
< div class = "line" > < a name = "l00071" > < / a > < span class = "lineno" > 71< / span >   < span class = "keywordtype" > void< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a48bc8f11f2f84c027d6fd7fe820857df" > del_accept< / a > (< span class = "keywordtype" > int< / span > idx, < span class = "keywordtype" > int< / span > *sidx);< / div >
< div class = "line" > < a name = "l00072" > < / a > < span class = "lineno" > 72< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../da/d68/accept_8h.html#a04d9c3ca08298244aa21a56a55e54863" > close_accept< / a > (< span class = "keywordtype" > int< / span > idx, < span class = "keywordtype" > int< / span > sidx);< / div >
< div class = "line" > < a name = "l00073" > < / a > < span class = "lineno" > 73< / span >   < span class = "keywordtype" > void< / span > < a class = "code" href = "../../da/d68/accept_8h.html#ad213b46f0e91a0d82c2fed88ffc3f880" > add_accept_pid< / a > (pid_t < a class = "code" href = "../../d2/dbe/structaccept__table.html#a5ebdac1fa09806512a862dbf4bb80a30" > pid< / a > , < span class = "keywordtype" > int< / span > idx, < span class = "keywordtype" > int< / span > sidx);< / div >
< div class = "line" > < a name = "l00074" > < / a > < span class = "lineno" > 74< / span >   < / div >
< div class = "line" > < a name = "l00075" > < / a > < span class = "lineno" > 75< / span >   < span class = "preprocessor" > #endif < / span > < span class = "comment" > /*ACCEPT_H*/< / span > < span class = "preprocessor" > < / span > < / div >
< div class = "ttc" id = "accept_8h_html_a04d9c3ca08298244aa21a56a55e54863" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a04d9c3ca08298244aa21a56a55e54863" > close_accept< / a > < / div > < div class = "ttdeci" > int close_accept(int idx, int sidx)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:256< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a1c6006fb8298f7667eb793d8b099af91" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a1c6006fb8298f7667eb793d8b099af91" > add_accept< / a > < / div > < div class = "ttdeci" > int add_accept(inet_prefix ip, int replace)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:211< / div > < / div >
< div class = "ttc" id = "accept_8h_html_abdb40729b94eb814ab0b77863fdbf006" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#abdb40729b94eb814ab0b77863fdbf006" > max_accepts_per_host< / a > < / div > < div class = "ttdeci" > int max_accepts_per_host< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:60< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a70224e39ebc9db020557c615688ada67" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a70224e39ebc9db020557c615688ada67" > is_ip_acpt_free< / a > < / div > < div class = "ttdeci" > int is_ip_acpt_free(inet_prefix ip, int *index)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:156< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a8c4bc9a7a82822dff37e2014a9c3b802" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a8c4bc9a7a82822dff37e2014a9c3b802" > find_ip_acpt< / a > < / div > < div class = "ttdeci" > int find_ip_acpt(inet_prefix ip)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:134< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a17c05d21c92c90edf6315d960be7bc1b" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a17c05d21c92c90edf6315d960be7bc1b" > mtx_acpt_idx< / a > < / div > < div class = "ttdeci" > pthread_mutex_t mtx_acpt_idx< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:56< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a0f18723b84eee53d752cad728dcdf8cc" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a0f18723b84eee53d752cad728dcdf8cc" > accept_idx< / a > < / div > < div class = "ttdeci" > int accept_idx< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:55< / div > < / div >
< div class = "ttc" id = "structaccept__table_html_aa8ef322869a87f1cd85574852e07922a" > < div class = "ttname" > < a href = "../../d2/dbe/structaccept__table.html#aa8ef322869a87f1cd85574852e07922a" > accept_table::accepts< / a > < / div > < div class = "ttdeci" > unsigned char accepts< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:35< / div > < / div >
< div class = "ttc" id = "accept_8h_html_ae966f1b6c2e7318b524e1e613173d2b4" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#ae966f1b6c2e7318b524e1e613173d2b4" > destroy_accept_tbl< / a > < / div > < div class = "ttdeci" > void destroy_accept_tbl(void)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:67< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a36aa3d912ef1ddbfbe1f99f53b25f162" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a36aa3d912ef1ddbfbe1f99f53b25f162" > accept_sidx< / a > < / div > < div class = "ttdeci" > int accept_sidx< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:55< / div > < / div >
< div class = "ttc" id = "structrequest__tbl_html" > < div class = "ttname" > < a href = "../../d5/dc9/structrequest__tbl.html" > request_tbl< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > request.h:145< / div > < / div >
< div class = "ttc" id = "structinet__prefix_html" > < div class = "ttname" > < a href = "../../da/d1d/structinet__prefix.html" > inet_prefix< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > inet.h:73< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a25866269ca9316e48f81e3a80c23efcf" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a25866269ca9316e48f81e3a80c23efcf" > free_accept_time< / a > < / div > < div class = "ttdeci" > int free_accept_time< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:60< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a3032d579f748fa8a4440de3820b2be83" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a3032d579f748fa8a4440de3820b2be83" > init_accept_tbl< / a > < / div > < div class = "ttdeci" > void init_accept_tbl(int startups, int accepts, int time)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:38< / div > < / div >
< div class = "ttc" id = "structaccept__table_html_a14d90f3c9c57fbf9a0a80e3f5f35e975" > < div class = "ttname" > < a href = "../../d2/dbe/structaccept__table.html#a14d90f3c9c57fbf9a0a80e3f5f35e975" > accept_table::rqtbl< / a > < / div > < div class = "ttdeci" > struct request_tbl rqtbl< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:44< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a766cfdccc178dd640fc17eb74c5e0d84" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a766cfdccc178dd640fc17eb74c5e0d84" > accept_tbl< / a > < / div > < div class = "ttdeci" > struct accept_table * accept_tbl< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:48< / div > < / div >
< div class = "ttc" id = "structaccept__table_html_a66744aaafbdc3a2a7ece55238aff0fb6" > < div class = "ttname" > < a href = "../../d2/dbe/structaccept__table.html#a66744aaafbdc3a2a7ece55238aff0fb6" > accept_table::ip< / a > < / div > < div class = "ttdeci" > inet_prefix ip< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:34< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a6da65f33355cabe5993fab2dff5941b4" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a6da65f33355cabe5993fab2dff5941b4" > find_free_acp_t< / a > < / div > < div class = "ttdeci" > int find_free_acp_t(int idx)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:176< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a48bc8f11f2f84c027d6fd7fe820857df" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a48bc8f11f2f84c027d6fd7fe820857df" > del_accept< / a > < / div > < div class = "ttdeci" > void del_accept(int idx, int *sidx)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:239< / div > < / div >
< div class = "ttc" id = "structaccept__table_html" > < div class = "ttname" > < a href = "../../d2/dbe/structaccept__table.html" > accept_table< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:32< / div > < / div >
< div class = "ttc" id = "accept_8h_html_ad213b46f0e91a0d82c2fed88ffc3f880" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#ad213b46f0e91a0d82c2fed88ffc3f880" > add_accept_pid< / a > < / div > < div class = "ttdeci" > void add_accept_pid(pid_t pid, int idx, int sidx)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:267< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a5a4be13a1f36281b9c268aa9c507b70e" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a5a4be13a1f36281b9c268aa9c507b70e" > new_accept< / a > < / div > < div class = "ttdeci" > int new_accept(int idx, inet_prefix ip)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:188< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a0afac2e6900284b3945dcc8f237757cc" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a0afac2e6900284b3945dcc8f237757cc" > max_connections< / a > < / div > < div class = "ttdeci" > int max_connections< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:60< / div > < / div >
< div class = "ttc" id = "structaccept__table_html_a67f836efe4c20916746cacc7234eb2aa" > < div class = "ttname" > < a href = "../../d2/dbe/structaccept__table.html#a67f836efe4c20916746cacc7234eb2aa" > accept_table::acp_t< / a > < / div > < div class = "ttdeci" > time_t * acp_t< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:39< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a97f5d05130305618f3acfa5e28b86ab8" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a97f5d05130305618f3acfa5e28b86ab8" > update_accept_tbl< / a > < / div > < div class = "ttdeci" > void update_accept_tbl(void)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:86< / div > < / div >
< div class = "ttc" id = "structaccept__table_html_a5ebdac1fa09806512a862dbf4bb80a30" > < div class = "ttname" > < a href = "../../d2/dbe/structaccept__table.html#a5ebdac1fa09806512a862dbf4bb80a30" > accept_table::pid< / a > < / div > < div class = "ttdeci" > pid_t * pid< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:36< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a97092972bbcf6b25f39b6e61a40c338f" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a97092972bbcf6b25f39b6e61a40c338f" > mtx_acpt_sidx< / a > < / div > < div class = "ttdeci" > pthread_mutex_t mtx_acpt_sidx< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:56< / div > < / div >
< div class = "ttc" id = "structaccept__table_html_a123f84522324c7fbc5e39b4db674c0b1" > < div class = "ttname" > < a href = "../../d2/dbe/structaccept__table.html#a123f84522324c7fbc5e39b4db674c0b1" > accept_table::closed< / a > < / div > < div class = "ttdeci" > unsigned char * closed< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:37< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a29e19093e403323930dcd5a4b1fb8bfb" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a29e19093e403323930dcd5a4b1fb8bfb" > find_first_free< / a > < / div > < div class = "ttdeci" > int find_first_free(void)< / div > < div class = "ttdef" > < b > Definition:< / b > accept.c:146< / div > < / div >
< div class = "ttc" id = "accept_8h_html_a34038acdada5f785578712ba8967f7a7" > < div class = "ttname" > < a href = "../../da/d68/accept_8h.html#a34038acdada5f785578712ba8967f7a7" > update_accept_tbl_mutex< / a > < / div > < div class = "ttdeci" > int update_accept_tbl_mutex< / div > < div class = "ttdef" > < b > Definition:< / b > accept.h:58< / div > < / div >
< / div > <!-- fragment --> < / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a class = "el" href = "../../dir_68267d1309a1af8e8297ef4c3efbcdba.html" > src< / a > < / li > < li class = "navelem" > < a class = "el" href = "../../da/d68/accept_8h.html" > accept.h< / a > < / li >
2014-02-20 00:30:40 +00:00
< li class = "footer" > Generated on Wed Feb 19 2014 16:28:39 for The Netsukuku Project by
2014-02-19 23:45:00 +00:00
< a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "../../doxygen.png" alt = "doxygen" / > < / a > 1.8.6 < / li >
< / ul >
< / div >
< / body >
< / html >