Single socket connection, how to do that?

  • Arkadiusz Gil
    Arkadiusz Gil

    Hi I created ftp server on my microcontroler board, its based on w5100 which supports only 4 sockets and no multi thread system. My software is actually limited to one socket for control (commands) and one socket for data transfer. Now my system works well with such clients as: ftp command (windows/linux), free commander, windows explorer, gvfs (linux). Now I am working on compatibility with curlftps but I have noticed ( using wireshark ) that curlftpfs tries to open ftpcommand connection on multiple sockets, you can notice on attached image (packet no.7283) that curlftpfs has not disconnected from command socket on port 53139 and tries to open another one on port 53153, I do not know reason why is that so. Is there any way to run curlftpfs so that it would work on single socket?