create new net address.
hostname |
a String, either an IP number (e.g. "192.168.34.56") or a hostname such as "otherHost.local". |
port |
a port number, like 57110. |
create new net address using an integer IP number.
Get the port sclang is currently listening on (may change after a recompile).
Get the local IP address as a String.
network |
An optional IP string to select a particular network. This might be necessary if your machine is connected to multiple networks. Typically, you would use the IP address of the router, but it can really be any address within the network. |
Get a NetAddr with the local IP address and a user provided port number.
port |
The port number. If omitted, the sclang port is used. |
network |
An optional IP string to select a particular network. See also *localIP. |
Get a NetAddr which corresponds to localhost and the port sclang is listening on.
close all TCP connections.
Get or set the broadcast flag (whether or not broadcast messages can be sent).
Get all local IP addresses (NICs) on this computer.
family |
A Symbol that specifies the desired address family.
|
An Array containing all local IP addresses of the desired family.
Test an IP address to see if it matches any local IP address. See also *localIPs.
ipstring |
A String to test containing an IP number in dot decimal notation (e.g. "192.168.34.56"). |
A Boolean indicating whether a match was found.
A copy of the IdentityDictionary with all open TCP connections.
Convert the argument list to an OSC message and send it to the NetAddr without a timestamp. The first argument is the OSC address, and the remaining arguments are the arguments in the OSC message. If you leave off the initial "/" in the OSC address, one will be prepended. The technical details of how sclang objects are converted to OSC messages is given in the OSC Communication helpfile.
send a bundle with timestamp to the addr.
send a raw message without timestamp to the addr.
open TCP connection.
disconnectHandler |
called when the connection is closed (either by the client or by the server). |
close TCP connection.
returns the ip number (as a String).
Test if this NetAddr ip number matches that of one of this hosts NICs, or the loopback address.
A Boolean.