• 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
Problem w. FTP port 21
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem w. FTP port 21


  • Subject: Problem w. FTP port 21
  • From: Eigil Krogh Sørensen <email@hidden>
  • Date: Tue, 25 Jan 2011 16:01:35 +0000
  • Thread-topic: Problem w. FTP port 21

Hello,

 

 

I’m making a program that is downloading a file with FTP to my MAC (OS/X 10.6) from another computer.

 

I’m using the CFFTPSample.c in the CF documentation as reference. The behavior described below is from running the CFFTPSample.

 

Problem:

When the file is downloaded the FTP connection on TCP port 21 (FTP—control (command)) is kept open until the whole program is closed. That is, if I set a breakpoint at “return EXIT_SUCCESS;” in the main() function and check the TCP connections on the remote computer port 21 is still open and is first closed when the “return EXIT_SUCCESS;” is executed, closing down the CFFTPSample program.

 

That the TCP port 21 is kept open prevents other computers to establish FTP connections to the remote computer, which is “not good”.

 

 

Is there anything that I can do/add/change in the CFFTPSample to solve the problem ?

 

Thanks in advance!

 

 

Best regards,

 

Eigil Krogh Sørensen
Software Engineer M.Sc.E.E.
Development

TC Electronic A/S
Sindalsvej 34
DK-8240 Risskov
Denmark

phone:            +45 8742 7000
fax:                +45 8742 7010
email@hidden
tcelectronic.com

TCelectronic_logo

 

 _______________________________________________
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: Problem w. FTP port 21
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Prev by Date: Re: [CFSocket] Invalidating a CFSocketRef revisited
  • Next by Date: Re: Problem w. FTP port 21
  • Previous by thread: Re: [CFSocket] Invalidating a CFSocketRef revisited
  • Next by thread: Re: Problem w. FTP port 21
  • Index(es):
    • Date
    • Thread