forked from Hobadee/grandMA2_LUA_ldoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gma.network.lua
101 lines (86 loc) · 1.94 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
---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
---
--
--@tparam string ip IP Address
--@tparam ?table recycle ???
--@treturn table host_data ???
function gma.network.gethostdata(ip,recycle)
end
---
--
--@tparam number slot???
--@tparam ?table recycle???
--@treturn table slot_data???
function gma.network.getmanetslot(slot,recycle)
end
---
--
--@tparam number slot???
--@tparam ?table recycle???
--@treturn table performance_data???
function gma.network.getperformance(slot,recycle)
end