Skip to content
Snippets Groups Projects
ftp.c 57.8 KiB
Newer Older
  • Learn to ignore specific revisions
  •   if(conn->data->set.verbose)
        fprintf(conn->data->set.err, "> %s\n", s);
    
    
      strcat(s, "\r\n"); /* append a trailing CRLF */
    
    
    Daniel Stenberg's avatar
    Daniel Stenberg committed
      bytes_written=0;
    
      write_len = strlen(s);
      Curl_write(conn, conn->firstsocket, s, write_len, &bytes_written);
    
      return (bytes_written==write_len)?CURLE_OK:CURLE_WRITE_ERROR;
    
    /***********************************************************************
     *
     * Curl_ftp_disconnect()
     *
     * Disconnect from an FTP server. Cleanup protocol-specific per-connection
     * resources
     */
    
    CURLcode Curl_ftp_disconnect(struct connectdata *conn)
    {
      struct FTP *ftp= conn->proto.ftp;
    
    
      /* The FTP session may or may not have been allocated/setup at this point! */
      if(ftp) {
        if(ftp->entrypath)
          free(ftp->entrypath);
      }
    
    Sterling Hughes's avatar
    Sterling Hughes committed
     * local variables:
     * eval: (load-file "../curl-mode.el")
     * end:
    
     * vim600: fdm=marker
     * vim: et sw=2 ts=2 sts=2 tw=78