blob: ec19e6fe0c90814efc3f5f60245aa1a35c40b0e0 [file] [log] [blame]
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001<HTML
2><HEAD
3><TITLE
4>nanoftp</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK
Daniel Veillardaeea04f2000-01-25 19:27:27 +00008REL="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
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000114>nanoftp</H1
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000115><DIV
116CLASS="REFNAMEDIV"
117><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000118NAME="AEN11306"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000119></A
120><H2
121>Name</H2
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000122>nanoftp &#8212; </DIV
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000126NAME="AEN11309"
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 Veillard7e99c632000-10-06 12:59:53 +0000278NAME="AEN11338"
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 Veillard7e99c632000-10-06 12:59:53 +0000288NAME="AEN11341"
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000289></A
290><H2
291>Details</H2
292><DIV
293CLASS="REFSECT2"
294><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000295NAME="AEN11343"
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 Veillard7e99c632000-10-06 12:59:53 +0000554NAME="AEN11402"
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 Veillard7e99c632000-10-06 12:59:53 +0000648NAME="AEN11424"
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 Veillard7e99c632000-10-06 12:59:53 +0000678NAME="AEN11430"
Daniel Veillarde41f2b72000-01-30 20:00:07 +0000679></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
Daniel Veillard7e99c632000-10-06 12:59:53 +0000704NAME="AEN11435"
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"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000754>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000755></TR
756></TABLE
757><P
758></P
759></DIV
760></DIV
761><HR><DIV
762CLASS="REFSECT2"
763><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000764NAME="AEN11450"
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"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000814>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000815></TR
816></TABLE
817><P
818></P
819></DIV
820></DIV
821><HR><DIV
822CLASS="REFSECT2"
823><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000824NAME="AEN11465"
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"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000875>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000876></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"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000892>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000893></TR
894></TABLE
895><P
896></P
897></DIV
898></DIV
899><HR><DIV
900CLASS="REFSECT2"
901><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000902NAME="AEN11484"
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"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000952>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +0000953></TR
954></TABLE
955><P
956></P
957></DIV
958></DIV
959><HR><DIV
960CLASS="REFSECT2"
961><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000962NAME="AEN11499"
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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001012>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001013></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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001027>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001028></TR
1029></TABLE
1030><P
1031></P
1032></DIV
1033></DIV
1034><HR><DIV
1035CLASS="REFSECT2"
1036><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001037NAME="AEN11518"
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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001087>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001088></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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001102>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001103></TR
1104></TABLE
1105><P
1106></P
1107></DIV
1108></DIV
1109><HR><DIV
1110CLASS="REFSECT2"
1111><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001112NAME="AEN11537"
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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001162>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001163></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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001177>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001178></TR
1179></TABLE
1180><P
1181></P
1182></DIV
1183></DIV
1184><HR><DIV
1185CLASS="REFSECT2"
1186><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001187NAME="AEN11556"
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001188></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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001240>&nbsp;</TD
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001241></TR
1242></TABLE
1243><P
1244></P
1245></DIV
1246></DIV
1247><HR><DIV
1248CLASS="REFSECT2"
1249><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001250NAME="AEN11571"
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001251></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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001306>&nbsp;</TD
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001307></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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001323>&nbsp;</TD
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001324></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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001340>&nbsp;</TD
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001341></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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001357>&nbsp;</TD
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001358></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"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001374>&nbsp;</TD
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001375></TR
1376></TABLE
1377><P
1378></P
1379></DIV
1380></DIV
1381><HR><DIV
1382CLASS="REFSECT2"
1383><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001384NAME="AEN11602"
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001385></A
1386><H3
1387><A
1388NAME="XMLNANOFTPUPDATEURL"
1389></A
1390>xmlNanoFTPUpdateURL ()</H3
1391><TABLE
1392BORDER="0"
1393BGCOLOR="#D6E8FF"
1394WIDTH="100%"
1395CELLPADDING="6"
1396><TR
1397><TD
1398><PRE
1399CLASS="PROGRAMLISTING"
1400>int xmlNanoFTPUpdateURL (void *ctx,
1401 const char *URL);</PRE
1402></TD
1403></TR
1404></TABLE
1405><P
1406>Update an FTP context by parsing the URL and finding
1407new path it indicates. If there is an error in the
1408protocol, hostname, port or other information, the
1409error is raised. It indicates a new connection has to
1410be established.</P
1411><P
1412></P
1413><DIV
1414CLASS="INFORMALTABLE"
1415><P
1416></P
1417><TABLE
1418BORDER="0"
1419WIDTH="100%"
1420BGCOLOR="#FFD0D0"
1421CELLSPACING="0"
1422CELLPADDING="4"
1423CLASS="CALSTABLE"
1424><TR
1425><TD
1426WIDTH="20%"
1427ALIGN="RIGHT"
1428VALIGN="TOP"
1429><TT
1430CLASS="PARAMETER"
1431><I
1432>ctx</I
1433></TT
1434>&nbsp;:</TD
1435><TD
1436WIDTH="80%"
1437ALIGN="LEFT"
1438VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001439>&nbsp;</TD
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001440></TR
1441><TR
1442><TD
1443WIDTH="20%"
1444ALIGN="RIGHT"
1445VALIGN="TOP"
1446><TT
1447CLASS="PARAMETER"
1448><I
1449>URL</I
1450></TT
1451>&nbsp;:</TD
1452><TD
1453WIDTH="80%"
1454ALIGN="LEFT"
1455VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001456>&nbsp;</TD
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001457></TR
1458><TR
1459><TD
1460WIDTH="20%"
1461ALIGN="RIGHT"
1462VALIGN="TOP"
1463><I
1464CLASS="EMPHASIS"
1465>Returns</I
1466> :</TD
1467><TD
1468WIDTH="80%"
1469ALIGN="LEFT"
1470VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001471>&nbsp;</TD
Daniel Veillarde41f2b72000-01-30 20:00:07 +00001472></TR
1473></TABLE
1474><P
1475></P
1476></DIV
1477></DIV
1478><HR><DIV
1479CLASS="REFSECT2"
1480><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001481NAME="AEN11625"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001482></A
1483><H3
1484><A
1485NAME="XMLNANOFTPGETRESPONSE"
1486></A
1487>xmlNanoFTPGetResponse ()</H3
1488><TABLE
1489BORDER="0"
1490BGCOLOR="#D6E8FF"
1491WIDTH="100%"
1492CELLPADDING="6"
1493><TR
1494><TD
1495><PRE
1496CLASS="PROGRAMLISTING"
1497>int xmlNanoFTPGetResponse (void *ctx);</PRE
1498></TD
1499></TR
1500></TABLE
1501><P
1502>Get the response from the FTP server after a command.</P
1503><P
1504></P
1505><DIV
1506CLASS="INFORMALTABLE"
1507><P
1508></P
1509><TABLE
1510BORDER="0"
1511WIDTH="100%"
1512BGCOLOR="#FFD0D0"
1513CELLSPACING="0"
1514CELLPADDING="4"
1515CLASS="CALSTABLE"
1516><TR
1517><TD
1518WIDTH="20%"
1519ALIGN="RIGHT"
1520VALIGN="TOP"
1521><TT
1522CLASS="PARAMETER"
1523><I
1524>ctx</I
1525></TT
1526>&nbsp;:</TD
1527><TD
1528WIDTH="80%"
1529ALIGN="LEFT"
1530VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001531>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001532></TR
1533><TR
1534><TD
1535WIDTH="20%"
1536ALIGN="RIGHT"
1537VALIGN="TOP"
1538><I
1539CLASS="EMPHASIS"
1540>Returns</I
1541> :</TD
1542><TD
1543WIDTH="80%"
1544ALIGN="LEFT"
1545VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001546>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001547></TR
1548></TABLE
1549><P
1550></P
1551></DIV
1552></DIV
1553><HR><DIV
1554CLASS="REFSECT2"
1555><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001556NAME="AEN11644"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001557></A
1558><H3
1559><A
1560NAME="XMLNANOFTPCHECKRESPONSE"
1561></A
1562>xmlNanoFTPCheckResponse ()</H3
1563><TABLE
1564BORDER="0"
1565BGCOLOR="#D6E8FF"
1566WIDTH="100%"
1567CELLPADDING="6"
1568><TR
1569><TD
1570><PRE
1571CLASS="PROGRAMLISTING"
1572>int xmlNanoFTPCheckResponse (void *ctx);</PRE
1573></TD
1574></TR
1575></TABLE
1576><P
1577>Check if there is a response from the FTP server after a command.</P
1578><P
1579></P
1580><DIV
1581CLASS="INFORMALTABLE"
1582><P
1583></P
1584><TABLE
1585BORDER="0"
1586WIDTH="100%"
1587BGCOLOR="#FFD0D0"
1588CELLSPACING="0"
1589CELLPADDING="4"
1590CLASS="CALSTABLE"
1591><TR
1592><TD
1593WIDTH="20%"
1594ALIGN="RIGHT"
1595VALIGN="TOP"
1596><TT
1597CLASS="PARAMETER"
1598><I
1599>ctx</I
1600></TT
1601>&nbsp;:</TD
1602><TD
1603WIDTH="80%"
1604ALIGN="LEFT"
1605VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001606>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001607></TR
1608><TR
1609><TD
1610WIDTH="20%"
1611ALIGN="RIGHT"
1612VALIGN="TOP"
1613><I
1614CLASS="EMPHASIS"
1615>Returns</I
1616> :</TD
1617><TD
1618WIDTH="80%"
1619ALIGN="LEFT"
1620VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001621>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001622></TR
1623></TABLE
1624><P
1625></P
1626></DIV
1627></DIV
1628><HR><DIV
1629CLASS="REFSECT2"
1630><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001631NAME="AEN11663"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001632></A
1633><H3
1634><A
1635NAME="XMLNANOFTPCWD"
1636></A
1637>xmlNanoFTPCwd ()</H3
1638><TABLE
1639BORDER="0"
1640BGCOLOR="#D6E8FF"
1641WIDTH="100%"
1642CELLPADDING="6"
1643><TR
1644><TD
1645><PRE
1646CLASS="PROGRAMLISTING"
1647>int xmlNanoFTPCwd (void *ctx,
1648 char *directory);</PRE
1649></TD
1650></TR
1651></TABLE
1652><P
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001653>Tries to change the remote directory</P
1654><P
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001655></P
1656><DIV
1657CLASS="INFORMALTABLE"
1658><P
1659></P
1660><TABLE
1661BORDER="0"
1662WIDTH="100%"
1663BGCOLOR="#FFD0D0"
1664CELLSPACING="0"
1665CELLPADDING="4"
1666CLASS="CALSTABLE"
1667><TR
1668><TD
1669WIDTH="20%"
1670ALIGN="RIGHT"
1671VALIGN="TOP"
1672><TT
1673CLASS="PARAMETER"
1674><I
1675>ctx</I
1676></TT
1677>&nbsp;:</TD
1678><TD
1679WIDTH="80%"
1680ALIGN="LEFT"
1681VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001682>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001683></TR
1684><TR
1685><TD
1686WIDTH="20%"
1687ALIGN="RIGHT"
1688VALIGN="TOP"
1689><TT
1690CLASS="PARAMETER"
1691><I
1692>directory</I
1693></TT
1694>&nbsp;:</TD
1695><TD
1696WIDTH="80%"
1697ALIGN="LEFT"
1698VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001699>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001700></TR
1701><TR
1702><TD
1703WIDTH="20%"
1704ALIGN="RIGHT"
1705VALIGN="TOP"
1706><I
1707CLASS="EMPHASIS"
1708>Returns</I
1709> :</TD
1710><TD
1711WIDTH="80%"
1712ALIGN="LEFT"
1713VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001714>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001715></TR
1716></TABLE
1717><P
1718></P
1719></DIV
1720></DIV
1721><HR><DIV
1722CLASS="REFSECT2"
1723><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001724NAME="AEN11686"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001725></A
1726><H3
1727><A
1728NAME="XMLNANOFTPGETCONNECTION"
1729></A
1730>xmlNanoFTPGetConnection ()</H3
1731><TABLE
1732BORDER="0"
1733BGCOLOR="#D6E8FF"
1734WIDTH="100%"
1735CELLPADDING="6"
1736><TR
1737><TD
1738><PRE
1739CLASS="PROGRAMLISTING"
1740>int xmlNanoFTPGetConnection (void *ctx);</PRE
1741></TD
1742></TR
1743></TABLE
1744><P
1745>Try to open a data connection to the server. Currently only
1746passive mode is supported.</P
1747><P
1748></P
1749><DIV
1750CLASS="INFORMALTABLE"
1751><P
1752></P
1753><TABLE
1754BORDER="0"
1755WIDTH="100%"
1756BGCOLOR="#FFD0D0"
1757CELLSPACING="0"
1758CELLPADDING="4"
1759CLASS="CALSTABLE"
1760><TR
1761><TD
1762WIDTH="20%"
1763ALIGN="RIGHT"
1764VALIGN="TOP"
1765><TT
1766CLASS="PARAMETER"
1767><I
1768>ctx</I
1769></TT
1770>&nbsp;:</TD
1771><TD
1772WIDTH="80%"
1773ALIGN="LEFT"
1774VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001775>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001776></TR
1777><TR
1778><TD
1779WIDTH="20%"
1780ALIGN="RIGHT"
1781VALIGN="TOP"
1782><I
1783CLASS="EMPHASIS"
1784>Returns</I
1785> :</TD
1786><TD
1787WIDTH="80%"
1788ALIGN="LEFT"
1789VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001790>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001791></TR
1792></TABLE
1793><P
1794></P
1795></DIV
1796></DIV
1797><HR><DIV
1798CLASS="REFSECT2"
1799><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001800NAME="AEN11705"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001801></A
1802><H3
1803><A
1804NAME="XMLNANOFTPCLOSECONNECTION"
1805></A
1806>xmlNanoFTPCloseConnection ()</H3
1807><TABLE
1808BORDER="0"
1809BGCOLOR="#D6E8FF"
1810WIDTH="100%"
1811CELLPADDING="6"
1812><TR
1813><TD
1814><PRE
1815CLASS="PROGRAMLISTING"
1816>int xmlNanoFTPCloseConnection (void *ctx);</PRE
1817></TD
1818></TR
1819></TABLE
1820><P
1821>Close the data connection from the server</P
1822><P
1823></P
1824><DIV
1825CLASS="INFORMALTABLE"
1826><P
1827></P
1828><TABLE
1829BORDER="0"
1830WIDTH="100%"
1831BGCOLOR="#FFD0D0"
1832CELLSPACING="0"
1833CELLPADDING="4"
1834CLASS="CALSTABLE"
1835><TR
1836><TD
1837WIDTH="20%"
1838ALIGN="RIGHT"
1839VALIGN="TOP"
1840><TT
1841CLASS="PARAMETER"
1842><I
1843>ctx</I
1844></TT
1845>&nbsp;:</TD
1846><TD
1847WIDTH="80%"
1848ALIGN="LEFT"
1849VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001850>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001851></TR
1852><TR
1853><TD
1854WIDTH="20%"
1855ALIGN="RIGHT"
1856VALIGN="TOP"
1857><I
1858CLASS="EMPHASIS"
1859>Returns</I
1860> :</TD
1861><TD
1862WIDTH="80%"
1863ALIGN="LEFT"
1864VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001865>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001866></TR
1867></TABLE
1868><P
1869></P
1870></DIV
1871></DIV
1872><HR><DIV
1873CLASS="REFSECT2"
1874><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001875NAME="AEN11724"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001876></A
1877><H3
1878><A
1879NAME="XMLNANOFTPLIST"
1880></A
1881>xmlNanoFTPList ()</H3
1882><TABLE
1883BORDER="0"
1884BGCOLOR="#D6E8FF"
1885WIDTH="100%"
1886CELLPADDING="6"
1887><TR
1888><TD
1889><PRE
1890CLASS="PROGRAMLISTING"
1891>int xmlNanoFTPList (void *ctx,
1892 <A
1893HREF="gnome-xml-nanoftp.html#FTPLISTCALLBACK"
1894>ftpListCallback</A
1895> callback,
1896 void *userData,
1897 char *filename);</PRE
1898></TD
1899></TR
1900></TABLE
1901><P
1902>Do a listing on the server. All files info are passed back
1903in the callbacks.</P
1904><P
1905></P
1906><DIV
1907CLASS="INFORMALTABLE"
1908><P
1909></P
1910><TABLE
1911BORDER="0"
1912WIDTH="100%"
1913BGCOLOR="#FFD0D0"
1914CELLSPACING="0"
1915CELLPADDING="4"
1916CLASS="CALSTABLE"
1917><TR
1918><TD
1919WIDTH="20%"
1920ALIGN="RIGHT"
1921VALIGN="TOP"
1922><TT
1923CLASS="PARAMETER"
1924><I
1925>ctx</I
1926></TT
1927>&nbsp;:</TD
1928><TD
1929WIDTH="80%"
1930ALIGN="LEFT"
1931VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001932>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001933></TR
1934><TR
1935><TD
1936WIDTH="20%"
1937ALIGN="RIGHT"
1938VALIGN="TOP"
1939><TT
1940CLASS="PARAMETER"
1941><I
1942>callback</I
1943></TT
1944>&nbsp;:</TD
1945><TD
1946WIDTH="80%"
1947ALIGN="LEFT"
1948VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001949>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001950></TR
1951><TR
1952><TD
1953WIDTH="20%"
1954ALIGN="RIGHT"
1955VALIGN="TOP"
1956><TT
1957CLASS="PARAMETER"
1958><I
1959>userData</I
1960></TT
1961>&nbsp;:</TD
1962><TD
1963WIDTH="80%"
1964ALIGN="LEFT"
1965VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001966>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001967></TR
1968><TR
1969><TD
1970WIDTH="20%"
1971ALIGN="RIGHT"
1972VALIGN="TOP"
1973><TT
1974CLASS="PARAMETER"
1975><I
1976>filename</I
1977></TT
1978>&nbsp;:</TD
1979><TD
1980WIDTH="80%"
1981ALIGN="LEFT"
1982VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001983>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001984></TR
1985><TR
1986><TD
1987WIDTH="20%"
1988ALIGN="RIGHT"
1989VALIGN="TOP"
1990><I
1991CLASS="EMPHASIS"
1992>Returns</I
1993> :</TD
1994><TD
1995WIDTH="80%"
1996ALIGN="LEFT"
1997VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001998>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00001999></TR
2000></TABLE
2001><P
2002></P
2003></DIV
2004></DIV
2005><HR><DIV
2006CLASS="REFSECT2"
2007><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002008NAME="AEN11756"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002009></A
2010><H3
2011><A
2012NAME="XMLNANOFTPGETSOCKET"
2013></A
2014>xmlNanoFTPGetSocket ()</H3
2015><TABLE
2016BORDER="0"
2017BGCOLOR="#D6E8FF"
2018WIDTH="100%"
2019CELLPADDING="6"
2020><TR
2021><TD
2022><PRE
2023CLASS="PROGRAMLISTING"
2024>int xmlNanoFTPGetSocket (void *ctx,
2025 const char *filename);</PRE
2026></TD
2027></TR
2028></TABLE
2029><P
2030>Initiate fetch of the given file from the server.</P
2031><P
2032></P
2033><DIV
2034CLASS="INFORMALTABLE"
2035><P
2036></P
2037><TABLE
2038BORDER="0"
2039WIDTH="100%"
2040BGCOLOR="#FFD0D0"
2041CELLSPACING="0"
2042CELLPADDING="4"
2043CLASS="CALSTABLE"
2044><TR
2045><TD
2046WIDTH="20%"
2047ALIGN="RIGHT"
2048VALIGN="TOP"
2049><TT
2050CLASS="PARAMETER"
2051><I
2052>ctx</I
2053></TT
2054>&nbsp;:</TD
2055><TD
2056WIDTH="80%"
2057ALIGN="LEFT"
2058VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002059>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002060></TR
2061><TR
2062><TD
2063WIDTH="20%"
2064ALIGN="RIGHT"
2065VALIGN="TOP"
2066><TT
2067CLASS="PARAMETER"
2068><I
2069>filename</I
2070></TT
2071>&nbsp;:</TD
2072><TD
2073WIDTH="80%"
2074ALIGN="LEFT"
2075VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002076>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002077></TR
2078><TR
2079><TD
2080WIDTH="20%"
2081ALIGN="RIGHT"
2082VALIGN="TOP"
2083><I
2084CLASS="EMPHASIS"
2085>Returns</I
2086> :</TD
2087><TD
2088WIDTH="80%"
2089ALIGN="LEFT"
2090VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002091>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002092></TR
2093></TABLE
2094><P
2095></P
2096></DIV
2097></DIV
2098><HR><DIV
2099CLASS="REFSECT2"
2100><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002101NAME="AEN11779"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002102></A
2103><H3
2104><A
2105NAME="XMLNANOFTPGET"
2106></A
2107>xmlNanoFTPGet ()</H3
2108><TABLE
2109BORDER="0"
2110BGCOLOR="#D6E8FF"
2111WIDTH="100%"
2112CELLPADDING="6"
2113><TR
2114><TD
2115><PRE
2116CLASS="PROGRAMLISTING"
2117>int xmlNanoFTPGet (void *ctx,
2118 <A
2119HREF="gnome-xml-nanoftp.html#FTPDATACALLBACK"
2120>ftpDataCallback</A
2121> callback,
2122 void *userData,
2123 const char *filename);</PRE
2124></TD
2125></TR
2126></TABLE
2127><P
2128>Fetch the given file from the server. All data are passed back
2129in the callbacks. The last callback has a size of 0 block.</P
2130><P
2131></P
2132><DIV
2133CLASS="INFORMALTABLE"
2134><P
2135></P
2136><TABLE
2137BORDER="0"
2138WIDTH="100%"
2139BGCOLOR="#FFD0D0"
2140CELLSPACING="0"
2141CELLPADDING="4"
2142CLASS="CALSTABLE"
2143><TR
2144><TD
2145WIDTH="20%"
2146ALIGN="RIGHT"
2147VALIGN="TOP"
2148><TT
2149CLASS="PARAMETER"
2150><I
2151>ctx</I
2152></TT
2153>&nbsp;:</TD
2154><TD
2155WIDTH="80%"
2156ALIGN="LEFT"
2157VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002158>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002159></TR
2160><TR
2161><TD
2162WIDTH="20%"
2163ALIGN="RIGHT"
2164VALIGN="TOP"
2165><TT
2166CLASS="PARAMETER"
2167><I
2168>callback</I
2169></TT
2170>&nbsp;:</TD
2171><TD
2172WIDTH="80%"
2173ALIGN="LEFT"
2174VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002175>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002176></TR
2177><TR
2178><TD
2179WIDTH="20%"
2180ALIGN="RIGHT"
2181VALIGN="TOP"
2182><TT
2183CLASS="PARAMETER"
2184><I
2185>userData</I
2186></TT
2187>&nbsp;:</TD
2188><TD
2189WIDTH="80%"
2190ALIGN="LEFT"
2191VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002192>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002193></TR
2194><TR
2195><TD
2196WIDTH="20%"
2197ALIGN="RIGHT"
2198VALIGN="TOP"
2199><TT
2200CLASS="PARAMETER"
2201><I
2202>filename</I
2203></TT
2204>&nbsp;:</TD
2205><TD
2206WIDTH="80%"
2207ALIGN="LEFT"
2208VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002209>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002210></TR
2211><TR
2212><TD
2213WIDTH="20%"
2214ALIGN="RIGHT"
2215VALIGN="TOP"
2216><I
2217CLASS="EMPHASIS"
2218>Returns</I
2219> :</TD
2220><TD
2221WIDTH="80%"
2222ALIGN="LEFT"
2223VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002224>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002225></TR
2226></TABLE
2227><P
2228></P
2229></DIV
2230></DIV
2231><HR><DIV
2232CLASS="REFSECT2"
2233><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002234NAME="AEN11811"
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002235></A
2236><H3
2237><A
2238NAME="XMLNANOFTPREAD"
2239></A
2240>xmlNanoFTPRead ()</H3
2241><TABLE
2242BORDER="0"
2243BGCOLOR="#D6E8FF"
2244WIDTH="100%"
2245CELLPADDING="6"
2246><TR
2247><TD
2248><PRE
2249CLASS="PROGRAMLISTING"
2250>int xmlNanoFTPRead (void *ctx,
2251 void *dest,
2252 int len);</PRE
2253></TD
2254></TR
2255></TABLE
2256><P
2257>This function tries to read <TT
2258CLASS="PARAMETER"
2259><I
2260>len</I
2261></TT
2262> bytes from the existing FTP connection
2263and saves them in <TT
2264CLASS="PARAMETER"
2265><I
2266>dest</I
2267></TT
2268>. This is a blocking call.</P
2269><P
2270></P
2271><DIV
2272CLASS="INFORMALTABLE"
2273><P
2274></P
2275><TABLE
2276BORDER="0"
2277WIDTH="100%"
2278BGCOLOR="#FFD0D0"
2279CELLSPACING="0"
2280CELLPADDING="4"
2281CLASS="CALSTABLE"
2282><TR
2283><TD
2284WIDTH="20%"
2285ALIGN="RIGHT"
2286VALIGN="TOP"
2287><TT
2288CLASS="PARAMETER"
2289><I
2290>ctx</I
2291></TT
2292>&nbsp;:</TD
2293><TD
2294WIDTH="80%"
2295ALIGN="LEFT"
2296VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002297>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002298></TR
2299><TR
2300><TD
2301WIDTH="20%"
2302ALIGN="RIGHT"
2303VALIGN="TOP"
2304><TT
2305CLASS="PARAMETER"
2306><I
2307>dest</I
2308></TT
2309>&nbsp;:</TD
2310><TD
2311WIDTH="80%"
2312ALIGN="LEFT"
2313VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002314>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002315></TR
2316><TR
2317><TD
2318WIDTH="20%"
2319ALIGN="RIGHT"
2320VALIGN="TOP"
2321><TT
2322CLASS="PARAMETER"
2323><I
2324>len</I
2325></TT
2326>&nbsp;:</TD
2327><TD
2328WIDTH="80%"
2329ALIGN="LEFT"
2330VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002331>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002332></TR
2333><TR
2334><TD
2335WIDTH="20%"
2336ALIGN="RIGHT"
2337VALIGN="TOP"
2338><I
2339CLASS="EMPHASIS"
2340>Returns</I
2341> :</TD
2342><TD
2343WIDTH="80%"
2344ALIGN="LEFT"
2345VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002346>&nbsp;</TD
Daniel Veillardaeea04f2000-01-25 19:27:27 +00002347></TR
2348></TABLE
2349><P
2350></P
2351></DIV
2352></DIV
2353></DIV
2354><DIV
2355CLASS="NAVFOOTER"
2356><BR
2357CLEAR="all"><BR><TABLE
2358WIDTH="100%"
2359BORDER="0"
2360BGCOLOR="#000000"
2361CELLPADDING="1"
2362CELLSPACING="0"
2363><TR
2364><TD
2365WIDTH="25%"
2366BGCOLOR="#C00000"
2367ALIGN="left"
2368><A
2369HREF="gnome-xml-nanohttp.html"
2370><FONT
2371COLOR="#FFFFFF"
2372SIZE="3"
2373><B
2374>&#60;&#60;&#60; Previous Page</B
2375></FONT
2376></A
2377></TD
2378><TD
2379WIDTH="25%"
2380BGCOLOR="#0000C0"
2381ALIGN="center"
2382><FONT
2383COLOR="#FFFFFF"
2384SIZE="3"
2385><B
2386><A
2387HREF="book1.html"
2388><FONT
2389COLOR="#FFFFFF"
2390SIZE="3"
2391><B
2392>Home</B
2393></FONT
2394></A
2395></B
2396></FONT
2397></TD
2398><TD
2399WIDTH="25%"
2400BGCOLOR="#00C000"
2401ALIGN="center"
2402><FONT
2403COLOR="#FFFFFF"
2404SIZE="3"
2405><B
2406><A
2407HREF="libxml-lib.html"
2408><FONT
2409COLOR="#FFFFFF"
2410SIZE="3"
2411><B
2412>Up</B
2413></FONT
2414></A
2415></B
2416></FONT
2417></TD
2418><TD
2419WIDTH="25%"
2420BGCOLOR="#C00000"
2421ALIGN="right"
2422><A
2423HREF="gnome-xml-xmlio.html"
2424><FONT
2425COLOR="#FFFFFF"
2426SIZE="3"
2427><B
2428>Next Page &#62;&#62;&#62;</B
2429></FONT
2430></A
2431></TD
2432></TR
2433><TR
2434><TD
2435COLSPAN="2"
2436ALIGN="left"
2437><FONT
2438COLOR="#FFFFFF"
2439SIZE="3"
2440><B
2441>nanohttp</B
2442></FONT
2443></TD
2444><TD
2445COLSPAN="2"
2446ALIGN="right"
2447><FONT
2448COLOR="#FFFFFF"
2449SIZE="3"
2450><B
2451>xmlIO</B
2452></FONT
2453></TD
2454></TR
2455></TABLE
2456></DIV
2457></BODY
2458></HTML
2459>