|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcsp.net2.NodeAddress
org.jcsp.net2.tcpip.TCPIPNodeAddress
public final class TCPIPNodeAddress
A concrete implementation of a NodeAddress that is designed for TCP/IP connections.
NodeAddress,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.jcsp.net2.NodeAddress |
|---|
address, protocol |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.jcsp.net2.NodeAddress |
|---|
compareTo, equals, getAddress, getProtocol, hashCode, installProtocol, parse, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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()
| Method Detail |
|---|
public final int getPort()
public final String getIpAddress()
protected Link createLink()
throws JCSPNetworkException
createLink in class NodeAddressJCSPNetworkException - Thrown if something goes wrong during the creation of the Link
protected LinkServer createLinkServer()
throws JCSPNetworkException
createLinkServer in class NodeAddressJCSPNetworkException - Thrown if something goes wrong during the creation of the LinkServerprotected ProtocolID getProtocolID()
getProtocolID in class NodeAddress
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||