Document that calls can take a long time to complete.
Jack Palevich
5 years ago
48 | 48 | } |
49 | 49 | |
50 | 50 | // Get the external address of the router. |
51 | // | |
52 | // Note that this call can take up to 128 seconds to return. | |
51 | 53 | func (n *Client) GetExternalAddress() (result *GetExternalAddressResult, err error) { |
52 | 54 | msg := make([]byte, 2) |
53 | 55 | msg[0] = 0 // Version 0 |
70 | 72 | PortMappingLifetimeInSeconds uint32 |
71 | 73 | } |
72 | 74 | |
73 | // Add (or delete) a port mapping. To delete a mapping, set the requestedExternalPort and lifetime to 0 | |
75 | // Add (or delete) a port mapping. To delete a mapping, set the requestedExternalPort and lifetime to 0. | |
76 | // Note that this call can take up to 128 seconds to return. | |
74 | 77 | func (n *Client) AddPortMapping(protocol string, internalPort, requestedExternalPort int, lifetime int) (result *AddPortMappingResult, err error) { |
75 | 78 | var opcode byte |
76 | 79 | if protocol == "udp" { |