• 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: OT vs. socket calls on 10.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OT vs. socket calls on 10.2


  • Subject: Re: OT vs. socket calls on 10.2
  • From: Jens Bauer <email@hidden>
  • Date: Thu, 5 Sep 2002 13:23:47 +0200

Hi Jim,

As being the one who wrote the networking code for Opera, I can tell you
it's possible to receive files via FTP using Open Transport.

I wrote a notifier for transferring the data.
From task-time, you do the requests, eg. socket->Send(...); and socket-
>Recv(...);
The notifier stores the data in a memory pool, which is read by the task-
time Recv method.
The FTP and HTTP connections are all done the same way.

Are you using a notifier ? (I presume you do).

Now... You mention tha passive FTP mode, which reminds me that I could
never get this working in Fetch 3.03.
(This was most likely because of Opera Software's firewall)

I know there are differences in Open Transport for Mac OS X (which you
probably also know), which means that some of the API calls that worked
on Mac OS 9 doesn't work on Mac OS X.

Another thing you may want to do, is to check whether you receive an
error -3200 (It doesn't have a name in the Universal Headers I think),
it's the permission error, which will occur when you try opening -say- a
socket for sending ICMP on a port below 1024.

Try dumping the error-codes for the OTConnect call and the calls before that.
-Do you OTBind() before connecting ? (I expect you do)

I may be able to guess some of the wierdness if I can have an error-code
and a position. :)


On Thu, 5 Sep, 2002, Jim Matthews <email@hidden> wrote:

>I'm trying to help a user who can't FTP from OS X 10.2; the server
>never receives the passive mode data connection. The strange thing
>is that the built-in ftp client works, as does Fetch 3.0.3 running in
>Classic. But FTP clients that run native and use Open Transport APIs
>-- Fetch 4.0.2, Captain FTP, and NetFinder -- all fail to connect.
>
>As far as I can tell the only distinction between the programs that
>work and the ones that don't is the API they use. I've seen one
>other case like this -- running the NortonPrivacyControl feature of
>Norton Personal Firewall on OS X blocks uploads of some text files
>with Fetch, but not with the command-line FTP client. I assume
>that's because the Norton software catches calls to the OT API but
>not BSD socket calls, but I don't know exactly why.
>
>So are there "patching" mechanisms that would draw a distinction
>between networking APIs? Does the built-in firewall software?


Love,
Jens

--
Jens Bauer, Faster Software.
-Let's make the World better, shall we ?
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >OT vs. socket calls on 10.2 (From: Jim Matthews <email@hidden>)

  • Prev by Date: OT vs. socket calls on 10.2
  • Next by Date: RE: CFSocket example?
  • Previous by thread: OT vs. socket calls on 10.2
  • Next by thread: Re: OT vs. socket calls on 10.2
  • Index(es):
    • Date
    • Thread