libxml-nanoftp.html revision f012a64d13d85d53eac0d4d6625508109e7c9e9d
1<HTML
2><HEAD
3><TITLE
4>nanoftp</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.59"><LINK
8REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
12TITLE="Libxml Library Reference"
13HREF="libxml-lib.html"><LINK
14REL="PREVIOUS"
15TITLE="nanohttp"
16HREF="libxml-nanohttp.html"><LINK
17REL="NEXT"
18TITLE="xmlIO"
19HREF="libxml-xmlio.html"></HEAD
20><BODY
21CLASS="REFENTRY"
22BGCOLOR="#FFFFFF"
23TEXT="#000000"
24LINK="#0000FF"
25VLINK="#840084"
26ALINK="#0000FF"
27><DIV
28CLASS="NAVHEADER"
29><TABLE
30WIDTH="100%"
31BORDER="0"
32BGCOLOR="#000000"
33CELLPADDING="1"
34CELLSPACING="0"
35><TR
36><TH
37COLSPAN="4"
38ALIGN="center"
39><FONT
40COLOR="#FFFFFF"
41SIZE="5"
42>Gnome XML Library Reference Manual</FONT
43></TH
44></TR
45><TR
46><TD
47WIDTH="25%"
48BGCOLOR="#C00000"
49ALIGN="left"
50><A
51HREF="libxml-nanohttp.html"
52><FONT
53COLOR="#FFFFFF"
54SIZE="3"
55><B
56>&#60;&#60;&#60; Previous Page</B
57></FONT
58></A
59></TD
60><TD
61WIDTH="25%"
62BGCOLOR="#0000C0"
63ALIGN="center"
64><FONT
65COLOR="#FFFFFF"
66SIZE="3"
67><B
68><A
69HREF="book1.html"
70><FONT
71COLOR="#FFFFFF"
72SIZE="3"
73><B
74>Home</B
75></FONT
76></A
77></B
78></FONT
79></TD
80><TD
81WIDTH="25%"
82BGCOLOR="#00C000"
83ALIGN="center"
84><FONT
85COLOR="#FFFFFF"
86SIZE="3"
87><B
88><A
89HREF="libxml-lib.html"
90><FONT
91COLOR="#FFFFFF"
92SIZE="3"
93><B
94>Up</B
95></FONT
96></A
97></B
98></FONT
99></TD
100><TD
101WIDTH="25%"
102BGCOLOR="#C00000"
103ALIGN="right"
104><A
105HREF="libxml-xmlio.html"
106><FONT
107COLOR="#FFFFFF"
108SIZE="3"
109><B
110>Next Page &#62;&#62;&#62;</B
111></FONT
112></A
113></TD
114></TR
115></TABLE
116></DIV
117><H1
118><A
119NAME="LIBXML-NANOFTP"
120>nanoftp</A
121></H1
122><DIV
123CLASS="REFNAMEDIV"
124><A
125NAME="AEN16760"
126></A
127><H2
128>Name</H2
129>nanoftp&nbsp;--&nbsp;</DIV
130><DIV
131CLASS="REFSYNOPSISDIV"
132><A
133NAME="AEN16763"
134></A
135><H2
136>Synopsis</H2
137><TABLE
138BORDER="0"
139BGCOLOR="#D6E8FF"
140WIDTH="100%"
141CELLPADDING="6"
142><TR
143><TD
144><PRE
145CLASS="SYNOPSIS"
146>&#13;
147
148void        (<A
149HREF="libxml-nanoftp.html#FTPLISTCALLBACK"
150>*ftpListCallback</A
151>)              (void *userData,
152                                             const char *filename,
153                                             const char *attrib,
154                                             const char *owner,
155                                             const char *group,
156                                             unsigned <GTKDOCLINK
157HREF="LONG"
158>long</GTKDOCLINK
159> size,
160                                             int links,
161                                             int year,
162                                             const char *month,
163                                             int day,
164                                             int hour,
165                                             int minute);
166void        (<A
167HREF="libxml-nanoftp.html#FTPDATACALLBACK"
168>*ftpDataCallback</A
169>)              (void *userData,
170                                             const char *data,
171                                             int len);
172void        <A
173HREF="libxml-nanoftp.html#XMLNANOFTPINIT"
174>xmlNanoFTPInit</A
175>                  (void);
176void        <A
177HREF="libxml-nanoftp.html#XMLNANOFTPCLEANUP"
178>xmlNanoFTPCleanup</A
179>               (void);
180void*       <A
181HREF="libxml-nanoftp.html#XMLNANOFTPNEWCTXT"
182>xmlNanoFTPNewCtxt</A
183>               (const char *URL);
184void        <A
185HREF="libxml-nanoftp.html#XMLNANOFTPFREECTXT"
186>xmlNanoFTPFreeCtxt</A
187>              (void *ctx);
188void*       <A
189HREF="libxml-nanoftp.html#XMLNANOFTPCONNECTTO"
190>xmlNanoFTPConnectTo</A
191>             (const char *server,
192                                             int port);
193void*       <A
194HREF="libxml-nanoftp.html#XMLNANOFTPOPEN"
195>xmlNanoFTPOpen</A
196>                  (const char *URL);
197int         <A
198HREF="libxml-nanoftp.html#XMLNANOFTPCONNECT"
199>xmlNanoFTPConnect</A
200>               (void *ctx);
201int         <A
202HREF="libxml-nanoftp.html#XMLNANOFTPCLOSE"
203>xmlNanoFTPClose</A
204>                 (void *ctx);
205int         <A
206HREF="libxml-nanoftp.html#XMLNANOFTPQUIT"
207>xmlNanoFTPQuit</A
208>                  (void *ctx);
209void        <A
210HREF="libxml-nanoftp.html#XMLNANOFTPSCANPROXY"
211>xmlNanoFTPScanProxy</A
212>             (const char *URL);
213void        <A
214HREF="libxml-nanoftp.html#XMLNANOFTPPROXY"
215>xmlNanoFTPProxy</A
216>                 (const char *host,
217                                             int port,
218                                             const char *user,
219                                             const char *passwd,
220                                             int type);
221int         <A
222HREF="libxml-nanoftp.html#XMLNANOFTPUPDATEURL"
223>xmlNanoFTPUpdateURL</A
224>             (void *ctx,
225                                             const char *URL);
226int         <A
227HREF="libxml-nanoftp.html#XMLNANOFTPGETRESPONSE"
228>xmlNanoFTPGetResponse</A
229>           (void *ctx);
230int         <A
231HREF="libxml-nanoftp.html#XMLNANOFTPCHECKRESPONSE"
232>xmlNanoFTPCheckResponse</A
233>         (void *ctx);
234int         <A
235HREF="libxml-nanoftp.html#XMLNANOFTPCWD"
236>xmlNanoFTPCwd</A
237>                   (void *ctx,
238                                             char *directory);
239int         <A
240HREF="libxml-nanoftp.html#XMLNANOFTPGETCONNECTION"
241>xmlNanoFTPGetConnection</A
242>         (void *ctx);
243int         <A
244HREF="libxml-nanoftp.html#XMLNANOFTPCLOSECONNECTION"
245>xmlNanoFTPCloseConnection</A
246>       (void *ctx);
247int         <A
248HREF="libxml-nanoftp.html#XMLNANOFTPLIST"
249>xmlNanoFTPList</A
250>                  (void *ctx,
251                                             <A
252HREF="libxml-nanoftp.html#FTPLISTCALLBACK"
253>ftpListCallback</A
254> callback,
255                                             void *userData,
256                                             char *filename);
257int         <A
258HREF="libxml-nanoftp.html#XMLNANOFTPGETSOCKET"
259>xmlNanoFTPGetSocket</A
260>             (void *ctx,
261                                             const char *filename);
262int         <A
263HREF="libxml-nanoftp.html#XMLNANOFTPGET"
264>xmlNanoFTPGet</A
265>                   (void *ctx,
266                                             <A
267HREF="libxml-nanoftp.html#FTPDATACALLBACK"
268>ftpDataCallback</A
269> callback,
270                                             void *userData,
271                                             const char *filename);
272int         <A
273HREF="libxml-nanoftp.html#XMLNANOFTPREAD"
274>xmlNanoFTPRead</A
275>                  (void *ctx,
276                                             void *dest,
277                                             int len);</PRE
278></TD
279></TR
280></TABLE
281></DIV
282><DIV
283CLASS="REFSECT1"
284><A
285NAME="AEN16792"
286></A
287><H2
288>Description</H2
289><P
290></P
291></DIV
292><DIV
293CLASS="REFSECT1"
294><A
295NAME="AEN16795"
296></A
297><H2
298>Details</H2
299><DIV
300CLASS="REFSECT2"
301><A
302NAME="AEN16797"
303></A
304><H3
305><A
306NAME="FTPLISTCALLBACK"
307></A
308>ftpListCallback ()</H3
309><TABLE
310BORDER="0"
311BGCOLOR="#D6E8FF"
312WIDTH="100%"
313CELLPADDING="6"
314><TR
315><TD
316><PRE
317CLASS="PROGRAMLISTING"
318>void        (*ftpListCallback)              (void *userData,
319                                             const char *filename,
320                                             const char *attrib,
321                                             const char *owner,
322                                             const char *group,
323                                             unsigned <GTKDOCLINK
324HREF="LONG"
325>long</GTKDOCLINK
326> size,
327                                             int links,
328                                             int year,
329                                             const char *month,
330                                             int day,
331                                             int hour,
332                                             int minute);</PRE
333></TD
334></TR
335></TABLE
336><P
337></P
338><DIV
339CLASS="INFORMALTABLE"
340><A
341NAME="AEN16803"
342></A
343><P
344></P
345><TABLE
346BORDER="0"
347WIDTH="100%"
348BGCOLOR="#FFD0D0"
349CELLSPACING="0"
350CELLPADDING="4"
351CLASS="CALSTABLE"
352><TBODY
353><TR
354><TD
355WIDTH="20%"
356ALIGN="RIGHT"
357VALIGN="TOP"
358><TT
359CLASS="PARAMETER"
360><I
361>userData</I
362></TT
363>&nbsp;:</TD
364><TD
365WIDTH="80%"
366ALIGN="LEFT"
367VALIGN="TOP"
368>&nbsp;</TD
369></TR
370><TR
371><TD
372WIDTH="20%"
373ALIGN="RIGHT"
374VALIGN="TOP"
375><TT
376CLASS="PARAMETER"
377><I
378>filename</I
379></TT
380>&nbsp;:</TD
381><TD
382WIDTH="80%"
383ALIGN="LEFT"
384VALIGN="TOP"
385>&nbsp;</TD
386></TR
387><TR
388><TD
389WIDTH="20%"
390ALIGN="RIGHT"
391VALIGN="TOP"
392><TT
393CLASS="PARAMETER"
394><I
395>attrib</I
396></TT
397>&nbsp;:</TD
398><TD
399WIDTH="80%"
400ALIGN="LEFT"
401VALIGN="TOP"
402>&nbsp;</TD
403></TR
404><TR
405><TD
406WIDTH="20%"
407ALIGN="RIGHT"
408VALIGN="TOP"
409><TT
410CLASS="PARAMETER"
411><I
412>owner</I
413></TT
414>&nbsp;:</TD
415><TD
416WIDTH="80%"
417ALIGN="LEFT"
418VALIGN="TOP"
419>&nbsp;</TD
420></TR
421><TR
422><TD
423WIDTH="20%"
424ALIGN="RIGHT"
425VALIGN="TOP"
426><TT
427CLASS="PARAMETER"
428><I
429>group</I
430></TT
431>&nbsp;:</TD
432><TD
433WIDTH="80%"
434ALIGN="LEFT"
435VALIGN="TOP"
436>&nbsp;</TD
437></TR
438><TR
439><TD
440WIDTH="20%"
441ALIGN="RIGHT"
442VALIGN="TOP"
443><TT
444CLASS="PARAMETER"
445><I
446>size</I
447></TT
448>&nbsp;:</TD
449><TD
450WIDTH="80%"
451ALIGN="LEFT"
452VALIGN="TOP"
453>&nbsp;</TD
454></TR
455><TR
456><TD
457WIDTH="20%"
458ALIGN="RIGHT"
459VALIGN="TOP"
460><TT
461CLASS="PARAMETER"
462><I
463>links</I
464></TT
465>&nbsp;:</TD
466><TD
467WIDTH="80%"
468ALIGN="LEFT"
469VALIGN="TOP"
470>&nbsp;</TD
471></TR
472><TR
473><TD
474WIDTH="20%"
475ALIGN="RIGHT"
476VALIGN="TOP"
477><TT
478CLASS="PARAMETER"
479><I
480>year</I
481></TT
482>&nbsp;:</TD
483><TD
484WIDTH="80%"
485ALIGN="LEFT"
486VALIGN="TOP"
487>&nbsp;</TD
488></TR
489><TR
490><TD
491WIDTH="20%"
492ALIGN="RIGHT"
493VALIGN="TOP"
494><TT
495CLASS="PARAMETER"
496><I
497>month</I
498></TT
499>&nbsp;:</TD
500><TD
501WIDTH="80%"
502ALIGN="LEFT"
503VALIGN="TOP"
504>&nbsp;</TD
505></TR
506><TR
507><TD
508WIDTH="20%"
509ALIGN="RIGHT"
510VALIGN="TOP"
511><TT
512CLASS="PARAMETER"
513><I
514>day</I
515></TT
516>&nbsp;:</TD
517><TD
518WIDTH="80%"
519ALIGN="LEFT"
520VALIGN="TOP"
521>&nbsp;</TD
522></TR
523><TR
524><TD
525WIDTH="20%"
526ALIGN="RIGHT"
527VALIGN="TOP"
528><TT
529CLASS="PARAMETER"
530><I
531>hour</I
532></TT
533>&nbsp;:</TD
534><TD
535WIDTH="80%"
536ALIGN="LEFT"
537VALIGN="TOP"
538>&nbsp;</TD
539></TR
540><TR
541><TD
542WIDTH="20%"
543ALIGN="RIGHT"
544VALIGN="TOP"
545><TT
546CLASS="PARAMETER"
547><I
548>minute</I
549></TT
550>&nbsp;:</TD
551><TD
552WIDTH="80%"
553ALIGN="LEFT"
554VALIGN="TOP"
555>&nbsp;</TD
556></TR
557></TBODY
558></TABLE
559><P
560></P
561></DIV
562></DIV
563><HR><DIV
564CLASS="REFSECT2"
565><A
566NAME="AEN16856"
567></A
568><H3
569><A
570NAME="FTPDATACALLBACK"
571></A
572>ftpDataCallback ()</H3
573><TABLE
574BORDER="0"
575BGCOLOR="#D6E8FF"
576WIDTH="100%"
577CELLPADDING="6"
578><TR
579><TD
580><PRE
581CLASS="PROGRAMLISTING"
582>void        (*ftpDataCallback)              (void *userData,
583                                             const char *data,
584                                             int len);</PRE
585></TD
586></TR
587></TABLE
588><P
589></P
590><DIV
591CLASS="INFORMALTABLE"
592><A
593NAME="AEN16861"
594></A
595><P
596></P
597><TABLE
598BORDER="0"
599WIDTH="100%"
600BGCOLOR="#FFD0D0"
601CELLSPACING="0"
602CELLPADDING="4"
603CLASS="CALSTABLE"
604><TBODY
605><TR
606><TD
607WIDTH="20%"
608ALIGN="RIGHT"
609VALIGN="TOP"
610><TT
611CLASS="PARAMETER"
612><I
613>userData</I
614></TT
615>&nbsp;:</TD
616><TD
617WIDTH="80%"
618ALIGN="LEFT"
619VALIGN="TOP"
620>&nbsp;</TD
621></TR
622><TR
623><TD
624WIDTH="20%"
625ALIGN="RIGHT"
626VALIGN="TOP"
627><TT
628CLASS="PARAMETER"
629><I
630>data</I
631></TT
632>&nbsp;:</TD
633><TD
634WIDTH="80%"
635ALIGN="LEFT"
636VALIGN="TOP"
637>&nbsp;</TD
638></TR
639><TR
640><TD
641WIDTH="20%"
642ALIGN="RIGHT"
643VALIGN="TOP"
644><TT
645CLASS="PARAMETER"
646><I
647>len</I
648></TT
649>&nbsp;:</TD
650><TD
651WIDTH="80%"
652ALIGN="LEFT"
653VALIGN="TOP"
654>&nbsp;</TD
655></TR
656></TBODY
657></TABLE
658><P
659></P
660></DIV
661></DIV
662><HR><DIV
663CLASS="REFSECT2"
664><A
665NAME="AEN16878"
666></A
667><H3
668><A
669NAME="XMLNANOFTPINIT"
670></A
671>xmlNanoFTPInit ()</H3
672><TABLE
673BORDER="0"
674BGCOLOR="#D6E8FF"
675WIDTH="100%"
676CELLPADDING="6"
677><TR
678><TD
679><PRE
680CLASS="PROGRAMLISTING"
681>void        xmlNanoFTPInit                  (void);</PRE
682></TD
683></TR
684></TABLE
685><P
686>Initialize the FTP protocol layer.
687Currently it just checks for proxy informations,
688and get the hostname</P
689><P
690></P
691></DIV
692><HR><DIV
693CLASS="REFSECT2"
694><A
695NAME="AEN16884"
696></A
697><H3
698><A
699NAME="XMLNANOFTPCLEANUP"
700></A
701>xmlNanoFTPCleanup ()</H3
702><TABLE
703BORDER="0"
704BGCOLOR="#D6E8FF"
705WIDTH="100%"
706CELLPADDING="6"
707><TR
708><TD
709><PRE
710CLASS="PROGRAMLISTING"
711>void        xmlNanoFTPCleanup               (void);</PRE
712></TD
713></TR
714></TABLE
715><P
716>Cleanup the FTP protocol layer. This cleanup proxy informations.</P
717><P
718></P
719></DIV
720><HR><DIV
721CLASS="REFSECT2"
722><A
723NAME="AEN16890"
724></A
725><H3
726><A
727NAME="XMLNANOFTPNEWCTXT"
728></A
729>xmlNanoFTPNewCtxt ()</H3
730><TABLE
731BORDER="0"
732BGCOLOR="#D6E8FF"
733WIDTH="100%"
734CELLPADDING="6"
735><TR
736><TD
737><PRE
738CLASS="PROGRAMLISTING"
739>void*       xmlNanoFTPNewCtxt               (const char *URL);</PRE
740></TD
741></TR
742></TABLE
743><P
744>Allocate and initialize a new FTP context.</P
745><P
746></P
747><DIV
748CLASS="INFORMALTABLE"
749><A
750NAME="AEN16896"
751></A
752><P
753></P
754><TABLE
755BORDER="0"
756WIDTH="100%"
757BGCOLOR="#FFD0D0"
758CELLSPACING="0"
759CELLPADDING="4"
760CLASS="CALSTABLE"
761><TBODY
762><TR
763><TD
764WIDTH="20%"
765ALIGN="RIGHT"
766VALIGN="TOP"
767><TT
768CLASS="PARAMETER"
769><I
770>URL</I
771></TT
772>&nbsp;:</TD
773><TD
774WIDTH="80%"
775ALIGN="LEFT"
776VALIGN="TOP"
777>  The URL used to initialize the context</TD
778></TR
779></TBODY
780></TABLE
781><P
782></P
783></DIV
784></DIV
785><HR><DIV
786CLASS="REFSECT2"
787><A
788NAME="AEN16905"
789></A
790><H3
791><A
792NAME="XMLNANOFTPFREECTXT"
793></A
794>xmlNanoFTPFreeCtxt ()</H3
795><TABLE
796BORDER="0"
797BGCOLOR="#D6E8FF"
798WIDTH="100%"
799CELLPADDING="6"
800><TR
801><TD
802><PRE
803CLASS="PROGRAMLISTING"
804>void        xmlNanoFTPFreeCtxt              (void *ctx);</PRE
805></TD
806></TR
807></TABLE
808><P
809>Frees the context after closing the connection.</P
810><P
811></P
812><DIV
813CLASS="INFORMALTABLE"
814><A
815NAME="AEN16911"
816></A
817><P
818></P
819><TABLE
820BORDER="0"
821WIDTH="100%"
822BGCOLOR="#FFD0D0"
823CELLSPACING="0"
824CELLPADDING="4"
825CLASS="CALSTABLE"
826><TBODY
827><TR
828><TD
829WIDTH="20%"
830ALIGN="RIGHT"
831VALIGN="TOP"
832><TT
833CLASS="PARAMETER"
834><I
835>ctx</I
836></TT
837>&nbsp;:</TD
838><TD
839WIDTH="80%"
840ALIGN="LEFT"
841VALIGN="TOP"
842>  an FTP context</TD
843></TR
844></TBODY
845></TABLE
846><P
847></P
848></DIV
849></DIV
850><HR><DIV
851CLASS="REFSECT2"
852><A
853NAME="AEN16920"
854></A
855><H3
856><A
857NAME="XMLNANOFTPCONNECTTO"
858></A
859>xmlNanoFTPConnectTo ()</H3
860><TABLE
861BORDER="0"
862BGCOLOR="#D6E8FF"
863WIDTH="100%"
864CELLPADDING="6"
865><TR
866><TD
867><PRE
868CLASS="PROGRAMLISTING"
869>void*       xmlNanoFTPConnectTo             (const char *server,
870                                             int port);</PRE
871></TD
872></TR
873></TABLE
874><P
875>Tries to open a control connection to the given server/port</P
876><P
877></P
878><DIV
879CLASS="INFORMALTABLE"
880><A
881NAME="AEN16926"
882></A
883><P
884></P
885><TABLE
886BORDER="0"
887WIDTH="100%"
888BGCOLOR="#FFD0D0"
889CELLSPACING="0"
890CELLPADDING="4"
891CLASS="CALSTABLE"
892><TBODY
893><TR
894><TD
895WIDTH="20%"
896ALIGN="RIGHT"
897VALIGN="TOP"
898><TT
899CLASS="PARAMETER"
900><I
901>server</I
902></TT
903>&nbsp;:</TD
904><TD
905WIDTH="80%"
906ALIGN="LEFT"
907VALIGN="TOP"
908>  an FTP server name</TD
909></TR
910><TR
911><TD
912WIDTH="20%"
913ALIGN="RIGHT"
914VALIGN="TOP"
915><TT
916CLASS="PARAMETER"
917><I
918>port</I
919></TT
920>&nbsp;:</TD
921><TD
922WIDTH="80%"
923ALIGN="LEFT"
924VALIGN="TOP"
925>  the port (use 21 if 0)</TD
926></TR
927></TBODY
928></TABLE
929><P
930></P
931></DIV
932></DIV
933><HR><DIV
934CLASS="REFSECT2"
935><A
936NAME="AEN16939"
937></A
938><H3
939><A
940NAME="XMLNANOFTPOPEN"
941></A
942>xmlNanoFTPOpen ()</H3
943><TABLE
944BORDER="0"
945BGCOLOR="#D6E8FF"
946WIDTH="100%"
947CELLPADDING="6"
948><TR
949><TD
950><PRE
951CLASS="PROGRAMLISTING"
952>void*       xmlNanoFTPOpen                  (const char *URL);</PRE
953></TD
954></TR
955></TABLE
956><P
957>Start to fetch the given ftp:// resource</P
958><P
959></P
960><DIV
961CLASS="INFORMALTABLE"
962><A
963NAME="AEN16945"
964></A
965><P
966></P
967><TABLE
968BORDER="0"
969WIDTH="100%"
970BGCOLOR="#FFD0D0"
971CELLSPACING="0"
972CELLPADDING="4"
973CLASS="CALSTABLE"
974><TBODY
975><TR
976><TD
977WIDTH="20%"
978ALIGN="RIGHT"
979VALIGN="TOP"
980><TT
981CLASS="PARAMETER"
982><I
983>URL</I
984></TT
985>&nbsp;:</TD
986><TD
987WIDTH="80%"
988ALIGN="LEFT"
989VALIGN="TOP"
990> the URL to the resource</TD
991></TR
992></TBODY
993></TABLE
994><P
995></P
996></DIV
997></DIV
998><HR><DIV
999CLASS="REFSECT2"
1000><A
1001NAME="AEN16954"
1002></A
1003><H3
1004><A
1005NAME="XMLNANOFTPCONNECT"
1006></A
1007>xmlNanoFTPConnect ()</H3
1008><TABLE
1009BORDER="0"
1010BGCOLOR="#D6E8FF"
1011WIDTH="100%"
1012CELLPADDING="6"
1013><TR
1014><TD
1015><PRE
1016CLASS="PROGRAMLISTING"
1017>int         xmlNanoFTPConnect               (void *ctx);</PRE
1018></TD
1019></TR
1020></TABLE
1021><P
1022>Tries to open a control connection</P
1023><P
1024></P
1025><DIV
1026CLASS="INFORMALTABLE"
1027><A
1028NAME="AEN16960"
1029></A
1030><P
1031></P
1032><TABLE
1033BORDER="0"
1034WIDTH="100%"
1035BGCOLOR="#FFD0D0"
1036CELLSPACING="0"
1037CELLPADDING="4"
1038CLASS="CALSTABLE"
1039><TBODY
1040><TR
1041><TD
1042WIDTH="20%"
1043ALIGN="RIGHT"
1044VALIGN="TOP"
1045><TT
1046CLASS="PARAMETER"
1047><I
1048>ctx</I
1049></TT
1050>&nbsp;:</TD
1051><TD
1052WIDTH="80%"
1053ALIGN="LEFT"
1054VALIGN="TOP"
1055>  an FTP context</TD
1056></TR
1057><TR
1058><TD
1059WIDTH="20%"
1060ALIGN="RIGHT"
1061VALIGN="TOP"
1062><I
1063CLASS="EMPHASIS"
1064>Returns</I
1065> :</TD
1066><TD
1067WIDTH="80%"
1068ALIGN="LEFT"
1069VALIGN="TOP"
1070>-1 in case of error, 0 otherwise</TD
1071></TR
1072></TBODY
1073></TABLE
1074><P
1075></P
1076></DIV
1077></DIV
1078><HR><DIV
1079CLASS="REFSECT2"
1080><A
1081NAME="AEN16973"
1082></A
1083><H3
1084><A
1085NAME="XMLNANOFTPCLOSE"
1086></A
1087>xmlNanoFTPClose ()</H3
1088><TABLE
1089BORDER="0"
1090BGCOLOR="#D6E8FF"
1091WIDTH="100%"
1092CELLPADDING="6"
1093><TR
1094><TD
1095><PRE
1096CLASS="PROGRAMLISTING"
1097>int         xmlNanoFTPClose                 (void *ctx);</PRE
1098></TD
1099></TR
1100></TABLE
1101><P
1102>Close the connection and both control and transport</P
1103><P
1104></P
1105><DIV
1106CLASS="INFORMALTABLE"
1107><A
1108NAME="AEN16979"
1109></A
1110><P
1111></P
1112><TABLE
1113BORDER="0"
1114WIDTH="100%"
1115BGCOLOR="#FFD0D0"
1116CELLSPACING="0"
1117CELLPADDING="4"
1118CLASS="CALSTABLE"
1119><TBODY
1120><TR
1121><TD
1122WIDTH="20%"
1123ALIGN="RIGHT"
1124VALIGN="TOP"
1125><TT
1126CLASS="PARAMETER"
1127><I
1128>ctx</I
1129></TT
1130>&nbsp;:</TD
1131><TD
1132WIDTH="80%"
1133ALIGN="LEFT"
1134VALIGN="TOP"
1135> an FTP context</TD
1136></TR
1137><TR
1138><TD
1139WIDTH="20%"
1140ALIGN="RIGHT"
1141VALIGN="TOP"
1142><I
1143CLASS="EMPHASIS"
1144>Returns</I
1145> :</TD
1146><TD
1147WIDTH="80%"
1148ALIGN="LEFT"
1149VALIGN="TOP"
1150>-1 incase of error, 0 otherwise</TD
1151></TR
1152></TBODY
1153></TABLE
1154><P
1155></P
1156></DIV
1157></DIV
1158><HR><DIV
1159CLASS="REFSECT2"
1160><A
1161NAME="AEN16992"
1162></A
1163><H3
1164><A
1165NAME="XMLNANOFTPQUIT"
1166></A
1167>xmlNanoFTPQuit ()</H3
1168><TABLE
1169BORDER="0"
1170BGCOLOR="#D6E8FF"
1171WIDTH="100%"
1172CELLPADDING="6"
1173><TR
1174><TD
1175><PRE
1176CLASS="PROGRAMLISTING"
1177>int         xmlNanoFTPQuit                  (void *ctx);</PRE
1178></TD
1179></TR
1180></TABLE
1181><P
1182>Send a QUIT command to the server</P
1183><P
1184></P
1185><DIV
1186CLASS="INFORMALTABLE"
1187><A
1188NAME="AEN16998"
1189></A
1190><P
1191></P
1192><TABLE
1193BORDER="0"
1194WIDTH="100%"
1195BGCOLOR="#FFD0D0"
1196CELLSPACING="0"
1197CELLPADDING="4"
1198CLASS="CALSTABLE"
1199><TBODY
1200><TR
1201><TD
1202WIDTH="20%"
1203ALIGN="RIGHT"
1204VALIGN="TOP"
1205><TT
1206CLASS="PARAMETER"
1207><I
1208>ctx</I
1209></TT
1210>&nbsp;:</TD
1211><TD
1212WIDTH="80%"
1213ALIGN="LEFT"
1214VALIGN="TOP"
1215>  an FTP context</TD
1216></TR
1217><TR
1218><TD
1219WIDTH="20%"
1220ALIGN="RIGHT"
1221VALIGN="TOP"
1222><I
1223CLASS="EMPHASIS"
1224>Returns</I
1225> :</TD
1226><TD
1227WIDTH="80%"
1228ALIGN="LEFT"
1229VALIGN="TOP"
1230>-1 in case of error, 0 otherwise</TD
1231></TR
1232></TBODY
1233></TABLE
1234><P
1235></P
1236></DIV
1237></DIV
1238><HR><DIV
1239CLASS="REFSECT2"
1240><A
1241NAME="AEN17011"
1242></A
1243><H3
1244><A
1245NAME="XMLNANOFTPSCANPROXY"
1246></A
1247>xmlNanoFTPScanProxy ()</H3
1248><TABLE
1249BORDER="0"
1250BGCOLOR="#D6E8FF"
1251WIDTH="100%"
1252CELLPADDING="6"
1253><TR
1254><TD
1255><PRE
1256CLASS="PROGRAMLISTING"
1257>void        xmlNanoFTPScanProxy             (const char *URL);</PRE
1258></TD
1259></TR
1260></TABLE
1261><P
1262>(Re)Initialize the FTP Proxy context by parsing the URL and finding
1263the protocol host port it indicates.
1264Should be like ftp://myproxy/ or ftp://myproxy:3128/
1265A NULL URL cleans up proxy informations.</P
1266><P
1267></P
1268><DIV
1269CLASS="INFORMALTABLE"
1270><A
1271NAME="AEN17017"
1272></A
1273><P
1274></P
1275><TABLE
1276BORDER="0"
1277WIDTH="100%"
1278BGCOLOR="#FFD0D0"
1279CELLSPACING="0"
1280CELLPADDING="4"
1281CLASS="CALSTABLE"
1282><TBODY
1283><TR
1284><TD
1285WIDTH="20%"
1286ALIGN="RIGHT"
1287VALIGN="TOP"
1288><TT
1289CLASS="PARAMETER"
1290><I
1291>URL</I
1292></TT
1293>&nbsp;:</TD
1294><TD
1295WIDTH="80%"
1296ALIGN="LEFT"
1297VALIGN="TOP"
1298>  The proxy URL used to initialize the proxy context</TD
1299></TR
1300></TBODY
1301></TABLE
1302><P
1303></P
1304></DIV
1305></DIV
1306><HR><DIV
1307CLASS="REFSECT2"
1308><A
1309NAME="AEN17026"
1310></A
1311><H3
1312><A
1313NAME="XMLNANOFTPPROXY"
1314></A
1315>xmlNanoFTPProxy ()</H3
1316><TABLE
1317BORDER="0"
1318BGCOLOR="#D6E8FF"
1319WIDTH="100%"
1320CELLPADDING="6"
1321><TR
1322><TD
1323><PRE
1324CLASS="PROGRAMLISTING"
1325>void        xmlNanoFTPProxy                 (const char *host,
1326                                             int port,
1327                                             const char *user,
1328                                             const char *passwd,
1329                                             int type);</PRE
1330></TD
1331></TR
1332></TABLE
1333><P
1334>Setup the FTP proxy informations.
1335This can also be done by using ftp_proxy ftp_proxy_user and
1336ftp_proxy_password environment variables.</P
1337><P
1338></P
1339><DIV
1340CLASS="INFORMALTABLE"
1341><A
1342NAME="AEN17032"
1343></A
1344><P
1345></P
1346><TABLE
1347BORDER="0"
1348WIDTH="100%"
1349BGCOLOR="#FFD0D0"
1350CELLSPACING="0"
1351CELLPADDING="4"
1352CLASS="CALSTABLE"
1353><TBODY
1354><TR
1355><TD
1356WIDTH="20%"
1357ALIGN="RIGHT"
1358VALIGN="TOP"
1359><TT
1360CLASS="PARAMETER"
1361><I
1362>host</I
1363></TT
1364>&nbsp;:</TD
1365><TD
1366WIDTH="80%"
1367ALIGN="LEFT"
1368VALIGN="TOP"
1369>  the proxy host name</TD
1370></TR
1371><TR
1372><TD
1373WIDTH="20%"
1374ALIGN="RIGHT"
1375VALIGN="TOP"
1376><TT
1377CLASS="PARAMETER"
1378><I
1379>port</I
1380></TT
1381>&nbsp;:</TD
1382><TD
1383WIDTH="80%"
1384ALIGN="LEFT"
1385VALIGN="TOP"
1386>  the proxy port</TD
1387></TR
1388><TR
1389><TD
1390WIDTH="20%"
1391ALIGN="RIGHT"
1392VALIGN="TOP"
1393><TT
1394CLASS="PARAMETER"
1395><I
1396>user</I
1397></TT
1398>&nbsp;:</TD
1399><TD
1400WIDTH="80%"
1401ALIGN="LEFT"
1402VALIGN="TOP"
1403>  the proxy user name</TD
1404></TR
1405><TR
1406><TD
1407WIDTH="20%"
1408ALIGN="RIGHT"
1409VALIGN="TOP"
1410><TT
1411CLASS="PARAMETER"
1412><I
1413>passwd</I
1414></TT
1415>&nbsp;:</TD
1416><TD
1417WIDTH="80%"
1418ALIGN="LEFT"
1419VALIGN="TOP"
1420>  the proxy password</TD
1421></TR
1422><TR
1423><TD
1424WIDTH="20%"
1425ALIGN="RIGHT"
1426VALIGN="TOP"
1427><TT
1428CLASS="PARAMETER"
1429><I
1430>type</I
1431></TT
1432>&nbsp;:</TD
1433><TD
1434WIDTH="80%"
1435ALIGN="LEFT"
1436VALIGN="TOP"
1437>  the type of proxy 1 for using SITE, 2 for USER a<TT
1438CLASS="PARAMETER"
1439><I
1440>b</I
1441></TT
1442></TD
1443></TR
1444></TBODY
1445></TABLE
1446><P
1447></P
1448></DIV
1449></DIV
1450><HR><DIV
1451CLASS="REFSECT2"
1452><A
1453NAME="AEN17058"
1454></A
1455><H3
1456><A
1457NAME="XMLNANOFTPUPDATEURL"
1458></A
1459>xmlNanoFTPUpdateURL ()</H3
1460><TABLE
1461BORDER="0"
1462BGCOLOR="#D6E8FF"
1463WIDTH="100%"
1464CELLPADDING="6"
1465><TR
1466><TD
1467><PRE
1468CLASS="PROGRAMLISTING"
1469>int         xmlNanoFTPUpdateURL             (void *ctx,
1470                                             const char *URL);</PRE
1471></TD
1472></TR
1473></TABLE
1474><P
1475>Update an FTP context by parsing the URL and finding
1476new path it indicates. If there is an error in the 
1477protocol, hostname, port or other information, the
1478error is raised. It indicates a new connection has to
1479be established.</P
1480><P
1481></P
1482><DIV
1483CLASS="INFORMALTABLE"
1484><A
1485NAME="AEN17064"
1486></A
1487><P
1488></P
1489><TABLE
1490BORDER="0"
1491WIDTH="100%"
1492BGCOLOR="#FFD0D0"
1493CELLSPACING="0"
1494CELLPADDING="4"
1495CLASS="CALSTABLE"
1496><TBODY
1497><TR
1498><TD
1499WIDTH="20%"
1500ALIGN="RIGHT"
1501VALIGN="TOP"
1502><TT
1503CLASS="PARAMETER"
1504><I
1505>ctx</I
1506></TT
1507>&nbsp;:</TD
1508><TD
1509WIDTH="80%"
1510ALIGN="LEFT"
1511VALIGN="TOP"
1512>  an FTP context</TD
1513></TR
1514><TR
1515><TD
1516WIDTH="20%"
1517ALIGN="RIGHT"
1518VALIGN="TOP"
1519><TT
1520CLASS="PARAMETER"
1521><I
1522>URL</I
1523></TT
1524>&nbsp;:</TD
1525><TD
1526WIDTH="80%"
1527ALIGN="LEFT"
1528VALIGN="TOP"
1529>  The URL used to update the context</TD
1530></TR
1531><TR
1532><TD
1533WIDTH="20%"
1534ALIGN="RIGHT"
1535VALIGN="TOP"
1536><I
1537CLASS="EMPHASIS"
1538>Returns</I
1539> :</TD
1540><TD
1541WIDTH="80%"
1542ALIGN="LEFT"
1543VALIGN="TOP"
1544>0 if Ok, -1 in case of error (other host).</TD
1545></TR
1546></TBODY
1547></TABLE
1548><P
1549></P
1550></DIV
1551></DIV
1552><HR><DIV
1553CLASS="REFSECT2"
1554><A
1555NAME="AEN17081"
1556></A
1557><H3
1558><A
1559NAME="XMLNANOFTPGETRESPONSE"
1560></A
1561>xmlNanoFTPGetResponse ()</H3
1562><TABLE
1563BORDER="0"
1564BGCOLOR="#D6E8FF"
1565WIDTH="100%"
1566CELLPADDING="6"
1567><TR
1568><TD
1569><PRE
1570CLASS="PROGRAMLISTING"
1571>int         xmlNanoFTPGetResponse           (void *ctx);</PRE
1572></TD
1573></TR
1574></TABLE
1575><P
1576>Get the response from the FTP server after a command.</P
1577><P
1578></P
1579><DIV
1580CLASS="INFORMALTABLE"
1581><A
1582NAME="AEN17087"
1583></A
1584><P
1585></P
1586><TABLE
1587BORDER="0"
1588WIDTH="100%"
1589BGCOLOR="#FFD0D0"
1590CELLSPACING="0"
1591CELLPADDING="4"
1592CLASS="CALSTABLE"
1593><TBODY
1594><TR
1595><TD
1596WIDTH="20%"
1597ALIGN="RIGHT"
1598VALIGN="TOP"
1599><TT
1600CLASS="PARAMETER"
1601><I
1602>ctx</I
1603></TT
1604>&nbsp;:</TD
1605><TD
1606WIDTH="80%"
1607ALIGN="LEFT"
1608VALIGN="TOP"
1609>  an FTP context</TD
1610></TR
1611><TR
1612><TD
1613WIDTH="20%"
1614ALIGN="RIGHT"
1615VALIGN="TOP"
1616><I
1617CLASS="EMPHASIS"
1618>Returns</I
1619> :</TD
1620><TD
1621WIDTH="80%"
1622ALIGN="LEFT"
1623VALIGN="TOP"
1624>the code number</TD
1625></TR
1626></TBODY
1627></TABLE
1628><P
1629></P
1630></DIV
1631></DIV
1632><HR><DIV
1633CLASS="REFSECT2"
1634><A
1635NAME="AEN17100"
1636></A
1637><H3
1638><A
1639NAME="XMLNANOFTPCHECKRESPONSE"
1640></A
1641>xmlNanoFTPCheckResponse ()</H3
1642><TABLE
1643BORDER="0"
1644BGCOLOR="#D6E8FF"
1645WIDTH="100%"
1646CELLPADDING="6"
1647><TR
1648><TD
1649><PRE
1650CLASS="PROGRAMLISTING"
1651>int         xmlNanoFTPCheckResponse         (void *ctx);</PRE
1652></TD
1653></TR
1654></TABLE
1655><P
1656>Check if there is a response from the FTP server after a command.</P
1657><P
1658></P
1659><DIV
1660CLASS="INFORMALTABLE"
1661><A
1662NAME="AEN17106"
1663></A
1664><P
1665></P
1666><TABLE
1667BORDER="0"
1668WIDTH="100%"
1669BGCOLOR="#FFD0D0"
1670CELLSPACING="0"
1671CELLPADDING="4"
1672CLASS="CALSTABLE"
1673><TBODY
1674><TR
1675><TD
1676WIDTH="20%"
1677ALIGN="RIGHT"
1678VALIGN="TOP"
1679><TT
1680CLASS="PARAMETER"
1681><I
1682>ctx</I
1683></TT
1684>&nbsp;:</TD
1685><TD
1686WIDTH="80%"
1687ALIGN="LEFT"
1688VALIGN="TOP"
1689>  an FTP context</TD
1690></TR
1691><TR
1692><TD
1693WIDTH="20%"
1694ALIGN="RIGHT"
1695VALIGN="TOP"
1696><I
1697CLASS="EMPHASIS"
1698>Returns</I
1699> :</TD
1700><TD
1701WIDTH="80%"
1702ALIGN="LEFT"
1703VALIGN="TOP"
1704>the code number, or 0</TD
1705></TR
1706></TBODY
1707></TABLE
1708><P
1709></P
1710></DIV
1711></DIV
1712><HR><DIV
1713CLASS="REFSECT2"
1714><A
1715NAME="AEN17119"
1716></A
1717><H3
1718><A
1719NAME="XMLNANOFTPCWD"
1720></A
1721>xmlNanoFTPCwd ()</H3
1722><TABLE
1723BORDER="0"
1724BGCOLOR="#D6E8FF"
1725WIDTH="100%"
1726CELLPADDING="6"
1727><TR
1728><TD
1729><PRE
1730CLASS="PROGRAMLISTING"
1731>int         xmlNanoFTPCwd                   (void *ctx,
1732                                             char *directory);</PRE
1733></TD
1734></TR
1735></TABLE
1736><P
1737>Tries to change the remote directory</P
1738><P
1739></P
1740><DIV
1741CLASS="INFORMALTABLE"
1742><A
1743NAME="AEN17125"
1744></A
1745><P
1746></P
1747><TABLE
1748BORDER="0"
1749WIDTH="100%"
1750BGCOLOR="#FFD0D0"
1751CELLSPACING="0"
1752CELLPADDING="4"
1753CLASS="CALSTABLE"
1754><TBODY
1755><TR
1756><TD
1757WIDTH="20%"
1758ALIGN="RIGHT"
1759VALIGN="TOP"
1760><TT
1761CLASS="PARAMETER"
1762><I
1763>ctx</I
1764></TT
1765>&nbsp;:</TD
1766><TD
1767WIDTH="80%"
1768ALIGN="LEFT"
1769VALIGN="TOP"
1770>  an FTP context</TD
1771></TR
1772><TR
1773><TD
1774WIDTH="20%"
1775ALIGN="RIGHT"
1776VALIGN="TOP"
1777><TT
1778CLASS="PARAMETER"
1779><I
1780>directory</I
1781></TT
1782>&nbsp;:</TD
1783><TD
1784WIDTH="80%"
1785ALIGN="LEFT"
1786VALIGN="TOP"
1787>  a directory on the server</TD
1788></TR
1789><TR
1790><TD
1791WIDTH="20%"
1792ALIGN="RIGHT"
1793VALIGN="TOP"
1794><I
1795CLASS="EMPHASIS"
1796>Returns</I
1797> :</TD
1798><TD
1799WIDTH="80%"
1800ALIGN="LEFT"
1801VALIGN="TOP"
1802>-1 incase of error, 1 if CWD worked, 0 if it failed</TD
1803></TR
1804></TBODY
1805></TABLE
1806><P
1807></P
1808></DIV
1809></DIV
1810><HR><DIV
1811CLASS="REFSECT2"
1812><A
1813NAME="AEN17142"
1814></A
1815><H3
1816><A
1817NAME="XMLNANOFTPGETCONNECTION"
1818></A
1819>xmlNanoFTPGetConnection ()</H3
1820><TABLE
1821BORDER="0"
1822BGCOLOR="#D6E8FF"
1823WIDTH="100%"
1824CELLPADDING="6"
1825><TR
1826><TD
1827><PRE
1828CLASS="PROGRAMLISTING"
1829>int         xmlNanoFTPGetConnection         (void *ctx);</PRE
1830></TD
1831></TR
1832></TABLE
1833><P
1834>Try to open a data connection to the server. Currently only
1835passive mode is supported.</P
1836><P
1837></P
1838><DIV
1839CLASS="INFORMALTABLE"
1840><A
1841NAME="AEN17148"
1842></A
1843><P
1844></P
1845><TABLE
1846BORDER="0"
1847WIDTH="100%"
1848BGCOLOR="#FFD0D0"
1849CELLSPACING="0"
1850CELLPADDING="4"
1851CLASS="CALSTABLE"
1852><TBODY
1853><TR
1854><TD
1855WIDTH="20%"
1856ALIGN="RIGHT"
1857VALIGN="TOP"
1858><TT
1859CLASS="PARAMETER"
1860><I
1861>ctx</I
1862></TT
1863>&nbsp;:</TD
1864><TD
1865WIDTH="80%"
1866ALIGN="LEFT"
1867VALIGN="TOP"
1868>  an FTP context</TD
1869></TR
1870><TR
1871><TD
1872WIDTH="20%"
1873ALIGN="RIGHT"
1874VALIGN="TOP"
1875><I
1876CLASS="EMPHASIS"
1877>Returns</I
1878> :</TD
1879><TD
1880WIDTH="80%"
1881ALIGN="LEFT"
1882VALIGN="TOP"
1883>-1 incase of error, 0 otherwise</TD
1884></TR
1885></TBODY
1886></TABLE
1887><P
1888></P
1889></DIV
1890></DIV
1891><HR><DIV
1892CLASS="REFSECT2"
1893><A
1894NAME="AEN17161"
1895></A
1896><H3
1897><A
1898NAME="XMLNANOFTPCLOSECONNECTION"
1899></A
1900>xmlNanoFTPCloseConnection ()</H3
1901><TABLE
1902BORDER="0"
1903BGCOLOR="#D6E8FF"
1904WIDTH="100%"
1905CELLPADDING="6"
1906><TR
1907><TD
1908><PRE
1909CLASS="PROGRAMLISTING"
1910>int         xmlNanoFTPCloseConnection       (void *ctx);</PRE
1911></TD
1912></TR
1913></TABLE
1914><P
1915>Close the data connection from the server</P
1916><P
1917></P
1918><DIV
1919CLASS="INFORMALTABLE"
1920><A
1921NAME="AEN17167"
1922></A
1923><P
1924></P
1925><TABLE
1926BORDER="0"
1927WIDTH="100%"
1928BGCOLOR="#FFD0D0"
1929CELLSPACING="0"
1930CELLPADDING="4"
1931CLASS="CALSTABLE"
1932><TBODY
1933><TR
1934><TD
1935WIDTH="20%"
1936ALIGN="RIGHT"
1937VALIGN="TOP"
1938><TT
1939CLASS="PARAMETER"
1940><I
1941>ctx</I
1942></TT
1943>&nbsp;:</TD
1944><TD
1945WIDTH="80%"
1946ALIGN="LEFT"
1947VALIGN="TOP"
1948>  an FTP context</TD
1949></TR
1950><TR
1951><TD
1952WIDTH="20%"
1953ALIGN="RIGHT"
1954VALIGN="TOP"
1955><I
1956CLASS="EMPHASIS"
1957>Returns</I
1958> :</TD
1959><TD
1960WIDTH="80%"
1961ALIGN="LEFT"
1962VALIGN="TOP"
1963>-1 incase of error, 0 otherwise</TD
1964></TR
1965></TBODY
1966></TABLE
1967><P
1968></P
1969></DIV
1970></DIV
1971><HR><DIV
1972CLASS="REFSECT2"
1973><A
1974NAME="AEN17180"
1975></A
1976><H3
1977><A
1978NAME="XMLNANOFTPLIST"
1979></A
1980>xmlNanoFTPList ()</H3
1981><TABLE
1982BORDER="0"
1983BGCOLOR="#D6E8FF"
1984WIDTH="100%"
1985CELLPADDING="6"
1986><TR
1987><TD
1988><PRE
1989CLASS="PROGRAMLISTING"
1990>int         xmlNanoFTPList                  (void *ctx,
1991                                             <A
1992HREF="libxml-nanoftp.html#FTPLISTCALLBACK"
1993>ftpListCallback</A
1994> callback,
1995                                             void *userData,
1996                                             char *filename);</PRE
1997></TD
1998></TR
1999></TABLE
2000><P
2001>Do a listing on the server. All files info are passed back
2002in the callbacks.</P
2003><P
2004></P
2005><DIV
2006CLASS="INFORMALTABLE"
2007><A
2008NAME="AEN17187"
2009></A
2010><P
2011></P
2012><TABLE
2013BORDER="0"
2014WIDTH="100%"
2015BGCOLOR="#FFD0D0"
2016CELLSPACING="0"
2017CELLPADDING="4"
2018CLASS="CALSTABLE"
2019><TBODY
2020><TR
2021><TD
2022WIDTH="20%"
2023ALIGN="RIGHT"
2024VALIGN="TOP"
2025><TT
2026CLASS="PARAMETER"
2027><I
2028>ctx</I
2029></TT
2030>&nbsp;:</TD
2031><TD
2032WIDTH="80%"
2033ALIGN="LEFT"
2034VALIGN="TOP"
2035>  an FTP context</TD
2036></TR
2037><TR
2038><TD
2039WIDTH="20%"
2040ALIGN="RIGHT"
2041VALIGN="TOP"
2042><TT
2043CLASS="PARAMETER"
2044><I
2045>callback</I
2046></TT
2047>&nbsp;:</TD
2048><TD
2049WIDTH="80%"
2050ALIGN="LEFT"
2051VALIGN="TOP"
2052>  the user callback</TD
2053></TR
2054><TR
2055><TD
2056WIDTH="20%"
2057ALIGN="RIGHT"
2058VALIGN="TOP"
2059><TT
2060CLASS="PARAMETER"
2061><I
2062>userData</I
2063></TT
2064>&nbsp;:</TD
2065><TD
2066WIDTH="80%"
2067ALIGN="LEFT"
2068VALIGN="TOP"
2069>  the user callback data</TD
2070></TR
2071><TR
2072><TD
2073WIDTH="20%"
2074ALIGN="RIGHT"
2075VALIGN="TOP"
2076><TT
2077CLASS="PARAMETER"
2078><I
2079>filename</I
2080></TT
2081>&nbsp;:</TD
2082><TD
2083WIDTH="80%"
2084ALIGN="LEFT"
2085VALIGN="TOP"
2086>  optional files to list</TD
2087></TR
2088><TR
2089><TD
2090WIDTH="20%"
2091ALIGN="RIGHT"
2092VALIGN="TOP"
2093><I
2094CLASS="EMPHASIS"
2095>Returns</I
2096> :</TD
2097><TD
2098WIDTH="80%"
2099ALIGN="LEFT"
2100VALIGN="TOP"
2101>-1 incase of error, 0 otherwise</TD
2102></TR
2103></TBODY
2104></TABLE
2105><P
2106></P
2107></DIV
2108></DIV
2109><HR><DIV
2110CLASS="REFSECT2"
2111><A
2112NAME="AEN17212"
2113></A
2114><H3
2115><A
2116NAME="XMLNANOFTPGETSOCKET"
2117></A
2118>xmlNanoFTPGetSocket ()</H3
2119><TABLE
2120BORDER="0"
2121BGCOLOR="#D6E8FF"
2122WIDTH="100%"
2123CELLPADDING="6"
2124><TR
2125><TD
2126><PRE
2127CLASS="PROGRAMLISTING"
2128>int         xmlNanoFTPGetSocket             (void *ctx,
2129                                             const char *filename);</PRE
2130></TD
2131></TR
2132></TABLE
2133><P
2134>Initiate fetch of the given file from the server.</P
2135><P
2136></P
2137><DIV
2138CLASS="INFORMALTABLE"
2139><A
2140NAME="AEN17218"
2141></A
2142><P
2143></P
2144><TABLE
2145BORDER="0"
2146WIDTH="100%"
2147BGCOLOR="#FFD0D0"
2148CELLSPACING="0"
2149CELLPADDING="4"
2150CLASS="CALSTABLE"
2151><TBODY
2152><TR
2153><TD
2154WIDTH="20%"
2155ALIGN="RIGHT"
2156VALIGN="TOP"
2157><TT
2158CLASS="PARAMETER"
2159><I
2160>ctx</I
2161></TT
2162>&nbsp;:</TD
2163><TD
2164WIDTH="80%"
2165ALIGN="LEFT"
2166VALIGN="TOP"
2167>  an FTP context</TD
2168></TR
2169><TR
2170><TD
2171WIDTH="20%"
2172ALIGN="RIGHT"
2173VALIGN="TOP"
2174><TT
2175CLASS="PARAMETER"
2176><I
2177>filename</I
2178></TT
2179>&nbsp;:</TD
2180><TD
2181WIDTH="80%"
2182ALIGN="LEFT"
2183VALIGN="TOP"
2184>  the file to retrieve (or NULL if path is in context).</TD
2185></TR
2186><TR
2187><TD
2188WIDTH="20%"
2189ALIGN="RIGHT"
2190VALIGN="TOP"
2191><I
2192CLASS="EMPHASIS"
2193>Returns</I
2194> :</TD
2195><TD
2196WIDTH="80%"
2197ALIGN="LEFT"
2198VALIGN="TOP"
2199>the socket for the data connection, or &lt;0 in case of error</TD
2200></TR
2201></TBODY
2202></TABLE
2203><P
2204></P
2205></DIV
2206></DIV
2207><HR><DIV
2208CLASS="REFSECT2"
2209><A
2210NAME="AEN17235"
2211></A
2212><H3
2213><A
2214NAME="XMLNANOFTPGET"
2215></A
2216>xmlNanoFTPGet ()</H3
2217><TABLE
2218BORDER="0"
2219BGCOLOR="#D6E8FF"
2220WIDTH="100%"
2221CELLPADDING="6"
2222><TR
2223><TD
2224><PRE
2225CLASS="PROGRAMLISTING"
2226>int         xmlNanoFTPGet                   (void *ctx,
2227                                             <A
2228HREF="libxml-nanoftp.html#FTPDATACALLBACK"
2229>ftpDataCallback</A
2230> callback,
2231                                             void *userData,
2232                                             const char *filename);</PRE
2233></TD
2234></TR
2235></TABLE
2236><P
2237>Fetch the given file from the server. All data are passed back
2238in the callbacks. The last callback has a size of 0 block.</P
2239><P
2240></P
2241><DIV
2242CLASS="INFORMALTABLE"
2243><A
2244NAME="AEN17242"
2245></A
2246><P
2247></P
2248><TABLE
2249BORDER="0"
2250WIDTH="100%"
2251BGCOLOR="#FFD0D0"
2252CELLSPACING="0"
2253CELLPADDING="4"
2254CLASS="CALSTABLE"
2255><TBODY
2256><TR
2257><TD
2258WIDTH="20%"
2259ALIGN="RIGHT"
2260VALIGN="TOP"
2261><TT
2262CLASS="PARAMETER"
2263><I
2264>ctx</I
2265></TT
2266>&nbsp;:</TD
2267><TD
2268WIDTH="80%"
2269ALIGN="LEFT"
2270VALIGN="TOP"
2271>  an FTP context</TD
2272></TR
2273><TR
2274><TD
2275WIDTH="20%"
2276ALIGN="RIGHT"
2277VALIGN="TOP"
2278><TT
2279CLASS="PARAMETER"
2280><I
2281>callback</I
2282></TT
2283>&nbsp;:</TD
2284><TD
2285WIDTH="80%"
2286ALIGN="LEFT"
2287VALIGN="TOP"
2288>  the user callback</TD
2289></TR
2290><TR
2291><TD
2292WIDTH="20%"
2293ALIGN="RIGHT"
2294VALIGN="TOP"
2295><TT
2296CLASS="PARAMETER"
2297><I
2298>userData</I
2299></TT
2300>&nbsp;:</TD
2301><TD
2302WIDTH="80%"
2303ALIGN="LEFT"
2304VALIGN="TOP"
2305>  the user callback data</TD
2306></TR
2307><TR
2308><TD
2309WIDTH="20%"
2310ALIGN="RIGHT"
2311VALIGN="TOP"
2312><TT
2313CLASS="PARAMETER"
2314><I
2315>filename</I
2316></TT
2317>&nbsp;:</TD
2318><TD
2319WIDTH="80%"
2320ALIGN="LEFT"
2321VALIGN="TOP"
2322>  the file to retrieve</TD
2323></TR
2324><TR
2325><TD
2326WIDTH="20%"
2327ALIGN="RIGHT"
2328VALIGN="TOP"
2329><I
2330CLASS="EMPHASIS"
2331>Returns</I
2332> :</TD
2333><TD
2334WIDTH="80%"
2335ALIGN="LEFT"
2336VALIGN="TOP"
2337>-1 incase of error, 0 otherwise</TD
2338></TR
2339></TBODY
2340></TABLE
2341><P
2342></P
2343></DIV
2344></DIV
2345><HR><DIV
2346CLASS="REFSECT2"
2347><A
2348NAME="AEN17267"
2349></A
2350><H3
2351><A
2352NAME="XMLNANOFTPREAD"
2353></A
2354>xmlNanoFTPRead ()</H3
2355><TABLE
2356BORDER="0"
2357BGCOLOR="#D6E8FF"
2358WIDTH="100%"
2359CELLPADDING="6"
2360><TR
2361><TD
2362><PRE
2363CLASS="PROGRAMLISTING"
2364>int         xmlNanoFTPRead                  (void *ctx,
2365                                             void *dest,
2366                                             int len);</PRE
2367></TD
2368></TR
2369></TABLE
2370><P
2371>This function tries to read <TT
2372CLASS="PARAMETER"
2373><I
2374>len</I
2375></TT
2376> bytes from the existing FTP connection
2377and saves them in <TT
2378CLASS="PARAMETER"
2379><I
2380>dest</I
2381></TT
2382>. This is a blocking call.</P
2383><P
2384></P
2385><DIV
2386CLASS="INFORMALTABLE"
2387><A
2388NAME="AEN17275"
2389></A
2390><P
2391></P
2392><TABLE
2393BORDER="0"
2394WIDTH="100%"
2395BGCOLOR="#FFD0D0"
2396CELLSPACING="0"
2397CELLPADDING="4"
2398CLASS="CALSTABLE"
2399><TBODY
2400><TR
2401><TD
2402WIDTH="20%"
2403ALIGN="RIGHT"
2404VALIGN="TOP"
2405><TT
2406CLASS="PARAMETER"
2407><I
2408>ctx</I
2409></TT
2410>&nbsp;:</TD
2411><TD
2412WIDTH="80%"
2413ALIGN="LEFT"
2414VALIGN="TOP"
2415>  the FTP context</TD
2416></TR
2417><TR
2418><TD
2419WIDTH="20%"
2420ALIGN="RIGHT"
2421VALIGN="TOP"
2422><TT
2423CLASS="PARAMETER"
2424><I
2425>dest</I
2426></TT
2427>&nbsp;:</TD
2428><TD
2429WIDTH="80%"
2430ALIGN="LEFT"
2431VALIGN="TOP"
2432>  a buffer</TD
2433></TR
2434><TR
2435><TD
2436WIDTH="20%"
2437ALIGN="RIGHT"
2438VALIGN="TOP"
2439><TT
2440CLASS="PARAMETER"
2441><I
2442>len</I
2443></TT
2444>&nbsp;:</TD
2445><TD
2446WIDTH="80%"
2447ALIGN="LEFT"
2448VALIGN="TOP"
2449>  the buffer length</TD
2450></TR
2451><TR
2452><TD
2453WIDTH="20%"
2454ALIGN="RIGHT"
2455VALIGN="TOP"
2456><I
2457CLASS="EMPHASIS"
2458>Returns</I
2459> :</TD
2460><TD
2461WIDTH="80%"
2462ALIGN="LEFT"
2463VALIGN="TOP"
2464>the number of byte read. 0 is an indication of an end of connection.
2465-1 indicates a parameter error.</TD
2466></TR
2467></TBODY
2468></TABLE
2469><P
2470></P
2471></DIV
2472></DIV
2473></DIV
2474><DIV
2475CLASS="NAVFOOTER"
2476><BR
2477CLEAR="all"><BR><TABLE
2478WIDTH="100%"
2479BORDER="0"
2480BGCOLOR="#000000"
2481CELLPADDING="1"
2482CELLSPACING="0"
2483><TR
2484><TD
2485WIDTH="25%"
2486BGCOLOR="#C00000"
2487ALIGN="left"
2488><A
2489HREF="libxml-nanohttp.html"
2490><FONT
2491COLOR="#FFFFFF"
2492SIZE="3"
2493><B
2494>&#60;&#60;&#60; Previous Page</B
2495></FONT
2496></A
2497></TD
2498><TD
2499WIDTH="25%"
2500BGCOLOR="#0000C0"
2501ALIGN="center"
2502><FONT
2503COLOR="#FFFFFF"
2504SIZE="3"
2505><B
2506><A
2507HREF="book1.html"
2508><FONT
2509COLOR="#FFFFFF"
2510SIZE="3"
2511><B
2512>Home</B
2513></FONT
2514></A
2515></B
2516></FONT
2517></TD
2518><TD
2519WIDTH="25%"
2520BGCOLOR="#00C000"
2521ALIGN="center"
2522><FONT
2523COLOR="#FFFFFF"
2524SIZE="3"
2525><B
2526><A
2527HREF="libxml-lib.html"
2528><FONT
2529COLOR="#FFFFFF"
2530SIZE="3"
2531><B
2532>Up</B
2533></FONT
2534></A
2535></B
2536></FONT
2537></TD
2538><TD
2539WIDTH="25%"
2540BGCOLOR="#C00000"
2541ALIGN="right"
2542><A
2543HREF="libxml-xmlio.html"
2544><FONT
2545COLOR="#FFFFFF"
2546SIZE="3"
2547><B
2548>Next Page &#62;&#62;&#62;</B
2549></FONT
2550></A
2551></TD
2552></TR
2553><TR
2554><TD
2555COLSPAN="2"
2556ALIGN="left"
2557><FONT
2558COLOR="#FFFFFF"
2559SIZE="3"
2560><B
2561>nanohttp</B
2562></FONT
2563></TD
2564><TD
2565COLSPAN="2"
2566ALIGN="right"
2567><FONT
2568COLOR="#FFFFFF"
2569SIZE="3"
2570><B
2571>xmlIO</B
2572></FONT
2573></TD
2574></TR
2575></TABLE
2576></DIV
2577></BODY
2578></HTML
2579>