-
-
Convert a node address to a string.
Parameters:
Name |
Type |
Description |
addr |
IpxAddress
|
a node address. |
-
-
Send data to all nodes in array.
Parameters:
Name |
Type |
Description |
data |
string
|
the data to send |
nodes |
Array.<IpxAddress>
|
the node addresses to send to. |
-
-
Check for packet in receive buffer.
Returns:
boolean
- true if a packet is available.
-
-
Send logmessages to logviewer using IPX networking.
Parameters:
Name |
Type |
Description |
str |
string
|
logmessage to send. |
-
inner IpxFindNodes(num, nodes) → {boolean}
-
discover nodes on the network.
Parameters:
Name |
Type |
Description |
num |
integer
|
total number of nodes to search for (including the local node). |
nodes |
Array.<IpxAddress>
|
an array to store the discovered nodes in. |
Returns:
boolean
- true if the wanted number of nodes was discovered, else false. The nodes array will contain the addresses of all found nodes.
-
-
Get the local address.
Returns:
IpxAddress
- an array containing the own address.
-
-
Get packet from receive buffer(or NULL).
Returns:
IpxPacket
- a data packet or null if none available.
-
-
Send packet via IPX. Max length 79 byte. Node addresses are arrays of 6 numbers between 0-255. See IPX for BROADCAST address.
Parameters:
Name |
Type |
Description |
data |
string
|
data to send. |
dest |
IpxAddress
|
destination address. |
-
-
Close IPX socket (if any).
-
-
Open an IPX socket. See IPX for DEFAULT_SOCKET.
Parameters:
Name |
Type |
Description |
num |
*
|
the socket number to use. |
-
-
Convert an address in hex-string notation back to an JS array.
Parameters:
Name |
Type |
Description |
addr |
*
|
a string of 6 hex numbers separated by ':'. |