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