netP5
Class NetAddress
java.lang.Object
netP5.NetAddress
public class NetAddress
- extends Object
NetAddress is an Object that contains an inetaddress
of an remote internet address, consisting of an
ip address and a port number.
- Author:
- andreas schlegel
name
public String name
NetAddress
public NetAddress(String theAddress,
int thePort)
- Parameters:
theAddress
- StringthePort
- int
NetAddress
public NetAddress(NetAddress theNetAddress)
NetAddress
public NetAddress(InetAddress theInetAddress,
int thePort)
- Parameters:
theInetAddress
- InetAddressthePort
- int
inetaddress
public InetAddress inetaddress()
- Returns:
- InetAddress
address
public String address()
- returns the remote ip address as string
- Returns:
- String
port
public int port()
- returns the remote port number
- Returns:
- int
isvalid
public boolean isvalid()
- check if the netAddress is valid. this is true if
the remote ip address was found.
- Returns:
- boolean
toString
public String toString()
- Overrides:
toString
in class Object
processing library oscP5 by Andreas Schlegel. (c) 2004-2012