File: ziflist.api

package info (click to toggle)
czmq 4.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,912 kB
  • sloc: ansic: 30,811; cpp: 19,362; sh: 11,873; python: 11,814; pascal: 11,229; ruby: 8,818; java: 4,363; makefile: 299; perl: 151; javascript: 35
file content (73 lines) | stat: -rw-r--r-- 2,235 bytes parent folder | download | duplicates (3)
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
<class name = "ziflist" state = "stable">
    <!--
    Copyright (c) the Contributors as noted in the AUTHORS file.
    This file is part of CZMQ, the high-level C binding for 0MQ:
    http://czmq.zeromq.org.

    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
    file, You can obtain one at http://mozilla.org/MPL/2.0/.
    -->
    List of network interfaces available on system

    <constructor>
        Get a list of network interfaces currently defined on the system
    </constructor>

    <destructor>
        Destroy a ziflist instance
    </destructor>

    <method name = "reload">
        Reload network interfaces from system
    </method>

    <method name = "size">
        Return the number of network interfaces on system
        <return type = "size" />
    </method>

    <method name = "first">
        Get first network interface, return NULL if there are none
        <return type = "string" />
    </method>

    <method name = "next">
        Get next network interface, return NULL if we hit the last one
        <return type = "string" />
    </method>

    <method name = "address">
        Return the current interface IP address as a printable string
        <return type = "string" />
    </method>

    <method name = "broadcast">
        Return the current interface broadcast address as a printable string
        <return type = "string" />
    </method>

    <method name = "netmask">
        Return the current interface network mask as a printable string
        <return type = "string" />
    </method>

    <method name = "print">
        Return the list of interfaces.
    </method>

    <method name = "new ipv6" singleton = "1" state = "draft">
        Get a list of network interfaces currently defined on the system
        Includes IPv6 interfaces
        <return type = "ziflist" fresh = "1" />
    </method>

    <method name = "reload ipv6" state = "draft">
        Reload network interfaces from system, including IPv6
    </method>

    <method name = "is ipv6" state = "draft">
        Return true if the current interface uses IPv6
        <return type = "boolean" />
    </method>
</class>