File: module.html

package info (click to toggle)
python-libtrace 1.6%2Bgit20161027-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,124 kB
  • ctags: 1,357
  • sloc: ansic: 6,890; python: 3,228; makefile: 70; sh: 49
file content (106 lines) | stat: -rw-r--r-- 2,142 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html><head>



  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>IPprefix</title>
  
  <meta name="generator" content="amaya 8.5, see http://www.w3.org/Amaya/" />
  <link rel="stylesheet" type="text/css" href="nevil-plt-doc.css" /></head><body>
<h2>Module</h2>

<p>Module text.</p>

<h3>Class</h3>

<p>Class text</p>

<table>
  <tbody>
    <tr>
      <td>&nbsp; &nbsp;</td>
      <td valign="top"><p><strong>variables&nbsp; &nbsp; &nbsp; </strong></p>
      </td>
      <td><p>4 for IPv4, 6 for IPv6</p>
      </td>
    </tr>
  </tbody>
</table>

<p />

<table>
  <tbody>
    <tr>
      <td>&nbsp; &nbsp;</td>
      <td><h4>Class Function</h4>
      </td>
    </tr>
  </tbody>
</table>

<table>
  <tbody>
    <tr>
      <td>&nbsp; &nbsp;</td>
      <td>&nbsp; &nbsp;</td>
      <td><strong>from_s &nbsp;</strong></td>
      <td><em>Prefix.from_s(aString) -&gt; aNewPrefix</em></td>
    </tr>
    <tr>
      <td><br />
</td>
      <td><br />
</td>
      <td><br />
</td>
      <td><p>Parses str to find version and address, e.g.<br />
        &nbsp; &nbsp;p = IPprefix.from_s('192.168.1.1') <br />
        &nbsp; &nbsp;p = IPprefix::from_s('fe80::20d:60ff:fe38:18b/64')</p>
      </td>
    </tr>
  </tbody>
</table>

<p />

<table>
  <tbody>
    <tr>
      <td>&nbsp; &nbsp;</td>
      <td><h4>Methods</h4>
      </td>
    </tr>
  </tbody>
</table>

<table>
  <tbody>
    <tr>
      <td>&nbsp; &nbsp;</td>
      <td>&nbsp; &nbsp;</td>
      <td><strong>new</strong></td>
      <td><em>Prefix.new(version, address) -&gt; aNewPrefix</em></td>
    </tr>
    <tr>
      <td><br />
</td>
      <td><br />
</td>
      <td><br />
</td>
      <td><p>Returns an IP-Prefix conatining an IP address, e.g. 192.168.0.3.
        <br />
        &nbsp; &nbsp;kind &nbsp; &nbsp; &nbsp; = 4 for IPv4, 6 for IPv6<br />
        &nbsp; &nbsp;address = 4- or 16-byte string containing actual
        address</p>
        &nbsp;</td>
    </tr>
  </tbody>
</table>

<p />

<p>Nevil Brownlee<br />
Sun, 23 Mar 08 (PDT)</p>
</body></html>