public final class TCPIPNodeAddress extends NodeAddress
NodeAddress
,
Serialized Formaddress, protocol
Constructor and Description |
---|
TCPIPNodeAddress()
Creates a new TCPIPNodeAddress
|
TCPIPNodeAddress(int portNumber)
Creates a new TCPIPNodeAddress using the local IP address and a given port number.
|
TCPIPNodeAddress(String ipAddress,
int portNumber)
Creates a new TCPIPNodeAddress from an IP address and port
|
Modifier and Type | Method 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
|
protected ProtocolID |
getProtocolID()
Returns the TCPIPProtocolID
|
compareTo, equals, getAddress, getProtocol, hashCode, installProtocol, parse, toString
public TCPIPNodeAddress(String ipAddress, int portNumber)
ipAddress
- The IP address part of the NodeAddressportNumber
- The port number part of the NodeAddresspublic TCPIPNodeAddress(int portNumber)
portNumber
- The port number to usepublic TCPIPNodeAddress()
public final int getPort()
public final String getIpAddress()
protected Link createLink() throws JCSPNetworkException
createLink
in class NodeAddress
JCSPNetworkException
- Thrown if something goes wrong during the creation of the Linkprotected LinkServer createLinkServer() throws JCSPNetworkException
createLinkServer
in class NodeAddress
JCSPNetworkException
- Thrown if something goes wrong during the creation of the LinkServerprotected ProtocolID getProtocolID()
getProtocolID
in class NodeAddress
Copyright © 1996–2017. All rights reserved.