Find the answer to your Linux question:
Results 1 to 3 of 3
Hello all you C gurus! I would like to know if it is necessary to fork a main process in order to create a data connection. In many examples on ...
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    10

    Control connection and data connection for a FTP client question

    Hello all you C gurus!
    I would like to know if it is necessary to fork a main process in order to create a data connection. In many examples on the internet it is mentioned that the FTP client needs 2 processes to handle the proper transfer of information. It's well known that FTP has 2 connections but is it necessary to have them in different processes?
    Many thanks for any kind of help!

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Hello,

    no, this is not necessary. Not even multiple threads are necessary.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    If you want to avoid using multiple processes or threads, do this at the command line:
    Code:
    man 2 select
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...