Module

ipx

Members

# inner _ipxDebugNodes

Properties:
Name Type Description
_ipxDebugNodes Array.<IpxAddress> node list with the logviewer entry.

View Source jsboot/ipx.js, line 143

# inner _ipxLogData

Properties:
Name Type Description
_ipxLogData string remaining data to send to log viewer.

View Source jsboot/ipx.js, line 133

# inner _ipxLogInit

Properties:
Name Type Description
_ipxLogInit boolean indicates if the IPX socket was already opened.

View Source jsboot/ipx.js, line 138

# inner IPX

IPX definitions.
Properties:
Name Type Description
DEFAULT_SOCKET * default socket number for DOjS.
BROADCAST * broadcast address

View Source jsboot/ipx.js, line 30

Methods

# inner IpxAddressToString(addr)

Convert a node address to a string.
Parameters:
Name Type Description
addr IpxAddress a node address.

View Source jsboot/ipx.js, line 43

# inner IpxAllNodes(data, nodes)

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.

View Source jsboot/ipx.js, line 124

# inner IpxCheckPacket() → {boolean}

Check for packet in receive buffer.

View Source doc/internal.js, line 84

true if a packet is available.
boolean

# inner IpxDebug(str)

Send logmessages to logviewer using IPX networking.
Parameters:
Name Type Description
str string logmessage to send.

View Source jsboot/ipx.js, line 150

# 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.

View Source jsboot/ipx.js, line 86

true if the wanted number of nodes was discovered, else false. The nodes array will contain the addresses of all found nodes.
boolean

# inner IpxGetLocalAddress() → {IpxAddress}

Get the local address.

View Source doc/internal.js, line 96

an array containing the own address.
IpxAddress

# inner IpxGetPacket() → {IpxPacket}

Get packet from receive buffer(or NULL).

View Source doc/internal.js, line 90

a data packet or null if none available.
IpxPacket

# inner IpxSend(data, dest)

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.

View Source doc/internal.js, line 78

# inner IpxSocketClose()

Close IPX socket (if any).

View Source doc/internal.js, line 71

# inner IpxSocketOpen(num)

Open an IPX socket. See IPX for DEFAULT_SOCKET.
Parameters:
Name Type Description
num * the socket number to use.

View Source doc/internal.js, line 66

# inner IpxStringToAddress(addr) → {IpxAddress}

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 ':'.

View Source jsboot/ipx.js, line 62

An array of six numbers.
IpxAddress
IPX network functions.

View Source doc/internal.js, line 56

Members

# inner _ipxDebugNodes

Properties:
Name Type Description
_ipxDebugNodes Array.<IpxAddress> node list with the logviewer entry.

View Source jsboot/ipx.js, line 143

# inner _ipxLogData

Properties:
Name Type Description
_ipxLogData string remaining data to send to log viewer.

View Source jsboot/ipx.js, line 133

# inner _ipxLogInit

Properties:
Name Type Description
_ipxLogInit boolean indicates if the IPX socket was already opened.

View Source jsboot/ipx.js, line 138

# inner IPX

IPX definitions.
Properties:
Name Type Description
DEFAULT_SOCKET * default socket number for DOjS.
BROADCAST * broadcast address

View Source jsboot/ipx.js, line 30

Methods

# inner IpxAddressToString(addr)

Convert a node address to a string.
Parameters:
Name Type Description
addr IpxAddress a node address.

View Source jsboot/ipx.js, line 43

# inner IpxAllNodes(data, nodes)

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.

View Source jsboot/ipx.js, line 124

# inner IpxCheckPacket() → {boolean}

Check for packet in receive buffer.

View Source doc/internal.js, line 84

true if a packet is available.
boolean

# inner IpxDebug(str)

Send logmessages to logviewer using IPX networking.
Parameters:
Name Type Description
str string logmessage to send.

View Source jsboot/ipx.js, line 150

# 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.

View Source jsboot/ipx.js, line 86

true if the wanted number of nodes was discovered, else false. The nodes array will contain the addresses of all found nodes.
boolean

# inner IpxGetLocalAddress() → {IpxAddress}

Get the local address.

View Source doc/internal.js, line 96

an array containing the own address.
IpxAddress

# inner IpxGetPacket() → {IpxPacket}

Get packet from receive buffer(or NULL).

View Source doc/internal.js, line 90

a data packet or null if none available.
IpxPacket

# inner IpxSend(data, dest)

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.

View Source doc/internal.js, line 78

# inner IpxSocketClose()

Close IPX socket (if any).

View Source doc/internal.js, line 71

# inner IpxSocketOpen(num)

Open an IPX socket. See IPX for DEFAULT_SOCKET.
Parameters:
Name Type Description
num * the socket number to use.

View Source doc/internal.js, line 66

# inner IpxStringToAddress(addr) → {IpxAddress}

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 ':'.

View Source jsboot/ipx.js, line 62

An array of six numbers.
IpxAddress