A concrete implementation of a NodeAddress that is designed for TCP/IP connections.
Fields inherited from class | Fields |
---|---|
class NodeAddress |
address, protocol |
Constructor and description |
---|
TCPIPNodeAddress
(String ipAddress, int portNumber) Creates a new TCPIPNodeAddress from an IP address and port |
TCPIPNodeAddress
(int portNumber) Creates a new TCPIPNodeAddress using the local IP address and a given port number. |
TCPIPNodeAddress
() Creates a new TCPIPNodeAddress |
Type | Name and description |
---|---|
protected Link |
createLink() Creates a new TCPIPLink connected to a Node with this address |
protected LinkServer |
createLinkServer() Creates a new TCPIPLinkServer listening on this address |
String |
getIpAddress() Gets the IP address part of the address |
int |
getPort() Gets the port number part of this address |
Methods inherited from class | Name |
---|---|
class NodeAddress |
compareTo, createLink, createLinkServer, equals, getAddress, getProtocol, hashCode, parse, toString |
Creates a new TCPIPNodeAddress from an IP address and port
ipAddress
- The IP address part of the NodeAddressportNumber
- The port number part of the NodeAddressCreates a new TCPIPNodeAddress using the local IP address and a given port number. Allows a
portNumber
- The port number to useCreates a new TCPIPNodeAddress
Creates a new TCPIPLink connected to a Node with this address
Creates a new TCPIPLinkServer listening on this address
Gets the IP address part of the address
Gets the port number part of this address
JCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk