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