public class ExternalAddressRequestMessage extends Message
NatPmpDevice.| Constructor and Description |
|---|
ExternalAddressRequestMessage(MessageResponseInterface listener)
Constructs a new
ExternalAddressRequestMessage. |
| Modifier and Type | Method and Description |
|---|---|
Inet4Address |
getExternalAddress()
Gets the NAT-PMP gateway's external address.
|
getResponseException, getResultCode, getSecondsSinceEpochpublic ExternalAddressRequestMessage(MessageResponseInterface listener)
ExternalAddressRequestMessage.listener - The MessageResponseInterface that will respond to the
message result.public Inet4Address getExternalAddress() throws NatPmpException
Inet4Address of the NAT-PMP gateway.NatPmpException - Thrown when no response has been received or the response
parsing ran into some trouble.Copyright © 2014. All rights reserved.