DOMString getPort()
This method applies to both provided service and required service instances of this class.
Get the port of a provided service server or a reguired service connection.
Return value.
- Povided service: a valid TCP port if the server is up.
- Required service: a valid TCP port if the connection is open.
In both cases the return value is undefined if the condition is not true.