Quantcast
Channel: VMware Communities: Message List - How to get currently-connected server?
Browsing latest articles
Browse All 8 View Live

How to get currently-connected server?

This may be a really simple question, but I can't find where in the documentation it might be mentioned. How can I get the name of the server to which I'm connected?  In many cases, this would be just...

View Article



Re: How to get currently-connected server?

One simple way could be to use Vim::get_service_url().  This will return the full URL which you can parse.  I'm not sure if there is a simple host portion, but you could instantiate a URI object from...

View Article

Re: How to get currently-connected server?

That looks useful, and I can certainly parse the hostname out of the string that's returned. Is that function stable enough to rely on?  It's not documented at Subroutines in the Vim Package.

View Article

Re: How to get currently-connected server?

I've used it for years.  It's used internally by other methods, so I think it's pretty safe.  If I recall correctly, it's just getting the service_url property after it's constructed.  So you want to...

View Article
Browsing latest articles
Browse All 8 View Live




Latest Images