Unify tcp's get port number function's name