• 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: Getting started communicating with AFP -- on the right track?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting started communicating with AFP -- on the right track?


  • Subject: Re: Getting started communicating with AFP -- on the right track?
  • From: Eli Bach <email@hidden>
  • Date: Sat, 4 Jul 2009 21:12:22 -0700


On Jul 4, 2009, at 3:59 PM, Jerry Krinock wrote:

Whoops.

I was just thinking about what I had proposed in my previous post and realized that it can't work because I didn't tell the server what protocol I was using (afp).

So it seems like either there's a higher-level API somewhere to send these AFP commands, or maybe I need to open an NSURLConnection with a url likeafp://10.0.1.204.

Which way should I go?

Jerry, what you described in your first email would work, because you don't need to tell the server what protocol you are using. I am using the generic 'will work', as I am not knowledgeable in the specifics of the AFP protocol, just in the general method you proposed, which appears to be reasonable.


By connecting to a specific network address/port, you already know what protocol that address/port will use (in general).

Using a url like "afp://10.0.1.204", just says connect using the afp protocol, to the default AFP port at 10.0.1.204. It is possible have afp urls like this "afp://10.0.1.204:1000", which indicates which port to use instead of the default port.

It is possible (but depending on your network, probably highly unlikely) that the server is either 'serving' afp over a different port and/or 'serving' some other protocol using afp's default port.

I am not aware of a higher-level method for determining the computer name. It is more likely that one is available if the computer has already established a connection to the server than if there is no connection made, vs if there is no connection from your machine to the server.

Eli

_______________________________________________
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


  • Follow-Ups:
    • Re: Getting started communicating with AFP -- on the right track?
      • From: Jerry Krinock <email@hidden>
References: 
 >Getting started communicating with AFP -- on the right track? (From: Jerry Krinock <email@hidden>)
 >Re: Getting started communicating with AFP -- on the right track? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Getting started communicating with AFP -- on the right track?
  • Next by Date: Re: Getting started communicating with AFP -- on the right track?
  • Previous by thread: Re: Getting started communicating with AFP -- on the right track?
  • Next by thread: Re: Getting started communicating with AFP -- on the right track?
  • Index(es):
    • Date
    • Thread