⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftp_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ftp.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>ftp.h</h1><a href="ftp_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * ftp.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * File Transfer Protocol Server/Client channel classes</span>00005 <span class="comment"> *  As per RFC 959 and RFC 1123</span>00006 <span class="comment"> *</span>00007 <span class="comment"> * Portable Windows Library</span>00008 <span class="comment"> *</span>00009 <span class="comment"> * Copyright (c) 1993-2002 Equivalence Pty. Ltd.</span>00010 <span class="comment"> *</span>00011 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00012 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00013 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00014 <span class="comment"> * http://www.mozilla.org/MPL/</span>00015 <span class="comment"> *</span>00016 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00017 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00018 <span class="comment"> * the License for the specific language governing rights and limitations</span>00019 <span class="comment"> * under the License.</span>00020 <span class="comment"> *</span>00021 <span class="comment"> * The Original Code is Portable Windows Library.</span>00022 <span class="comment"> *</span>00023 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00024 <span class="comment"> *</span>00025 <span class="comment"> * Contributor(s): ______________________________________.</span>00026 <span class="comment"> *</span>00027 <span class="comment"> * $Log: ftp.h,v $</span>00028 <span class="comment"> * Revision 1.16  2003/09/17 05:43:49  csoutheren</span>00029 <span class="comment"> * Removed recursive includes</span>00030 <span class="comment"> *</span>00031 <span class="comment"> * Revision 1.15  2002/11/06 22:47:23  robertj</span>00032 <span class="comment"> * Fixed header comment (copyright etc)</span>00033 <span class="comment"> *</span>00034 <span class="comment"> * Revision 1.14  2002/09/16 01:08:59  robertj</span>00035 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00036 <span class="comment"> *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00037 <span class="comment"> *</span>00038 <span class="comment"> * Revision 1.13  2001/09/10 00:28:21  robertj</span>00039 <span class="comment"> * Fixed extra CR in comments.</span>00040 <span class="comment"> *</span>00041 <span class="comment"> * Revision 1.12  2000/06/21 01:01:21  robertj</span>00042 <span class="comment"> * AIX port, thanks Wolfgang Platzer (wolfgang.platzer@infonova.at).</span>00043 <span class="comment"> *</span>00044 <span class="comment"> * Revision 1.11  1999/03/09 08:01:46  robertj</span>00045 <span class="comment"> * Changed comments for doc++ support (more to come).</span>00046 <span class="comment"> *</span>00047 <span class="comment"> * Revision 1.10  1999/02/16 08:07:10  robertj</span>00048 <span class="comment"> * MSVC 6.0 compatibility changes.</span>00049 <span class="comment"> *</span>00050 <span class="comment"> * Revision 1.9  1998/11/30 02:50:45  robertj</span>00051 <span class="comment"> * New directory structure</span>00052 <span class="comment"> *</span>00053 <span class="comment"> * Revision 1.8  1998/09/23 06:19:26  robertj</span>00054 <span class="comment"> * Added open source copyright license.</span>00055 <span class="comment"> *</span>00056 <span class="comment"> * Revision 1.7  1996/10/26 01:39:41  robertj</span>00057 <span class="comment"> * Added check for security breach using 3 way FTP transfer or use of privileged PORT.</span>00058 <span class="comment"> *</span>00059 <span class="comment"> * Revision 1.6  1996/09/14 13:09:08  robertj</span>00060 <span class="comment"> * Major upgrade:</span>00061 <span class="comment"> *   rearranged sockets to help support IPX.</span>00062 <span class="comment"> *   added indirect channel class and moved all protocols to descend from it,</span>00063 <span class="comment"> *   separating the protocol from the low level byte transport.</span>00064 <span class="comment"> *</span>00065 <span class="comment"> * Revision 1.5  1996/05/23 09:56:24  robertj</span>00066 <span class="comment"> * Changed FTP so can do passive/active mode on all data transfers.</span>00067 <span class="comment"> *</span>00068 <span class="comment"> * Revision 1.4  1996/03/31 08:45:57  robertj</span>00069 <span class="comment"> * Added QUIT command sent on FTP socket close.</span>00070 <span class="comment"> *</span>00071 <span class="comment"> * Revision 1.3  1996/03/26 00:50:28  robertj</span>00072 <span class="comment"> * FTP Client Implementation.</span>00073 <span class="comment"> *</span>00074 <span class="comment"> * Revision 1.2  1996/03/18 13:33:10  robertj</span>00075 <span class="comment"> * Fixed incompatibilities to GNU compiler where PINDEX != int.</span>00076 <span class="comment"> *</span>00077 <span class="comment"> * Revision 1.1  1996/03/04 12:14:18  robertj</span>00078 <span class="comment"> * Initial revision</span>00079 <span class="comment"> *</span>00080 <span class="comment"> */</span>00081 00082 <span class="preprocessor">#ifndef _PFTPSOCKET</span>00083 <span class="preprocessor"></span><span class="preprocessor">#define _PFTPSOCKET</span>00084 <span class="preprocessor"></span>00085 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00086 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00087 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00088 <span class="preprocessor"></span>00089 <span class="preprocessor">#include &lt;<a class="code" href="inetprot_8h.html">ptclib/inetprot.h</a>&gt;</span>00090 <span class="preprocessor">#include "<a class="code" href="sockets_8h.html">ptlib/sockets.h</a>"</span>00091 00092 <a name="l00096"></a><a class="code" href="classPFTP.html">00096</a> <span class="keyword">class </span><a class="code" href="classPFTP.html">PFTP</a> : <span class="keyword">public</span> <a class="code" href="classPInternetProtocol.html">PInternetProtocol</a>00097 {00098   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPFTP.html">PFTP</a>, <a class="code" href="classPInternetProtocol.html">PInternetProtocol</a>);00099   <span class="keyword">public</span>:<a name="l00101"></a><a class="code" href="classPFTP.html#s41">00101</a>     <span class="keyword">enum</span> <a class="code" href="classPFTP.html#s41">Commands</a> { 00102       <a class="code" href="classPFTP.html#s41s0">USER</a>, <a class="code" href="classPFTP.html#s41s1">PASS</a>, <a class="code" href="classPFTP.html#s41s2">ACCT</a>, <a class="code" href="classPFTP.html#s41s3">CWD</a>, <a class="code" href="classPFTP.html#s41s4">CDUP</a>, <a class="code" href="classPFTP.html#s41s5">SMNT</a>, <a class="code" href="classPFTP.html#s41s6">QUIT</a>, <a class="code" href="classPFTP.html#s41s7">REIN</a>, <a class="code" href="classPFTP.html#s41s8">PORT</a>, <a class="code" href="classPFTP.html#s41s9">PASV</a>, <a class="code" href="classPFTP.html#s41s10">TYPE</a>,00103       <a class="code" href="classPFTP.html#s41s11">STRU</a>, <a class="code" href="classPFTP.html#s41s12">MODE</a>, <a class="code" href="classPFTP.html#s41s13">RETR</a>, <a class="code" href="classPFTP.html#s41s14">STOR</a>, <a class="code" href="classPFTP.html#s41s15">STOU</a>, <a class="code" href="classPFTP.html#s41s16">APPE</a>, <a class="code" href="classPFTP.html#s41s17">ALLO</a>, <a class="code" href="classPFTP.html#s41s18">REST</a>, <a class="code" href="classPFTP.html#s41s19">RNFR</a>, <a class="code" href="classPFTP.html#s41s20">RNTO</a>, <a class="code" href="classPFTP.html#s41s21">ABOR</a>,00104       <a class="code" href="classPFTP.html#s41s22">DELE</a>, <a class="code" href="classPFTP.html#s41s23">RMD</a>, <a class="code" href="classPFTP.html#s41s24">MKD</a>, <a class="code" href="classPFTP.html#s41s25">PWD</a>, <a class="code" href="classPFTP.html#s41s26">LIST</a>, <a class="code" href="classPFTP.html#s41s27">NLST</a>, <a class="code" href="classPFTP.html#s41s28">SITE</a>, <a class="code" href="classPFTP.html#s41s29">SYST</a>, <a class="code" href="classPFTP.html#s41s30">STATcmd</a>, <a class="code" href="classPFTP.html#s41s31">HELP</a>, <a class="code" href="classPFTP.html#s41s32">NOOP</a>,00105       <a class="code" href="classPFTP.html#s41s33">NumCommands</a>00106     };00107 <a name="l00109"></a><a class="code" href="classPFTP.html#s42">00109</a>     <span class="keyword">enum</span> <a class="code" href="classPFTP.html#s42">RepresentationType</a> {00110       <a class="code" href="classPFTP.html#s42s34">ASCII</a>,00111       <a class="code" href="classPFTP.html#s42s35">EBCDIC</a>,00112       <a class="code" href="classPFTP.html#s42s36">Image</a>00113     };00114 <a name="l00116"></a><a class="code" href="classPFTP.html#s43">00116</a>     <span class="keyword">enum</span> <a class="code" href="classPFTP.html#s43">DataChannelType</a> {00117       <a class="code" href="classPFTP.html#s43s37">NormalPort</a>,00118       <a class="code" href="classPFTP.html#s43s38">Passive</a>00119     };00120 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -