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