FTP: Difference between revisions

Content added Content deleted
(Added Kotlin)
m (→‎{{header|Kotlin}}: Corrected capitalization error.)
Line 365: Line 365:
{{libheader|ftplib}}
{{libheader|ftplib}}
{{works with|Ubuntu 14.04}}
{{works with|Ubuntu 14.04}}
Assuming that ftplib is already installed on your system in the default location(s), you first need to build ftplib.klib using the following .def file and the cinterop tool. As the Netbuf struct is not defined in ftplib.h (but is in ftplib.c) it has been included in the .def file so that the tool can deal with it (and its alias 'netbuf') properly from a Kotlin perspective.
Assuming that ftplib is already installed on your system in the default location(s), you first need to build ftplib.klib using the following .def file and the cinterop tool. As the NetBuf struct is not defined in ftplib.h (but is in ftplib.c) it has been included in the .def file so that the tool can deal with it (and its alias 'netbuf') properly from a Kotlin perspective.


<pre>
<pre>