-
Notifications
You must be signed in to change notification settings - Fork 12
/
gma.network.lua
156 lines (142 loc) · 4.12 KB
/
gma.network.lua
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
---Network related GMA LUA functions
--@module gma.network
---Get the MA-NET type of device.
--
--@treturn string Type of device
--@usage
-- gma.network.gethosttype();
-- "Console"
function gma.network.gethosttype()
end
---Get the MA-NET sub-type of device.
--
--@treturn string Subtype of device
--@usage
-- gma.network.gethosttype();
-- "onPC"
function gma.network.gethostsubtype()
end
---Returns the primary/MA-NET IP address of the console.
--
--@treturn string Primary/MA-NET IP
--@usage
-- gma.network.getprimaryip();
-- "192.168.0.1"
function gma.network.getprimaryip()
end
---Returns the secondary/ARTNET IP address of the console.
--
--@treturn string Secondary/ARTNET IP
--@usage
-- gma.network.getsecondaryip();
-- "10.0.0.1"
function gma.network.getsecondaryip()
end
---Returns the MA-NET session status
--
--@treturn string MA-NET Session Status
--@usage
-- gma.network.getstatus();
-- "Standalone", "Master", ...?
function gma.network.getstatus()
end
---Returns the MA-NET session number.
--
--@treturn number ME-NET session number.
--Returns 255 if not in a session.
--@usage
-- gma.network.getsessionnumber();
-- "1"
function gma.network.getsessionnumber()
end
---Returns the MA_NET session name.
--
--@treturn string MA-NET session name.
--@usage
-- gma.network.getsessionname();
-- "newshow"
function gma.network.getsessionname()
end
---Something to do with MA-NET, but what?
--
--Returned 255 when I wasn't in a session, 30 when I was...
--@treturn number slot???
function gma.network.getslot()
end
---Retrieves information about a host using the hosts IP address.
--
-- Retrieved information:
--
-- * Host status (see @{gma.network.getstatus|network.getstatus()})
-- * Primary ip address (see @{gma.network.getprimaryip|network.getprimaryip()}),
-- * Secondary ip address (see @{gma.network.getsecondaryip|network.getsecondaryip()})
-- * Bits (64/32), hostname
-- * Host network slot
-- * Subnet mask
-- * Whether invite is enaled
-- * MAC address
-- * Primary and secondary subnet mask
-- * Software version
-- * Software uptime
-- * Software type (see @{gma.network.gethosttype|network.gethosttype()}) and subtype (see @{gma.network.gethostsubtype|network.gethostsubtype()})
-- * Session number of the host.
--
--@tparam string ip IP Address of the host we want to get data from
--@tparam ?table recycle ???
--@treturn table host_data Table of host data.
function gma.network.gethostdata(ip,recycle)
end
---Retrieves information about a host using the hosts slotID in MA_NET.
--
-- Retrieved information is:
--
-- * Host status (see @{gma.network.getstatus|network.getstatus()})
-- * Primary ip address (see @{gma.network.getprimaryip|network.getprimaryip()})
-- * Used paramters count, MA_NET slot ID,
-- * DMX Count (?)
-- * Secondary ip address (see @{gma.network.getsecondaryip|network.getsecondaryip()})
-- * Bits (64/32)
-- * Hostname
-- * Host network slot
-- * Subnet mask
-- * Whether invite is enaled
-- * MAC address
-- * Primary and secondary subnet mask
-- * Software version
-- * Software uptime
-- * Software type (see @{gma.network.gethosttype|network.gethosttype()}) and subtype (see @{gma.network.gethostsubtype|network.gethostsubtype()})
-- * Session number of the host.
--
--@tparam number slot The MA_SLOT slot number for which we want to get information.
--@tparam ?table recycle???
--@treturn table a Table in which host data should be copied into.
function gma.network.getmanetslot(slot,recycle)
end
---Returns performance statistics about a host using its MA_NET slot ID.
--
-- Collects the following performance data (values are in seconds?):
--
-- * RT_DecodeDMX
-- * RT_DMXOutput
-- * WaitForKeys
-- * RT_HardwareEve
-- * Wait25
-- * RT_Jobques
-- * RT_Effects
-- * RT_Submaster
-- * RT_LocalChanne
-- * RT_BMP
-- * RT_NormalChann
-- * RT_PreviewChan
-- * RT_Universes
-- * RT_DMXEncode
-- * RT_ChannelInfo
-- * RT_FadersAndLe
--
-- Based of the permormance statistics names, the maximum length of a stat name is 14 characters.
--
--@tparam number slot The MA_SLOT slot number for which we want to get information.
--@tparam ?table recycle???
--@treturn table Performance data table.
function gma.network.getperformance(slot,recycle)
end