All Packages Class Hierarchy This Package Previous Next Index
Class AcmeNet.Assn2.ServiceAddress
AcmeNet.Assn2.ServiceAddress
- public class ServiceAddress
The address of a service. A ServiceAddress is a (NetAddress, serviceNumber) pair.
-
ServiceAddress(NetAddress, int)
-
-
getAddress()
-
-
getServiceNum()
-
ServiceAddress
public ServiceAddress(NetAddress a,
int sn)
- Parameters:
- a - the NetAddress of the service
- sn - the service number that the service is bound to
getAddress
public NetAddress getAddress()
- Returns:
- the NetAddress of the service
getServiceNum
public int getServiceNum()
- Returns:
- the service number that the service is bound to
All Packages Class Hierarchy This Package Previous Next Index