629 lines
75 KiB
HTML
629 lines
75 KiB
HTML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<!-- This file is generated by Nim. -->
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<!-- Favicon -->
|
|
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
|
|
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
|
|
|
|
<!-- Google fonts -->
|
|
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
|
|
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
|
|
|
|
<!-- CSS -->
|
|
<title>chronos/transports/osnet</title>
|
|
<link rel="stylesheet" type="text/css" href="../../nimdoc.out.css">
|
|
|
|
<script type="text/javascript" src="../../dochack.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
function main() {
|
|
var pragmaDots = document.getElementsByClassName("pragmadots");
|
|
for (var i = 0; i < pragmaDots.length; i++) {
|
|
pragmaDots[i].onclick = function(event) {
|
|
// Hide tease
|
|
event.target.parentNode.style.display = "none";
|
|
// Show actual
|
|
event.target.parentNode.nextElementSibling.style.display = "inline";
|
|
}
|
|
}
|
|
|
|
function switchTheme(e) {
|
|
if (e.target.checked) {
|
|
document.documentElement.setAttribute('data-theme', 'dark');
|
|
localStorage.setItem('theme', 'dark');
|
|
} else {
|
|
document.documentElement.setAttribute('data-theme', 'light');
|
|
localStorage.setItem('theme', 'light');
|
|
}
|
|
}
|
|
|
|
const toggleSwitch = document.querySelector('.theme-switch input[type="checkbox"]');
|
|
if (toggleSwitch !== null) {
|
|
toggleSwitch.addEventListener('change', switchTheme, false);
|
|
}
|
|
|
|
var currentTheme = localStorage.getItem('theme');
|
|
if (!currentTheme && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
currentTheme = 'dark';
|
|
}
|
|
if (currentTheme) {
|
|
document.documentElement.setAttribute('data-theme', currentTheme);
|
|
|
|
if (currentTheme === 'dark' && toggleSwitch !== null) {
|
|
toggleSwitch.checked = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
window.addEventListener('DOMContentLoaded', main);
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<div class="document" id="documentId">
|
|
<div class="container">
|
|
<h1 class="title">chronos/transports/osnet</h1>
|
|
<div class="row">
|
|
<div class="three columns">
|
|
<div class="theme-switch-wrapper">
|
|
<label class="theme-switch" for="checkbox">
|
|
<input type="checkbox" id="checkbox" />
|
|
<div class="slider round"></div>
|
|
</label>
|
|
<em>Dark Mode</em>
|
|
</div>
|
|
<div id="global-links">
|
|
<ul class="simple">
|
|
<li>
|
|
<a href="../../theindex.html">Index</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="searchInputDiv">
|
|
Search: <input type="text" id="searchInput"
|
|
onkeyup="search()" />
|
|
</div>
|
|
<div>
|
|
Group by:
|
|
<select onchange="groupBy(this.value)">
|
|
<option value="section">Section</option>
|
|
<option value="type">Type</option>
|
|
</select>
|
|
</div>
|
|
<ul class="simple simple-toc" id="toc-list">
|
|
<li>
|
|
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
|
|
<ul class="simple simple-toc-section">
|
|
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a class="reference reference-toplevel" href="#7" id="57">Types</a>
|
|
<ul class="simple simple-toc-section">
|
|
<li><a class="reference" href="#InterfaceAddress"
|
|
title="InterfaceAddress = object
|
|
host*: TransportAddress
|
|
net*: IpNet">InterfaceAddress</a></li>
|
|
<li><a class="reference" href="#InterfaceState"
|
|
title="InterfaceState = enum
|
|
StatusError = 0, StatusUp, StatusDown, StatusTesting, StatusUnknown,
|
|
StatusDormant, StatusNotPresent, StatusLowerLayerDown">InterfaceState</a></li>
|
|
<li><a class="reference" href="#InterfaceType"
|
|
title="InterfaceType = enum
|
|
IfError = 0, IfOther = 1, IfRegular1822 = 2, IfHdh1822 = 3, IfDdnX25 = 4,
|
|
IfRfc877X25 = 5, IfEthernetCsmacd = 6, IfIso88023Csmacd = 7,
|
|
IfIso88024TokenBus = 8, IfIso88025TokenRing = 9, IfIso88026MAN = 10,
|
|
IfStarlan = 11, IfProteon10Mbit = 12, IfProteon80Mbit = 13,
|
|
IfHyperChannel = 14, IfFddi = 15, IfLapB = 16, IfSdlc = 17, IfDs1 = 18,
|
|
IfE1 = 19, IfBasicIsdn = 20, IfPrimaryIsdn = 21, IfPropPoint2PointSerial = 22,
|
|
IfPpp = 23, IfSoftwareLoopback = 24, IfEon = 25, IfEthernet3Mbit = 26,
|
|
IfNsip = 27, IfSlip = 28, IfUltra = 29, IfDs3 = 30, IfSip = 31,
|
|
IfFrameRelay = 32, IfRs232 = 33, IfPara = 34, IfArcNet = 35,
|
|
IfArcNetPlus = 36, IfAtm = 37, IfMioX25 = 38, IfSonet = 39, IfX25Ple = 40,
|
|
IfIso88022Llc = 41, IfLocalTalk = 42, IfSmdsDxi = 43,
|
|
IfFrameRelayService = 44, IfV35 = 45, IfHssi = 46, IfHippi = 47, IfModem = 48,
|
|
IfAal5 = 49, IfSonetPath = 50, IfSonetVt = 51, IfSmdsIcip = 52,
|
|
IfPropVirtual = 53, IfPropMultiplexor = 54, IfIeee80212 = 55,
|
|
IfFibreChannel = 56, IfHippiInterface = 57, IfFrameRelayInterconnect = 58,
|
|
IfAflane8023 = 59, IfAflane8025 = 60, IfCctemul = 61, IfFastEther = 62,
|
|
IfIsdn = 63, IfV11 = 64, IfV36 = 65, IfG70364K = 66, IfG7032MB = 67,
|
|
IfQllc = 68, IfFastEtherFx = 69, IfChannel = 70, IfIeee80211 = 71,
|
|
IfIbm370Parchan = 72, IfEscon = 73, IfDlsw = 74, IfIsdnS = 75, IfIsdnU = 76,
|
|
IfLapD = 77, IfIpSwitch = 78, IfRsrb = 79, IfAtmLogical = 80, IfDs0 = 81,
|
|
IfDs0Bundle = 82, IfBsc = 83, IfAsync = 84, IfCnr = 85, IfIso88025rDtr = 86,
|
|
IfEplrs = 87, IfArap = 88, IfPropCnls = 89, IfHostPad = 90, IfTermPad = 91,
|
|
IfFrameRelayMpi = 92, IfX213 = 93, IfAdsl = 94, IfRadsl = 95, IfSdsl = 96,
|
|
IfVdsl = 97, IfIso88025Crfprint = 98, IfMyrInet = 99, IfVoiceEm = 100,
|
|
IfVoiceFxo = 101, IfVoiceFxs = 102, IfVoiceEncap = 103, IfVoiceOverip = 104,
|
|
IfAtmDxi = 105, IfAtmFuni = 106, IfAtmIma = 107, IfPppMultilinkBundle = 108,
|
|
IfIpoverCdlc = 109, IfIpoverClaw = 110, IfStackToStack = 111,
|
|
IfVirtualIpAddress = 112, IfMpc = 113, IfIpoverAtm = 114,
|
|
IfIso88025Fiber = 115, IfTdlc = 116, IfGigabitEthernet = 117, IfHdlc = 118,
|
|
IfLapF = 119, IfV37 = 120, IfX25Mlp = 121, IfX25HuntGroup = 122,
|
|
IfTransPhdlc = 123, IfInterleave = 124, IfFast = 125, IfIp = 126,
|
|
IfDocScableMaclayer = 127, IfDocScableDownstream = 128,
|
|
IfDocScableUpstream = 129, IfA12MppSwitch = 130, IfTunnel = 131,
|
|
IfCoffee = 132, IfCes = 133, IfAtmSubInterface = 134, IfL2Vlan = 135,
|
|
IfL3IpVlan = 136, IfL3IpxVlan = 137, IfDigitalPowerline = 138,
|
|
IfMediaMailOverIp = 139, IfDtm = 140, IfDcn = 141, IfIpForward = 142,
|
|
IfMsdsl = 143, IfIeee1394 = 144, IfIfGsn = 145, IfDvbrccMaclayer = 146,
|
|
IfDvbrccDownstream = 147, IfDvbrccUpstream = 148, IfAtmVirtual = 149,
|
|
IfMplsTunnel = 150, IfSrp = 151, IfVoiceOverAtm = 152,
|
|
IfVoiceOverFrameRelay = 153, IfIdsl = 154, IfCompositeLink = 155,
|
|
IfSs7SigLink = 156, IfPropWirelessP2p = 157, IfFrForward = 158,
|
|
IfRfc1483 = 159, IfUsb = 160, IfIeee8023AdLag = 161,
|
|
IfBgpPolicyAccounting = 162, IfFrf16MfrBundle = 163, IfH323Gatekeeper = 164,
|
|
IfH323Proxy = 165, IfMpls = 166, IfMfSigLink = 167, IfHdsl2 = 168,
|
|
IfShdsl = 169, IfDs1Fdl = 170, IfPos = 171, IfDvbAsiIn = 172,
|
|
IfDvbAsiOut = 173, IfPlc = 174, IfNfas = 175, IfTr008 = 176, IfGr303Rdt = 177,
|
|
IfGr303Idt = 178, IfIsup = 179, IfPropDocsWirelessMaclayer = 180,
|
|
IfPropDocsWirelessDownstream = 181, IfPropDocsWirelessUpstream = 182,
|
|
IfHiperLan2 = 183, IfPropBwaP2mp = 184, IfSonetOverheadChannel = 185,
|
|
IfDigitalWrapperOverheadChannel = 186, IfAal2 = 187, IfRadioMac = 188,
|
|
IfAtmRadio = 189, IfImt = 190, IfMvl = 191, IfReachDsl = 192,
|
|
IfFrDlciEndpt = 193, IfAtmVciEndpt = 194, IfOpticalChannel = 195,
|
|
IfOpticalTransport = 196, IfIeee80216Wman = 237, IfWwanPp = 243,
|
|
IfWwanPp2 = 244, IfIeee802154 = 259, IfXboxWireless = 281">InterfaceType</a></li>
|
|
<li><a class="reference" href="#NetworkInterface"
|
|
title="NetworkInterface = object
|
|
ifIndex*: int
|
|
ifType*: InterfaceType
|
|
name*: string
|
|
desc*: string
|
|
mtu*: int64
|
|
flags*: uint64
|
|
state*: InterfaceState
|
|
mac*: array[MaxAdapterAddressLength, byte]
|
|
maclen*: int
|
|
addresses*: seq[InterfaceAddress]">NetworkInterface</a></li>
|
|
<li><a class="reference" href="#Route"
|
|
title="Route = object
|
|
ifIndex*: int
|
|
dest*: TransportAddress
|
|
source*: TransportAddress
|
|
gateway*: TransportAddress
|
|
metric*: int">Route</a></li>
|
|
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a class="reference reference-toplevel" href="#10" id="60">Consts</a>
|
|
<ul class="simple simple-toc-section">
|
|
<li><a class="reference" href="#MaxAdapterAddressLength"
|
|
title="MaxAdapterAddressLength = 8">MaxAdapterAddressLength</a></li>
|
|
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a class="reference reference-toplevel" href="#12" id="62">Procs</a>
|
|
<ul class="simple simple-toc-section">
|
|
<ul class="simple nested-toc-section">$
|
|
<li><a class="reference" href="#%24%2CInterfaceAddress"
|
|
title="`$`(ifa: InterfaceAddress): string">`$`(ifa: InterfaceAddress): string</a></li>
|
|
<li><a class="reference" href="#%24%2CNetworkInterface"
|
|
title="`$`(iface: NetworkInterface): string">`$`(iface: NetworkInterface): string</a></li>
|
|
<li><a class="reference" href="#%24%2CRoute"
|
|
title="`$`(route: Route): string">`$`(route: Route): string</a></li>
|
|
|
|
</ul>
|
|
<ul class="simple nested-toc-section">broadcast
|
|
<li><a class="reference" href="#broadcast%2CInterfaceAddress"
|
|
title="broadcast(ifa: InterfaceAddress): TransportAddress">broadcast(ifa: InterfaceAddress): TransportAddress</a></li>
|
|
|
|
</ul>
|
|
<ul class="simple nested-toc-section">cmp
|
|
<li><a class="reference" href="#cmp%2CNetworkInterface%2CNetworkInterface"
|
|
title="cmp(a, b: NetworkInterface): int">cmp(a, b: NetworkInterface): int</a></li>
|
|
|
|
</ul>
|
|
<ul class="simple nested-toc-section">getBestRoute
|
|
<li><a class="reference" href="#getBestRoute%2CTransportAddress"
|
|
title="getBestRoute(address: TransportAddress): Route">getBestRoute(address: TransportAddress): Route</a></li>
|
|
|
|
</ul>
|
|
<ul class="simple nested-toc-section">getInterfaces
|
|
<li><a class="reference" href="#getInterfaces"
|
|
title="getInterfaces(): seq[NetworkInterface]">getInterfaces(): seq[NetworkInterface]</a></li>
|
|
|
|
</ul>
|
|
<ul class="simple nested-toc-section">init
|
|
<li><a class="reference" href="#init%2Ctypedesc%5BInterfaceAddress%5D%2CTransportAddress%2Cint"
|
|
title="init(ift: typedesc[InterfaceAddress]; address: TransportAddress; prefix: int): InterfaceAddress">init(ift: typedesc[InterfaceAddress]; address: TransportAddress; prefix: int): InterfaceAddress</a></li>
|
|
|
|
</ul>
|
|
<ul class="simple nested-toc-section">netmask
|
|
<li><a class="reference" href="#netmask%2CInterfaceAddress"
|
|
title="netmask(ifa: InterfaceAddress): TransportAddress">netmask(ifa: InterfaceAddress): TransportAddress</a></li>
|
|
|
|
</ul>
|
|
<ul class="simple nested-toc-section">network
|
|
<li><a class="reference" href="#network%2CInterfaceAddress"
|
|
title="network(ifa: InterfaceAddress): TransportAddress">network(ifa: InterfaceAddress): TransportAddress</a></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a class="reference reference-toplevel" href="#18" id="68">Templates</a>
|
|
<ul class="simple simple-toc-section">
|
|
<ul class="simple nested-toc-section">RTA_ALIGN
|
|
<li><a class="reference" href="#RTA_ALIGN.t%2Cuint"
|
|
title="RTA_ALIGN(length: uint): uint">RTA_ALIGN(length: uint): uint</a></li>
|
|
|
|
</ul>
|
|
<ul class="simple nested-toc-section">RTA_PAYLOAD
|
|
<li><a class="reference" href="#RTA_PAYLOAD.t%2Cuint"
|
|
title="RTA_PAYLOAD(length: uint): uint">RTA_PAYLOAD(length: uint): uint</a></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a class="reference reference-toplevel" href="#19" id="69">Exports</a>
|
|
<ul class="simple simple-toc-section">
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L1"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L1" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
<div class="nine columns" id="content">
|
|
<div id="tocRoot"></div>
|
|
|
|
<p class="module-desc">This module implements cross-platform network interfaces list. Currently supported OSes are Windows, Linux, MacOS, BSD(not tested).</p>
|
|
<div class="section" id="6">
|
|
<h1><a class="toc-backref" href="#6">Imports</a></h1>
|
|
<dl class="item">
|
|
<a class="reference external" href="../osdefs.html">../osdefs</a>, <a class="reference external" href="ipnet.html">ipnet</a>, <a class="reference external" href="../osutils.html">../osutils</a>
|
|
</dl></div>
|
|
<div class="section" id="7">
|
|
<h1><a class="toc-backref" href="#7">Types</a></h1>
|
|
<dl class="item">
|
|
<div id="InterfaceAddress">
|
|
<dt><pre><a href="osnet.html#InterfaceAddress"><span class="Identifier">InterfaceAddress</span></a> <span class="Other">=</span> <span class="Keyword">object</span>
|
|
<span class="Identifier">host</span><span class="Operator">*</span><span class="Other">:</span> <a href="common.html#TransportAddress"><span class="Identifier">TransportAddress</span></a>
|
|
<span class="Identifier">net</span><span class="Operator">*</span><span class="Other">:</span> <a href="ipnet.html#IpNet"><span class="Identifier">IpNet</span></a>
|
|
</pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L242"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L242" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="InterfaceState">
|
|
<dt><pre><a href="osnet.html#InterfaceState"><span class="Identifier">InterfaceState</span></a> <span class="Other">=</span> <span class="Keyword">enum</span>
|
|
<span class="Identifier">StatusError</span> <span class="Other">=</span> <span class="DecNumber">0</span><span class="Other">,</span> <span class="Identifier">StatusUp</span><span class="Other">,</span> <span class="Identifier">StatusDown</span><span class="Other">,</span> <span class="Identifier">StatusTesting</span><span class="Other">,</span> <span class="Identifier">StatusUnknown</span><span class="Other">,</span>
|
|
<span class="Identifier">StatusDormant</span><span class="Other">,</span> <span class="Identifier">StatusNotPresent</span><span class="Other">,</span> <span class="Identifier">StatusLowerLayerDown</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L232"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L232" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="InterfaceType">
|
|
<dt><pre><a href="osnet.html#InterfaceType"><span class="Identifier">InterfaceType</span></a> <span class="Other">=</span> <span class="Keyword">enum</span>
|
|
<span class="Identifier">IfError</span> <span class="Other">=</span> <span class="DecNumber">0</span><span class="Other">,</span> <span class="Identifier">IfOther</span> <span class="Other">=</span> <span class="DecNumber">1</span><span class="Other">,</span> <span class="Identifier">IfRegular1822</span> <span class="Other">=</span> <span class="DecNumber">2</span><span class="Other">,</span> <span class="Identifier">IfHdh1822</span> <span class="Other">=</span> <span class="DecNumber">3</span><span class="Other">,</span> <span class="Identifier">IfDdnX25</span> <span class="Other">=</span> <span class="DecNumber">4</span><span class="Other">,</span>
|
|
<span class="Identifier">IfRfc877X25</span> <span class="Other">=</span> <span class="DecNumber">5</span><span class="Other">,</span> <span class="Identifier">IfEthernetCsmacd</span> <span class="Other">=</span> <span class="DecNumber">6</span><span class="Other">,</span> <span class="Identifier">IfIso88023Csmacd</span> <span class="Other">=</span> <span class="DecNumber">7</span><span class="Other">,</span>
|
|
<span class="Identifier">IfIso88024TokenBus</span> <span class="Other">=</span> <span class="DecNumber">8</span><span class="Other">,</span> <span class="Identifier">IfIso88025TokenRing</span> <span class="Other">=</span> <span class="DecNumber">9</span><span class="Other">,</span> <span class="Identifier">IfIso88026MAN</span> <span class="Other">=</span> <span class="DecNumber">10</span><span class="Other">,</span>
|
|
<span class="Identifier">IfStarlan</span> <span class="Other">=</span> <span class="DecNumber">11</span><span class="Other">,</span> <span class="Identifier">IfProteon10Mbit</span> <span class="Other">=</span> <span class="DecNumber">12</span><span class="Other">,</span> <span class="Identifier">IfProteon80Mbit</span> <span class="Other">=</span> <span class="DecNumber">13</span><span class="Other">,</span>
|
|
<span class="Identifier">IfHyperChannel</span> <span class="Other">=</span> <span class="DecNumber">14</span><span class="Other">,</span> <span class="Identifier">IfFddi</span> <span class="Other">=</span> <span class="DecNumber">15</span><span class="Other">,</span> <span class="Identifier">IfLapB</span> <span class="Other">=</span> <span class="DecNumber">16</span><span class="Other">,</span> <span class="Identifier">IfSdlc</span> <span class="Other">=</span> <span class="DecNumber">17</span><span class="Other">,</span> <span class="Identifier">IfDs1</span> <span class="Other">=</span> <span class="DecNumber">18</span><span class="Other">,</span>
|
|
<span class="Identifier">IfE1</span> <span class="Other">=</span> <span class="DecNumber">19</span><span class="Other">,</span> <span class="Identifier">IfBasicIsdn</span> <span class="Other">=</span> <span class="DecNumber">20</span><span class="Other">,</span> <span class="Identifier">IfPrimaryIsdn</span> <span class="Other">=</span> <span class="DecNumber">21</span><span class="Other">,</span> <span class="Identifier">IfPropPoint2PointSerial</span> <span class="Other">=</span> <span class="DecNumber">22</span><span class="Other">,</span>
|
|
<span class="Identifier">IfPpp</span> <span class="Other">=</span> <span class="DecNumber">23</span><span class="Other">,</span> <span class="Identifier">IfSoftwareLoopback</span> <span class="Other">=</span> <span class="DecNumber">24</span><span class="Other">,</span> <span class="Identifier">IfEon</span> <span class="Other">=</span> <span class="DecNumber">25</span><span class="Other">,</span> <span class="Identifier">IfEthernet3Mbit</span> <span class="Other">=</span> <span class="DecNumber">26</span><span class="Other">,</span>
|
|
<span class="Identifier">IfNsip</span> <span class="Other">=</span> <span class="DecNumber">27</span><span class="Other">,</span> <span class="Identifier">IfSlip</span> <span class="Other">=</span> <span class="DecNumber">28</span><span class="Other">,</span> <span class="Identifier">IfUltra</span> <span class="Other">=</span> <span class="DecNumber">29</span><span class="Other">,</span> <span class="Identifier">IfDs3</span> <span class="Other">=</span> <span class="DecNumber">30</span><span class="Other">,</span> <span class="Identifier">IfSip</span> <span class="Other">=</span> <span class="DecNumber">31</span><span class="Other">,</span>
|
|
<span class="Identifier">IfFrameRelay</span> <span class="Other">=</span> <span class="DecNumber">32</span><span class="Other">,</span> <span class="Identifier">IfRs232</span> <span class="Other">=</span> <span class="DecNumber">33</span><span class="Other">,</span> <span class="Identifier">IfPara</span> <span class="Other">=</span> <span class="DecNumber">34</span><span class="Other">,</span> <span class="Identifier">IfArcNet</span> <span class="Other">=</span> <span class="DecNumber">35</span><span class="Other">,</span>
|
|
<span class="Identifier">IfArcNetPlus</span> <span class="Other">=</span> <span class="DecNumber">36</span><span class="Other">,</span> <span class="Identifier">IfAtm</span> <span class="Other">=</span> <span class="DecNumber">37</span><span class="Other">,</span> <span class="Identifier">IfMioX25</span> <span class="Other">=</span> <span class="DecNumber">38</span><span class="Other">,</span> <span class="Identifier">IfSonet</span> <span class="Other">=</span> <span class="DecNumber">39</span><span class="Other">,</span> <span class="Identifier">IfX25Ple</span> <span class="Other">=</span> <span class="DecNumber">40</span><span class="Other">,</span>
|
|
<span class="Identifier">IfIso88022Llc</span> <span class="Other">=</span> <span class="DecNumber">41</span><span class="Other">,</span> <span class="Identifier">IfLocalTalk</span> <span class="Other">=</span> <span class="DecNumber">42</span><span class="Other">,</span> <span class="Identifier">IfSmdsDxi</span> <span class="Other">=</span> <span class="DecNumber">43</span><span class="Other">,</span>
|
|
<span class="Identifier">IfFrameRelayService</span> <span class="Other">=</span> <span class="DecNumber">44</span><span class="Other">,</span> <span class="Identifier">IfV35</span> <span class="Other">=</span> <span class="DecNumber">45</span><span class="Other">,</span> <span class="Identifier">IfHssi</span> <span class="Other">=</span> <span class="DecNumber">46</span><span class="Other">,</span> <span class="Identifier">IfHippi</span> <span class="Other">=</span> <span class="DecNumber">47</span><span class="Other">,</span> <span class="Identifier">IfModem</span> <span class="Other">=</span> <span class="DecNumber">48</span><span class="Other">,</span>
|
|
<span class="Identifier">IfAal5</span> <span class="Other">=</span> <span class="DecNumber">49</span><span class="Other">,</span> <span class="Identifier">IfSonetPath</span> <span class="Other">=</span> <span class="DecNumber">50</span><span class="Other">,</span> <span class="Identifier">IfSonetVt</span> <span class="Other">=</span> <span class="DecNumber">51</span><span class="Other">,</span> <span class="Identifier">IfSmdsIcip</span> <span class="Other">=</span> <span class="DecNumber">52</span><span class="Other">,</span>
|
|
<span class="Identifier">IfPropVirtual</span> <span class="Other">=</span> <span class="DecNumber">53</span><span class="Other">,</span> <span class="Identifier">IfPropMultiplexor</span> <span class="Other">=</span> <span class="DecNumber">54</span><span class="Other">,</span> <span class="Identifier">IfIeee80212</span> <span class="Other">=</span> <span class="DecNumber">55</span><span class="Other">,</span>
|
|
<span class="Identifier">IfFibreChannel</span> <span class="Other">=</span> <span class="DecNumber">56</span><span class="Other">,</span> <span class="Identifier">IfHippiInterface</span> <span class="Other">=</span> <span class="DecNumber">57</span><span class="Other">,</span> <span class="Identifier">IfFrameRelayInterconnect</span> <span class="Other">=</span> <span class="DecNumber">58</span><span class="Other">,</span>
|
|
<span class="Identifier">IfAflane8023</span> <span class="Other">=</span> <span class="DecNumber">59</span><span class="Other">,</span> <span class="Identifier">IfAflane8025</span> <span class="Other">=</span> <span class="DecNumber">60</span><span class="Other">,</span> <span class="Identifier">IfCctemul</span> <span class="Other">=</span> <span class="DecNumber">61</span><span class="Other">,</span> <span class="Identifier">IfFastEther</span> <span class="Other">=</span> <span class="DecNumber">62</span><span class="Other">,</span>
|
|
<span class="Identifier">IfIsdn</span> <span class="Other">=</span> <span class="DecNumber">63</span><span class="Other">,</span> <span class="Identifier">IfV11</span> <span class="Other">=</span> <span class="DecNumber">64</span><span class="Other">,</span> <span class="Identifier">IfV36</span> <span class="Other">=</span> <span class="DecNumber">65</span><span class="Other">,</span> <span class="Identifier">IfG70364K</span> <span class="Other">=</span> <span class="DecNumber">66</span><span class="Other">,</span> <span class="Identifier">IfG7032MB</span> <span class="Other">=</span> <span class="DecNumber">67</span><span class="Other">,</span>
|
|
<span class="Identifier">IfQllc</span> <span class="Other">=</span> <span class="DecNumber">68</span><span class="Other">,</span> <span class="Identifier">IfFastEtherFx</span> <span class="Other">=</span> <span class="DecNumber">69</span><span class="Other">,</span> <span class="Identifier">IfChannel</span> <span class="Other">=</span> <span class="DecNumber">70</span><span class="Other">,</span> <span class="Identifier">IfIeee80211</span> <span class="Other">=</span> <span class="DecNumber">71</span><span class="Other">,</span>
|
|
<span class="Identifier">IfIbm370Parchan</span> <span class="Other">=</span> <span class="DecNumber">72</span><span class="Other">,</span> <span class="Identifier">IfEscon</span> <span class="Other">=</span> <span class="DecNumber">73</span><span class="Other">,</span> <span class="Identifier">IfDlsw</span> <span class="Other">=</span> <span class="DecNumber">74</span><span class="Other">,</span> <span class="Identifier">IfIsdnS</span> <span class="Other">=</span> <span class="DecNumber">75</span><span class="Other">,</span> <span class="Identifier">IfIsdnU</span> <span class="Other">=</span> <span class="DecNumber">76</span><span class="Other">,</span>
|
|
<span class="Identifier">IfLapD</span> <span class="Other">=</span> <span class="DecNumber">77</span><span class="Other">,</span> <span class="Identifier">IfIpSwitch</span> <span class="Other">=</span> <span class="DecNumber">78</span><span class="Other">,</span> <span class="Identifier">IfRsrb</span> <span class="Other">=</span> <span class="DecNumber">79</span><span class="Other">,</span> <span class="Identifier">IfAtmLogical</span> <span class="Other">=</span> <span class="DecNumber">80</span><span class="Other">,</span> <span class="Identifier">IfDs0</span> <span class="Other">=</span> <span class="DecNumber">81</span><span class="Other">,</span>
|
|
<span class="Identifier">IfDs0Bundle</span> <span class="Other">=</span> <span class="DecNumber">82</span><span class="Other">,</span> <span class="Identifier">IfBsc</span> <span class="Other">=</span> <span class="DecNumber">83</span><span class="Other">,</span> <span class="Identifier">IfAsync</span> <span class="Other">=</span> <span class="DecNumber">84</span><span class="Other">,</span> <span class="Identifier">IfCnr</span> <span class="Other">=</span> <span class="DecNumber">85</span><span class="Other">,</span> <span class="Identifier">IfIso88025rDtr</span> <span class="Other">=</span> <span class="DecNumber">86</span><span class="Other">,</span>
|
|
<span class="Identifier">IfEplrs</span> <span class="Other">=</span> <span class="DecNumber">87</span><span class="Other">,</span> <span class="Identifier">IfArap</span> <span class="Other">=</span> <span class="DecNumber">88</span><span class="Other">,</span> <span class="Identifier">IfPropCnls</span> <span class="Other">=</span> <span class="DecNumber">89</span><span class="Other">,</span> <span class="Identifier">IfHostPad</span> <span class="Other">=</span> <span class="DecNumber">90</span><span class="Other">,</span> <span class="Identifier">IfTermPad</span> <span class="Other">=</span> <span class="DecNumber">91</span><span class="Other">,</span>
|
|
<span class="Identifier">IfFrameRelayMpi</span> <span class="Other">=</span> <span class="DecNumber">92</span><span class="Other">,</span> <span class="Identifier">IfX213</span> <span class="Other">=</span> <span class="DecNumber">93</span><span class="Other">,</span> <span class="Identifier">IfAdsl</span> <span class="Other">=</span> <span class="DecNumber">94</span><span class="Other">,</span> <span class="Identifier">IfRadsl</span> <span class="Other">=</span> <span class="DecNumber">95</span><span class="Other">,</span> <span class="Identifier">IfSdsl</span> <span class="Other">=</span> <span class="DecNumber">96</span><span class="Other">,</span>
|
|
<span class="Identifier">IfVdsl</span> <span class="Other">=</span> <span class="DecNumber">97</span><span class="Other">,</span> <span class="Identifier">IfIso88025Crfprint</span> <span class="Other">=</span> <span class="DecNumber">98</span><span class="Other">,</span> <span class="Identifier">IfMyrInet</span> <span class="Other">=</span> <span class="DecNumber">99</span><span class="Other">,</span> <span class="Identifier">IfVoiceEm</span> <span class="Other">=</span> <span class="DecNumber">100</span><span class="Other">,</span>
|
|
<span class="Identifier">IfVoiceFxo</span> <span class="Other">=</span> <span class="DecNumber">101</span><span class="Other">,</span> <span class="Identifier">IfVoiceFxs</span> <span class="Other">=</span> <span class="DecNumber">102</span><span class="Other">,</span> <span class="Identifier">IfVoiceEncap</span> <span class="Other">=</span> <span class="DecNumber">103</span><span class="Other">,</span> <span class="Identifier">IfVoiceOverip</span> <span class="Other">=</span> <span class="DecNumber">104</span><span class="Other">,</span>
|
|
<span class="Identifier">IfAtmDxi</span> <span class="Other">=</span> <span class="DecNumber">105</span><span class="Other">,</span> <span class="Identifier">IfAtmFuni</span> <span class="Other">=</span> <span class="DecNumber">106</span><span class="Other">,</span> <span class="Identifier">IfAtmIma</span> <span class="Other">=</span> <span class="DecNumber">107</span><span class="Other">,</span> <span class="Identifier">IfPppMultilinkBundle</span> <span class="Other">=</span> <span class="DecNumber">108</span><span class="Other">,</span>
|
|
<span class="Identifier">IfIpoverCdlc</span> <span class="Other">=</span> <span class="DecNumber">109</span><span class="Other">,</span> <span class="Identifier">IfIpoverClaw</span> <span class="Other">=</span> <span class="DecNumber">110</span><span class="Other">,</span> <span class="Identifier">IfStackToStack</span> <span class="Other">=</span> <span class="DecNumber">111</span><span class="Other">,</span>
|
|
<span class="Identifier">IfVirtualIpAddress</span> <span class="Other">=</span> <span class="DecNumber">112</span><span class="Other">,</span> <span class="Identifier">IfMpc</span> <span class="Other">=</span> <span class="DecNumber">113</span><span class="Other">,</span> <span class="Identifier">IfIpoverAtm</span> <span class="Other">=</span> <span class="DecNumber">114</span><span class="Other">,</span>
|
|
<span class="Identifier">IfIso88025Fiber</span> <span class="Other">=</span> <span class="DecNumber">115</span><span class="Other">,</span> <span class="Identifier">IfTdlc</span> <span class="Other">=</span> <span class="DecNumber">116</span><span class="Other">,</span> <span class="Identifier">IfGigabitEthernet</span> <span class="Other">=</span> <span class="DecNumber">117</span><span class="Other">,</span> <span class="Identifier">IfHdlc</span> <span class="Other">=</span> <span class="DecNumber">118</span><span class="Other">,</span>
|
|
<span class="Identifier">IfLapF</span> <span class="Other">=</span> <span class="DecNumber">119</span><span class="Other">,</span> <span class="Identifier">IfV37</span> <span class="Other">=</span> <span class="DecNumber">120</span><span class="Other">,</span> <span class="Identifier">IfX25Mlp</span> <span class="Other">=</span> <span class="DecNumber">121</span><span class="Other">,</span> <span class="Identifier">IfX25HuntGroup</span> <span class="Other">=</span> <span class="DecNumber">122</span><span class="Other">,</span>
|
|
<span class="Identifier">IfTransPhdlc</span> <span class="Other">=</span> <span class="DecNumber">123</span><span class="Other">,</span> <span class="Identifier">IfInterleave</span> <span class="Other">=</span> <span class="DecNumber">124</span><span class="Other">,</span> <span class="Identifier">IfFast</span> <span class="Other">=</span> <span class="DecNumber">125</span><span class="Other">,</span> <span class="Identifier">IfIp</span> <span class="Other">=</span> <span class="DecNumber">126</span><span class="Other">,</span>
|
|
<span class="Identifier">IfDocScableMaclayer</span> <span class="Other">=</span> <span class="DecNumber">127</span><span class="Other">,</span> <span class="Identifier">IfDocScableDownstream</span> <span class="Other">=</span> <span class="DecNumber">128</span><span class="Other">,</span>
|
|
<span class="Identifier">IfDocScableUpstream</span> <span class="Other">=</span> <span class="DecNumber">129</span><span class="Other">,</span> <span class="Identifier">IfA12MppSwitch</span> <span class="Other">=</span> <span class="DecNumber">130</span><span class="Other">,</span> <span class="Identifier">IfTunnel</span> <span class="Other">=</span> <span class="DecNumber">131</span><span class="Other">,</span>
|
|
<span class="Identifier">IfCoffee</span> <span class="Other">=</span> <span class="DecNumber">132</span><span class="Other">,</span> <span class="Identifier">IfCes</span> <span class="Other">=</span> <span class="DecNumber">133</span><span class="Other">,</span> <span class="Identifier">IfAtmSubInterface</span> <span class="Other">=</span> <span class="DecNumber">134</span><span class="Other">,</span> <span class="Identifier">IfL2Vlan</span> <span class="Other">=</span> <span class="DecNumber">135</span><span class="Other">,</span>
|
|
<span class="Identifier">IfL3IpVlan</span> <span class="Other">=</span> <span class="DecNumber">136</span><span class="Other">,</span> <span class="Identifier">IfL3IpxVlan</span> <span class="Other">=</span> <span class="DecNumber">137</span><span class="Other">,</span> <span class="Identifier">IfDigitalPowerline</span> <span class="Other">=</span> <span class="DecNumber">138</span><span class="Other">,</span>
|
|
<span class="Identifier">IfMediaMailOverIp</span> <span class="Other">=</span> <span class="DecNumber">139</span><span class="Other">,</span> <span class="Identifier">IfDtm</span> <span class="Other">=</span> <span class="DecNumber">140</span><span class="Other">,</span> <span class="Identifier">IfDcn</span> <span class="Other">=</span> <span class="DecNumber">141</span><span class="Other">,</span> <span class="Identifier">IfIpForward</span> <span class="Other">=</span> <span class="DecNumber">142</span><span class="Other">,</span>
|
|
<span class="Identifier">IfMsdsl</span> <span class="Other">=</span> <span class="DecNumber">143</span><span class="Other">,</span> <span class="Identifier">IfIeee1394</span> <span class="Other">=</span> <span class="DecNumber">144</span><span class="Other">,</span> <span class="Identifier">IfIfGsn</span> <span class="Other">=</span> <span class="DecNumber">145</span><span class="Other">,</span> <span class="Identifier">IfDvbrccMaclayer</span> <span class="Other">=</span> <span class="DecNumber">146</span><span class="Other">,</span>
|
|
<span class="Identifier">IfDvbrccDownstream</span> <span class="Other">=</span> <span class="DecNumber">147</span><span class="Other">,</span> <span class="Identifier">IfDvbrccUpstream</span> <span class="Other">=</span> <span class="DecNumber">148</span><span class="Other">,</span> <span class="Identifier">IfAtmVirtual</span> <span class="Other">=</span> <span class="DecNumber">149</span><span class="Other">,</span>
|
|
<span class="Identifier">IfMplsTunnel</span> <span class="Other">=</span> <span class="DecNumber">150</span><span class="Other">,</span> <span class="Identifier">IfSrp</span> <span class="Other">=</span> <span class="DecNumber">151</span><span class="Other">,</span> <span class="Identifier">IfVoiceOverAtm</span> <span class="Other">=</span> <span class="DecNumber">152</span><span class="Other">,</span>
|
|
<span class="Identifier">IfVoiceOverFrameRelay</span> <span class="Other">=</span> <span class="DecNumber">153</span><span class="Other">,</span> <span class="Identifier">IfIdsl</span> <span class="Other">=</span> <span class="DecNumber">154</span><span class="Other">,</span> <span class="Identifier">IfCompositeLink</span> <span class="Other">=</span> <span class="DecNumber">155</span><span class="Other">,</span>
|
|
<span class="Identifier">IfSs7SigLink</span> <span class="Other">=</span> <span class="DecNumber">156</span><span class="Other">,</span> <span class="Identifier">IfPropWirelessP2p</span> <span class="Other">=</span> <span class="DecNumber">157</span><span class="Other">,</span> <span class="Identifier">IfFrForward</span> <span class="Other">=</span> <span class="DecNumber">158</span><span class="Other">,</span>
|
|
<span class="Identifier">IfRfc1483</span> <span class="Other">=</span> <span class="DecNumber">159</span><span class="Other">,</span> <span class="Identifier">IfUsb</span> <span class="Other">=</span> <span class="DecNumber">160</span><span class="Other">,</span> <span class="Identifier">IfIeee8023AdLag</span> <span class="Other">=</span> <span class="DecNumber">161</span><span class="Other">,</span>
|
|
<span class="Identifier">IfBgpPolicyAccounting</span> <span class="Other">=</span> <span class="DecNumber">162</span><span class="Other">,</span> <span class="Identifier">IfFrf16MfrBundle</span> <span class="Other">=</span> <span class="DecNumber">163</span><span class="Other">,</span> <span class="Identifier">IfH323Gatekeeper</span> <span class="Other">=</span> <span class="DecNumber">164</span><span class="Other">,</span>
|
|
<span class="Identifier">IfH323Proxy</span> <span class="Other">=</span> <span class="DecNumber">165</span><span class="Other">,</span> <span class="Identifier">IfMpls</span> <span class="Other">=</span> <span class="DecNumber">166</span><span class="Other">,</span> <span class="Identifier">IfMfSigLink</span> <span class="Other">=</span> <span class="DecNumber">167</span><span class="Other">,</span> <span class="Identifier">IfHdsl2</span> <span class="Other">=</span> <span class="DecNumber">168</span><span class="Other">,</span>
|
|
<span class="Identifier">IfShdsl</span> <span class="Other">=</span> <span class="DecNumber">169</span><span class="Other">,</span> <span class="Identifier">IfDs1Fdl</span> <span class="Other">=</span> <span class="DecNumber">170</span><span class="Other">,</span> <span class="Identifier">IfPos</span> <span class="Other">=</span> <span class="DecNumber">171</span><span class="Other">,</span> <span class="Identifier">IfDvbAsiIn</span> <span class="Other">=</span> <span class="DecNumber">172</span><span class="Other">,</span>
|
|
<span class="Identifier">IfDvbAsiOut</span> <span class="Other">=</span> <span class="DecNumber">173</span><span class="Other">,</span> <span class="Identifier">IfPlc</span> <span class="Other">=</span> <span class="DecNumber">174</span><span class="Other">,</span> <span class="Identifier">IfNfas</span> <span class="Other">=</span> <span class="DecNumber">175</span><span class="Other">,</span> <span class="Identifier">IfTr008</span> <span class="Other">=</span> <span class="DecNumber">176</span><span class="Other">,</span> <span class="Identifier">IfGr303Rdt</span> <span class="Other">=</span> <span class="DecNumber">177</span><span class="Other">,</span>
|
|
<span class="Identifier">IfGr303Idt</span> <span class="Other">=</span> <span class="DecNumber">178</span><span class="Other">,</span> <span class="Identifier">IfIsup</span> <span class="Other">=</span> <span class="DecNumber">179</span><span class="Other">,</span> <span class="Identifier">IfPropDocsWirelessMaclayer</span> <span class="Other">=</span> <span class="DecNumber">180</span><span class="Other">,</span>
|
|
<span class="Identifier">IfPropDocsWirelessDownstream</span> <span class="Other">=</span> <span class="DecNumber">181</span><span class="Other">,</span> <span class="Identifier">IfPropDocsWirelessUpstream</span> <span class="Other">=</span> <span class="DecNumber">182</span><span class="Other">,</span>
|
|
<span class="Identifier">IfHiperLan2</span> <span class="Other">=</span> <span class="DecNumber">183</span><span class="Other">,</span> <span class="Identifier">IfPropBwaP2mp</span> <span class="Other">=</span> <span class="DecNumber">184</span><span class="Other">,</span> <span class="Identifier">IfSonetOverheadChannel</span> <span class="Other">=</span> <span class="DecNumber">185</span><span class="Other">,</span>
|
|
<span class="Identifier">IfDigitalWrapperOverheadChannel</span> <span class="Other">=</span> <span class="DecNumber">186</span><span class="Other">,</span> <span class="Identifier">IfAal2</span> <span class="Other">=</span> <span class="DecNumber">187</span><span class="Other">,</span> <span class="Identifier">IfRadioMac</span> <span class="Other">=</span> <span class="DecNumber">188</span><span class="Other">,</span>
|
|
<span class="Identifier">IfAtmRadio</span> <span class="Other">=</span> <span class="DecNumber">189</span><span class="Other">,</span> <span class="Identifier">IfImt</span> <span class="Other">=</span> <span class="DecNumber">190</span><span class="Other">,</span> <span class="Identifier">IfMvl</span> <span class="Other">=</span> <span class="DecNumber">191</span><span class="Other">,</span> <span class="Identifier">IfReachDsl</span> <span class="Other">=</span> <span class="DecNumber">192</span><span class="Other">,</span>
|
|
<span class="Identifier">IfFrDlciEndpt</span> <span class="Other">=</span> <span class="DecNumber">193</span><span class="Other">,</span> <span class="Identifier">IfAtmVciEndpt</span> <span class="Other">=</span> <span class="DecNumber">194</span><span class="Other">,</span> <span class="Identifier">IfOpticalChannel</span> <span class="Other">=</span> <span class="DecNumber">195</span><span class="Other">,</span>
|
|
<span class="Identifier">IfOpticalTransport</span> <span class="Other">=</span> <span class="DecNumber">196</span><span class="Other">,</span> <span class="Identifier">IfIeee80216Wman</span> <span class="Other">=</span> <span class="DecNumber">237</span><span class="Other">,</span> <span class="Identifier">IfWwanPp</span> <span class="Other">=</span> <span class="DecNumber">243</span><span class="Other">,</span>
|
|
<span class="Identifier">IfWwanPp2</span> <span class="Other">=</span> <span class="DecNumber">244</span><span class="Other">,</span> <span class="Identifier">IfIeee802154</span> <span class="Other">=</span> <span class="DecNumber">259</span><span class="Other">,</span> <span class="Identifier">IfXboxWireless</span> <span class="Other">=</span> <span class="DecNumber">281</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L28"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L28" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="NetworkInterface">
|
|
<dt><pre><a href="osnet.html#NetworkInterface"><span class="Identifier">NetworkInterface</span></a> <span class="Other">=</span> <span class="Keyword">object</span>
|
|
<span class="Identifier">ifIndex</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span>
|
|
<span class="Identifier">ifType</span><span class="Operator">*</span><span class="Other">:</span> <a href="osnet.html#InterfaceType"><span class="Identifier">InterfaceType</span></a>
|
|
<span class="Identifier">name</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">string</span>
|
|
<span class="Identifier">desc</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">string</span>
|
|
<span class="Identifier">mtu</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int64</span>
|
|
<span class="Identifier">flags</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">uint64</span>
|
|
<span class="Identifier">state</span><span class="Operator">*</span><span class="Other">:</span> <a href="osnet.html#InterfaceState"><span class="Identifier">InterfaceState</span></a>
|
|
<span class="Identifier">mac</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">array</span><span class="Other">[</span><span class="Identifier">MaxAdapterAddressLength</span><span class="Other">,</span> <span class="Identifier">byte</span><span class="Other">]</span>
|
|
<span class="Identifier">maclen</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span>
|
|
<span class="Identifier">addresses</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><a href="osnet.html#InterfaceAddress"><span class="Identifier">InterfaceAddress</span></a><span class="Other">]</span>
|
|
</pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L246"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L246" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="Route">
|
|
<dt><pre><a href="osnet.html#Route"><span class="Identifier">Route</span></a> <span class="Other">=</span> <span class="Keyword">object</span>
|
|
<span class="Identifier">ifIndex</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span>
|
|
<span class="Identifier">dest</span><span class="Operator">*</span><span class="Other">:</span> <a href="common.html#TransportAddress"><span class="Identifier">TransportAddress</span></a>
|
|
<span class="Identifier">source</span><span class="Operator">*</span><span class="Other">:</span> <a href="common.html#TransportAddress"><span class="Identifier">TransportAddress</span></a>
|
|
<span class="Identifier">gateway</span><span class="Operator">*</span><span class="Other">:</span> <a href="common.html#TransportAddress"><span class="Identifier">TransportAddress</span></a>
|
|
<span class="Identifier">metric</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span>
|
|
</pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L258"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L258" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
|
|
</dl></div>
|
|
<div class="section" id="10">
|
|
<h1><a class="toc-backref" href="#10">Consts</a></h1>
|
|
<dl class="item">
|
|
<div id="MaxAdapterAddressLength">
|
|
<dt><pre><a href="osnet.html#MaxAdapterAddressLength"><span class="Identifier">MaxAdapterAddressLength</span></a> <span class="Other">=</span> <span class="DecNumber">8</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L21"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L21" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
|
|
</dl></div>
|
|
<div class="section" id="12">
|
|
<h1><a class="toc-backref" href="#12">Procs</a></h1>
|
|
<dl class="item">
|
|
<div id="$,InterfaceAddress">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#%24%2CInterfaceAddress"><span class="Identifier">`$`</span></a><span class="Other">(</span><span class="Identifier">ifa</span><span class="Other">:</span> <a href="osnet.html#InterfaceAddress"><span class="Identifier">InterfaceAddress</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
Return string representation of <tt class="docutils literal"><span class="pre">ifa</span></tt>.
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L283"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L283" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="$,NetworkInterface">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#%24%2CNetworkInterface"><span class="Identifier">`$`</span></a><span class="Other">(</span><span class="Identifier">iface</span><span class="Other">:</span> <a href="osnet.html#NetworkInterface"><span class="Identifier">NetworkInterface</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
Return string representation of network interface <tt class="docutils literal"><span class="pre">iface</span></tt>.
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L295"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L295" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="$,Route">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#%24%2CRoute"><span class="Identifier">`$`</span></a><span class="Other">(</span><span class="Identifier">route</span><span class="Other">:</span> <a href="osnet.html#Route"><span class="Identifier">Route</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L336"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L336" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="broadcast,InterfaceAddress">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#broadcast%2CInterfaceAddress"><span class="Identifier">broadcast</span></a><span class="Other">(</span><span class="Identifier">ifa</span><span class="Other">:</span> <a href="osnet.html#InterfaceAddress"><span class="Identifier">InterfaceAddress</span></a><span class="Other">)</span><span class="Other">:</span> <a href="common.html#TransportAddress"><span class="Identifier">TransportAddress</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
Return broadcast address for <tt class="docutils literal"><span class="pre">ifa</span></tt>.
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L265"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L265" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="cmp,NetworkInterface,NetworkInterface">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#cmp%2CNetworkInterface%2CNetworkInterface"><span class="Identifier">cmp</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="osnet.html#NetworkInterface"><span class="Identifier">NetworkInterface</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L348"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L348" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="getBestRoute,TransportAddress">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#getBestRoute%2CTransportAddress"><span class="Identifier">getBestRoute</span></a><span class="Other">(</span><span class="Identifier">address</span><span class="Other">:</span> <a href="common.html#TransportAddress"><span class="Identifier">TransportAddress</span></a><span class="Other">)</span><span class="Other">:</span> <a href="osnet.html#Route"><span class="Identifier">Route</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
|
|
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
Return best applicable OS route, which will be used for connecting to address <tt class="docutils literal"><span class="pre">address</span></tt>.
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L767"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L767" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="getInterfaces">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#getInterfaces"><span class="Identifier">getInterfaces</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><a href="osnet.html#NetworkInterface"><span class="Identifier">NetworkInterface</span></a><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
Return list of available interfaces.
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L753"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L753" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="init,typedesc[InterfaceAddress],TransportAddress,int">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#init%2Ctypedesc%5BInterfaceAddress%5D%2CTransportAddress%2Cint"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">ift</span><span class="Other">:</span> <span class="Identifier">typedesc</span><span class="Other">[</span><a href="osnet.html#InterfaceAddress"><span class="Identifier">InterfaceAddress</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">address</span><span class="Other">:</span> <a href="common.html#TransportAddress"><span class="Identifier">TransportAddress</span></a><span class="Other">;</span>
|
|
<span class="Identifier">prefix</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span><span class="Other">:</span> <a href="osnet.html#InterfaceAddress"><span class="Identifier">InterfaceAddress</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
Initialize <tt class="docutils literal"><span class="pre">InterfaceAddress</span></tt> using <tt class="docutils literal"><span class="pre">address</span></tt> and prefix length <tt class="docutils literal"><span class="pre">prefix</span></tt>.
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L277"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L277" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="netmask,InterfaceAddress">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#netmask%2CInterfaceAddress"><span class="Identifier">netmask</span></a><span class="Other">(</span><span class="Identifier">ifa</span><span class="Other">:</span> <a href="osnet.html#InterfaceAddress"><span class="Identifier">InterfaceAddress</span></a><span class="Other">)</span><span class="Other">:</span> <a href="common.html#TransportAddress"><span class="Identifier">TransportAddress</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
Return network mask for <tt class="docutils literal"><span class="pre">ifa</span></tt>.
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L273"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L273" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="network,InterfaceAddress">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#network%2CInterfaceAddress"><span class="Identifier">network</span></a><span class="Other">(</span><span class="Identifier">ifa</span><span class="Other">:</span> <a href="osnet.html#InterfaceAddress"><span class="Identifier">InterfaceAddress</span></a><span class="Other">)</span><span class="Other">:</span> <a href="common.html#TransportAddress"><span class="Identifier">TransportAddress</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
Return network address for <tt class="docutils literal"><span class="pre">ifa</span></tt>.
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L269"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L269" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
|
|
</dl></div>
|
|
<div class="section" id="18">
|
|
<h1><a class="toc-backref" href="#18">Templates</a></h1>
|
|
<dl class="item">
|
|
<div id="RTA_ALIGN.t,uint">
|
|
<dt><pre><span class="Keyword">template</span> <a href="#RTA_ALIGN.t%2Cuint"><span class="Identifier">RTA_ALIGN</span></a><span class="Other">(</span><span class="Identifier">length</span><span class="Other">:</span> <span class="Identifier">uint</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">uint</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L380"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L380" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="RTA_PAYLOAD.t,uint">
|
|
<dt><pre><span class="Keyword">template</span> <a href="#RTA_PAYLOAD.t%2Cuint"><span class="Identifier">RTA_PAYLOAD</span></a><span class="Other">(</span><span class="Identifier">length</span><span class="Other">:</span> <span class="Identifier">uint</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">uint</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a
|
|
href="https://github.com/status-im/nim-chronos/tree/master/chronos/transports/osnet.nim#L389"
|
|
class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/status-im/nim-chronos/edit/devel/chronos/transports/osnet.nim#L389" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
|
|
</dl></div>
|
|
<div class="section" id="19">
|
|
<h1><a class="toc-backref" href="#19">Exports</a></h1>
|
|
<dl class="item">
|
|
<a href="common.html#DualStackType"><span class="Identifier">DualStackType</span></a>, <a href="../timer.html#==,Moment,Moment"><span class="Identifier">==</span></a>, <a href="common.html#AddressFamily"><span class="Identifier">AddressFamily</span></a>, <a href="common.html#toHex,TransportAddress"><span class="Identifier">toHex</span></a>, <a href="common.html#==,TransportAddress,TransportAddress"><span class="Identifier">==</span></a>, <a href="ipnet.html#toIPv6,TransportAddress"><span class="Identifier">toIPv6</span></a>, <a href="common.html#TransportTooManyError"><span class="Identifier">TransportTooManyError</span></a>, <a href="ipnet.html#init,typedesc[IpNet],string"><span class="Identifier">init</span></a>, <a href="common.html#address,TransportAddress"><span class="Identifier">address</span></a>, <a href="common.html#getError.t,untyped"><span class="Identifier">getError</span></a>, <a href="ipnet.html#isLoopback,TransportAddress"><span class="Identifier">isLoopback</span></a>, <a href="ipnet.html#isLinkLocalMulticast,TransportAddress"><span class="Identifier">isLinkLocalMulticast</span></a>, <a href="ipnet.html#ip,IpMask"><span class="Identifier">ip</span></a>, <a href="common.html#resolveTAddress,string,Port,IpAddressFamily"><span class="Identifier">resolveTAddress</span></a>, <a href="ipnet.html#-,TransportAddress,"><span class="Identifier">-</span></a>, <a href="common.html#getTransportTooManyError.t"><span class="Identifier">getTransportTooManyError</span></a>, <a href="common.html#checkClosed.t,untyped,untyped"><span class="Identifier">checkClosed</span></a>, <a href="common.html#getTransportError.t,OSErrorCode"><span class="Identifier">getTransportError</span></a>, <a href="common.html#TransportAddress"><span class="Identifier">TransportAddress</span></a>, <a href="ipnet.html#isLinkLocalUnicast,TransportAddress"><span class="Identifier">isLinkLocalUnicast</span></a>, <a href="ipnet.html#contains,IpNet,TransportAddress"><span class="Identifier">contains</span></a>, <a href="common.html#getAutoAddresses,Port,Port"><span class="Identifier">getAutoAddresses</span></a>, <a href="common.html#initTAddress,string"><span class="Identifier">initTAddress</span></a>, <a href="common.html#getAutoAddress,Port"><span class="Identifier">getAutoAddress</span></a>, <a href="common.html#checkWriteEof.t,untyped,untyped"><span class="Identifier">checkWriteEof</span></a>, <a href="common.html#ServerStatus"><span class="Identifier">ServerStatus</span></a>, <a href="common.html#host,TransportAddress"><span class="Identifier">host</span></a>, <a href="ipnet.html#isMulticast,TransportAddress"><span class="Identifier">isMulticast</span></a>, <a href="ipnet.html#init,typedesc[IpMask],TransportAddress"><span class="Identifier">init</span></a>, <a href="ipnet.html#isV4Mapped,TransportAddress"><span class="Identifier">isV4Mapped</span></a>, <a href="ipnet.html#isUniqueLocal,TransportAddress"><span class="Identifier">isUniqueLocal</span></a>, <a href="common.html#TransportAddressError"><span class="Identifier">TransportAddressError</span></a>, <a href="ipnet.html#isInterfaceLocalMulticast,TransportAddress"><span class="Identifier">isInterfaceLocalMulticast</span></a>, <a href="ipnet.html#==,IpMask,IpMask"><span class="Identifier">==</span></a>, <a href="common.html#AnyAddress"><span class="Identifier">AnyAddress</span></a>, <a href="common.html#getTransportOsError.t,OSErrorCode"><span class="Identifier">getTransportOsError</span></a>, <a href="common.html#$,TransportAddress"><span class="Identifier">$</span></a>, <a href="../timer.html#$,Duration"><span class="Identifier">$</span></a>, <a href="common.html#setDualstack,AsyncFD,DualStackType"><span class="Identifier">setDualstack</span></a>, <a href="ipnet.html#init,typedesc[IpMask],string"><span class="Identifier">init</span></a>, <a href="common.html#TransportLimitError"><span class="Identifier">TransportLimitError</span></a>, <a href="../timer.html#$,Moment"><span class="Identifier">$</span></a>, <a href="../timer.html#==,Duration,Duration"><span class="Identifier">==</span></a>, <a href="common.html#TransportNoSupport"><span class="Identifier">TransportNoSupport</span></a>, <a href="common.html#TransportUseClosedError"><span class="Identifier">TransportUseClosedError</span></a>, <a href="ipnet.html#broadcast,IpNet"><span class="Identifier">broadcast</span></a>, <a href="common.html#TransportUseEofError"><span class="Identifier">TransportUseEofError</span></a>, <a href="ipnet.html#isUnspecified,TransportAddress"><span class="Identifier">isUnspecified</span></a>, <a href="common.html#resolveTAddress,string,Port"><span class="Identifier">resolveTAddress</span></a>, <a href="ipnet.html#isZero,TransportAddress"><span class="Identifier">isZero</span></a>, <a href="ipnet.html#isSiteLocal,TransportAddress"><span class="Identifier">isSiteLocal</span></a>, <a href="common.html#initTAddress,string,int"><span class="Identifier">initTAddress</span></a>, <a href="ipnet.html#isShared,TransportAddress"><span class="Identifier">isShared</span></a>, <a href="ipnet.html#+,TransportAddress,"><span class="Identifier">+</span></a>, <a href="ipnet.html#isAnyLocal,TransportAddress"><span class="Identifier">isAnyLocal</span></a>, <a href="../srcloc.html#$,ptr.SrcLoc"><span class="Identifier">$</span></a>, <a href="common.html#setDualstack,AsyncFD,AddressFamily,DualStackType"><span class="Identifier">setDualstack</span></a>, <a href="ipnet.html#inc,TransportAddress,int"><span class="Identifier">inc</span></a>, <a href="../internal/asyncengine.html#==,AsyncFD,AsyncFD"><span class="Identifier">==</span></a>, <a href="ipnet.html#isDocumentation,TransportAddress"><span class="Identifier">isDocumentation</span></a>, <a href="ipnet.html#isPrivate,TransportAddress"><span class="Identifier">isPrivate</span></a>, <a href="common.html#getConnectionAbortedError.t,OSErrorCode"><span class="Identifier">getConnectionAbortedError</span></a>, <a href="common.html#checkClosed.t,untyped"><span class="Identifier">checkClosed</span></a>, <a href="common.html#toSAddr,TransportAddress,Sockaddr_storage,SockLen"><span class="Identifier">toSAddr</span></a>, <a href="ipnet.html#isUnicastLinkLocal,TransportAddress"><span class="Identifier">isUnicastLinkLocal</span></a>, <a href="ipnet.html#isLinkLocal,TransportAddress"><span class="Identifier">isLinkLocal</span></a>, <a href="ipnet.html#subnetMask,IpMask"><span class="Identifier">subnetMask</span></a>, <a href="common.html#TransportError"><span class="Identifier">TransportError</span></a>, <a href="../osdefs.html#==,SocketHandle,int"><span class="Identifier">==</span></a>, <a href="common.html#getDomain,AsyncFD"><span class="Identifier">getDomain</span></a>, <a href="common.html#TransportAbortedError"><span class="Identifier">TransportAbortedError</span></a>, <a href="ipnet.html#isNone,TransportAddress"><span class="Identifier">isNone</span></a>, <a href="common.html#getConnectionAbortedError.t,string"><span class="Identifier">getConnectionAbortedError</span></a>, <a href="common.html#getServerUseClosedError.t"><span class="Identifier">getServerUseClosedError</span></a>, <a href="ipnet.html#mask,TransportAddress,IpMask"><span class="Identifier">mask</span></a>, <a href="ipnet.html#isReserved,TransportAddress"><span class="Identifier">isReserved</span></a>, <a href="common.html#ServerFlags"><span class="Identifier">ServerFlags</span></a>, <a href="common.html#toIpAddress,TransportAddress"><span class="Identifier">toIpAddress</span></a>, <a href="ipnet.html#isGlobal,TransportAddress"><span class="Identifier">isGlobal</span></a>, <a href="common.html#TransportIncompleteError"><span class="Identifier">TransportIncompleteError</span></a>, <a href="ipnet.html#and,TransportAddress,TransportAddress"><span class="Identifier">and</span></a>, <a href="common.html#resolveTAddress,string,IpAddressFamily"><span class="Identifier">resolveTAddress</span></a>, <a href="common.html#getTransportOsError.t,cint"><span class="Identifier">getTransportOsError</span></a>, <a href="common.html#ServerCommand"><span class="Identifier">ServerCommand</span></a>, <a href="common.html#resolveTAddress,string"><span class="Identifier">resolveTAddress</span></a>, <a href="ipnet.html#toIPv4,TransportAddress"><span class="Identifier">toIPv4</span></a>, <a href="common.html#initTAddress,string,Port"><span class="Identifier">initTAddress</span></a>, <a href="ipnet.html#$,IpNet"><span class="Identifier">$</span></a>, <a href="ipnet.html#isUnicast,TransportAddress"><span class="Identifier">isUnicast</span></a>, <a href="common.html#fromSAddr,ptr.Sockaddr_storage,SockLen,TransportAddress"><span class="Identifier">fromSAddr</span></a>, <a href="common.html#raiseTransportOsError,OSErrorCode"><span class="Identifier">raiseTransportOsError</span></a>, <a href="common.html#getTransportUseClosedError.t"><span class="Identifier">getTransportUseClosedError</span></a>, <a href="common.html#resolveTAddress,string,AddressFamily"><span class="Identifier">resolveTAddress</span></a>, <a href="../osdefs.html#==,SocketHandle,SocketHandle"><span class="Identifier">==</span></a>, <a href="ipnet.html#init,typedesc[IpNet],TransportAddress,int"><span class="Identifier">init</span></a>, <a href="ipnet.html#prefix,IpMask"><span class="Identifier">prefix</span></a>, <a href="ipnet.html#isBroadcast,TransportAddress"><span class="Identifier">isBroadcast</span></a>, <a href="common.html#resolveTAddress,string,Domain"><span class="Identifier">resolveTAddress</span></a>, <a href="ipnet.html#not,TransportAddress"><span class="Identifier">not</span></a>, <a href="ipnet.html#init,typedesc[IpNet],TransportAddress,TransportAddress"><span class="Identifier">init</span></a>, <a href="ipnet.html#==,IpNet,IpNet"><span class="Identifier">==</span></a>, <a href="common.html#resolveTAddress,string,Port,Domain"><span class="Identifier">resolveTAddress</span></a>, <a href="common.html#isAvailable,AddressFamily"><span class="Identifier">isAvailable</span></a>, <a href="ipnet.html#$,IpMask"><span class="Identifier">$</span></a>, <a href="ipnet.html#init,typedesc[IpNet],TransportAddress,IpMask"><span class="Identifier">init</span></a>, <a href="common.html#SocketServer"><span class="Identifier">SocketServer</span></a>, <a href="ipnet.html#dec,TransportAddress,int"><span class="Identifier">dec</span></a>, <a href="common.html#DefaultDatagramBufferSize"><span class="Identifier">DefaultDatagramBufferSize</span></a>, <a href="ipnet.html#init,typedesc[IpMask],AddressFamily,int"><span class="Identifier">init</span></a>, <a href="common.html#windowsAnyAddressFix,TransportAddress"><span class="Identifier">windowsAnyAddressFix</span></a>, <a href="ipnet.html#IpMask"><span class="Identifier">IpMask</span></a>, <a href="ipnet.html#network,IpNet"><span class="Identifier">network</span></a>, <a href="common.html#DefaultStreamBufferSize"><span class="Identifier">DefaultStreamBufferSize</span></a>, <a href="ipnet.html#initIp,typedesc[IpMask],string"><span class="Identifier">initIp</span></a>, <a href="common.html#raiseTransportError,OSErrorCode"><span class="Identifier">raiseTransportError</span></a>, <a href="common.html#getDomain,TransportAddress"><span class="Identifier">getDomain</span></a>, <a href="common.html#AnyAddress6"><span class="Identifier">AnyAddress6</span></a>, <a href="ipnet.html#IpNet"><span class="Identifier">IpNet</span></a>, <a href="common.html#resolveTAddress,string,Port,AddressFamily"><span class="Identifier">resolveTAddress</span></a>, <a href="common.html#TransportOsError"><span class="Identifier">TransportOsError</span></a>, <a href="common.html#TransportState"><span class="Identifier">TransportState</span></a>, <a href="ipnet.html#isBenchmarking,TransportAddress"><span class="Identifier">isBenchmarking</span></a>, <a href="ipnet.html#isGlobalMulticast,TransportAddress"><span class="Identifier">isGlobalMulticast</span></a>, <a href="ipnet.html#or,TransportAddress,TransportAddress"><span class="Identifier">or</span></a>, <a href="ipnet.html#subnetMask,IpNet"><span class="Identifier">subnetMask</span></a>, <a href="common.html#initTAddress,IpAddress,Port"><span class="Identifier">initTAddress</span></a>
|
|
</dl></div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="twelve-columns footer">
|
|
<span class="nim-sprite"></span>
|
|
<br/>
|
|
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-28 08:22:46 UTC</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|