Re: AFP Connection for ....
Re: AFP Connection for ....
- Subject: Re: AFP Connection for ....
- From: Sandro Noel <email@hidden>
- Date: Thu, 15 Jan 2009 20:55:06 -0500
Jens.
Thank you for your insight.
I did find out that information myself on the internet, thank you for
pointing out the obvious.
But if I recall my original question was "how does finder associate
the proper icon to a server and what is the programatic way of doing
it.".
That question has not been answered, and I was pointed in the
direction of AFP by some more interested people.
People like me who are curious to find out how this is done and how it
can be reproduced.
Before claiming that the AFP protocol does not give you the
information about the machine maybe you should
read the documentation again ... look for... ah, let me help you out...
The AFP client sends the FPGetSrvrInfo command to obtain server
information. The FPGetSrvrInfo command returns server information
including the following server parameters: server name, machine type,
AFP version strings, UAM strings, volume icon and mask, a bitmap of
flags, and optionally, a list of available Open Directory names. For
descriptions of server parameters, seeFPGetSrvrInfo in the Reference
section.
Can you see the word icon in there, Oh wait there is a machine type
parameter too... gee!,
I have not seen finder display NFS servers, so i can not tell you how
to get information for these types of servers.
NOTE : after testing it with my Leopard server, it turns out that even
if the NFS services are broadcasted with bonjour
they are not displayed by finder.
I can tell you how to find SMB servers on your lan if you like you can
do it with the command nmblookup "*" -T, try it it's fun.
Or you can open a UDP socket and listen for SMB/NMB broadcasts.
in a nutchell this is how you can tell if it's a SMB server.
I would kindly and very respectfully advise you to stay away from
threads that you feel are a waste of your time.
especially if you deem proper to make someone feel stupid for not
mentioning every single document found on the internet
that he/she might or might not have read.
I'm not pointing a gun to anyone's face for them to reply to my
questions,
This is after an apple malling list, where advice and guidance is the
main objective.
Thank you for you most valuable time.
Regards.
Sandro Noel.
On 15-Jan-09, at 4:36 PM, Jens Alfke wrote:
On Jan 15, 2009, at 12:26 PM, Sandro Noel wrote:
in any case the search for the machine icon seems to end up in the
AFP server protocol for now, all i need to know is if it's TCP or
UDP.
Um, did you do any searching at all? I typed "afp protocol" into
Google; the top hit is a Wikipedia page, whose second paragraph begins
AFP versions 3.0 and greater rely exclusively on TCP/IP (port 548
or 427) for establishing communication
It took me literally ten seconds to find this information, and it
didn't require taking up anyone else's time. You've been at this for
days, emailing a list with probably hundreds of people on it.
I still don't see why you're looking at AFP. AFAIK there is nothing
in the AFP protocol that says what the model of your computer is;
and even if there were, what are you going to do for servers that
run NFS or SMB? This is far more likely to come out of some other
network-management protocol like SNMP.
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden