• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Remote server info
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remote server info


  • Subject: Re: Remote server info
  • From: Chris Ridd <email@hidden>
  • Date: Fri, 12 Mar 2004 19:06:03 +0000

On 12/3/04 6:26 pm, Lorenzo Thurman <email@hidden> wrote:

> I posted this question before, but did not get any replies, but I'm
> trying again in the hopes that someone might have an answer:
>
> How can I get the info on a remote server if I have one of its shares
> mounted? Specifically the IP address is what I need. The share may be
> mounted as AFP, SMB, NFS or any other type OSX supports. I found a
> Carbon data structure, GetVolParmsInfoBuffer, which should have the
> info in its vMServerAdr field but for whatever reason, the value is
> actually the volume reference number of the mounted volume. Is there
> another way to find out the server info?

Check the source to 'df', as this seems able to get some of the info you
want.

<URL:http://cvs.opendarwin.org/index.cgi/~checkout~/src/file_cmds/df/df.c?re
v=1.1.1.2&content-type=text/plain>

It looks like it uses the f_mntfromname field from a struct statfs ...

Cheers,

Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Remote server info (From: Lorenzo Thurman <email@hidden>)

  • Prev by Date: newbie question: two windows
  • Next by Date: Re: Odd binding issue
  • Previous by thread: Remote server info
  • Next by thread: Re: Remote server info
  • Index(es):
    • Date
    • Thread