📄 telnet_8h-source.html
字号:
<!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>telnet.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> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>telnet.h</h1><a href="telnet_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * telnet.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * TELNET Socket class.</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 1993-2002 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: telnet.h,v $</span>00027 <span class="comment"> * Revision 1.23 2002/11/06 22:47:24 robertj</span>00028 <span class="comment"> * Fixed header comment (copyright etc)</span>00029 <span class="comment"> *</span>00030 <span class="comment"> * Revision 1.22 2002/09/16 01:08:59 robertj</span>00031 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00032 <span class="comment"> * platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00033 <span class="comment"> *</span>00034 <span class="comment"> * Revision 1.21 1999/03/09 08:01:47 robertj</span>00035 <span class="comment"> * Changed comments for doc++ support (more to come).</span>00036 <span class="comment"> *</span>00037 <span class="comment"> * Revision 1.20 1999/02/16 08:07:10 robertj</span>00038 <span class="comment"> * MSVC 6.0 compatibility changes.</span>00039 <span class="comment"> *</span>00040 <span class="comment"> * Revision 1.19 1998/11/30 02:50:56 robertj</span>00041 <span class="comment"> * New directory structure</span>00042 <span class="comment"> *</span>00043 <span class="comment"> * Revision 1.18 1998/09/23 06:20:04 robertj</span>00044 <span class="comment"> * Added open source copyright license.</span>00045 <span class="comment"> *</span>00046 <span class="comment"> * Revision 1.17 1996/08/08 10:08:54 robertj</span>00047 <span class="comment"> * Directory structure changes for common files.</span>00048 <span class="comment"> *</span>00049 <span class="comment"> * Revision 1.16 1995/06/17 11:13:32 robertj</span>00050 <span class="comment"> * Documentation update.</span>00051 <span class="comment"> *</span>00052 <span class="comment"> * Revision 1.15 1995/06/17 00:47:38 robertj</span>00053 <span class="comment"> * Changed overloaded Open() calls to 3 separate function names.</span>00054 <span class="comment"> * More logical design of port numbers and service names.</span>00055 <span class="comment"> *</span>00056 <span class="comment"> * Revision 1.14 1995/06/04 12:46:26 robertj</span>00057 <span class="comment"> * Slight redesign of port numbers on sockets.</span>00058 <span class="comment"> *</span>00059 <span class="comment"> * Revision 1.13 1995/04/25 11:12:30 robertj</span>00060 <span class="comment"> * Fixed functions hiding ancestor virtuals.</span>00061 <span class="comment"> *</span>00062 <span class="comment"> * Revision 1.12 1995/04/01 08:32:10 robertj</span>00063 <span class="comment"> * Finally got a working TELNET.</span>00064 <span class="comment"> *</span>00065 <span class="comment"> * Revision 1.11 1995/03/18 06:27:50 robertj</span>00066 <span class="comment"> * Rewrite of telnet socket protocol according to RFC1143.</span>00067 <span class="comment"> *</span>00068 <span class="comment"> * Revision 1.10 1995/03/14 12:42:47 robertj</span>00069 <span class="comment"> * Updated documentation to use HTML codes.</span>00070 <span class="comment"> *</span>00071 <span class="comment"> * Revision 1.9 1995/02/21 11:25:33 robertj</span>00072 <span class="comment"> * Further implementation of telnet socket, feature complete now.</span>00073 <span class="comment"> *</span>00074 <span class="comment"> * Revision 1.8 1995/01/03 09:36:23 robertj</span>00075 <span class="comment"> * Documentation.</span>00076 <span class="comment"> *</span>00077 <span class="comment"> * Revision 1.7 1995/01/01 01:07:33 robertj</span>00078 <span class="comment"> * More implementation.</span>00079 <span class="comment"> *</span>00080 <span class="comment"> * Revision 1.6 1994/11/28 12:38:59 robertj</span>00081 <span class="comment"> * Added DONT and WONT states.</span>00082 <span class="comment"> *</span>00083 <span class="comment"> * Revision 1.5 1994/08/23 11:32:52 robertj</span>00084 <span class="comment"> * Oops</span>00085 <span class="comment"> *</span>00086 <span class="comment"> * Revision 1.4 1994/08/22 00:46:48 robertj</span>00087 <span class="comment"> * Added pragma fro GNU C++ compiler.</span>00088 <span class="comment"> *</span>00089 <span class="comment"> * Revision 1.3 1994/08/21 23:43:02 robertj</span>00090 <span class="comment"> * Changed type of socket port number for better portability.</span>00091 <span class="comment"> *</span>00092 <span class="comment"> * Revision 1.2 1994/07/25 03:36:03 robertj</span>00093 <span class="comment"> * Added sockets to common, normalising to same comment standard.</span>00094 <span class="comment"> *</span>00095 <span class="comment"> */</span>00096 00097 <span class="preprocessor">#ifndef _PTELNETSOCKET</span>00098 <span class="preprocessor"></span><span class="preprocessor">#define _PTELNETSOCKET</span>00099 <span class="preprocessor"></span>00100 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00101 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00102 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00103 <span class="preprocessor"></span>00104 <span class="preprocessor">#include <<a class="code" href="sockets_8h.html">ptlib/sockets.h</a>></span>00105 00106 <a name="l00109"></a><a class="code" href="classPTelnetSocket.html">00109</a> <span class="keyword">class </span><a class="code" href="classPTelnetSocket.html">PTelnetSocket</a> : <span class="keyword">public</span> <a class="code" href="classPTCPSocket.html">PTCPSocket</a>00110 {00111 <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPTelnetSocket.html">PTelnetSocket</a>, <a class="code" href="classPTCPSocket.html">PTCPSocket</a>)00112 00113 <span class="keyword">public</span>:00114 <a class="code" href="classPTelnetSocket.html#a0">PTelnetSocket</a>();00115 <span class="comment">// Create an unopened TELNET socket.</span>00116 00117 <a class="code" href="classPTelnetSocket.html#a0">PTelnetSocket</a>(00118 <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & address <span class="comment">// Address of remote machine to connect to.</span>00119 );00120 <span class="comment">// Create an opened TELNET socket.</span>00121 00122 00123 <span class="comment">// Overrides from class PChannel</span>00139 <span class="comment"></span> BOOL <a class="code" href="classPTelnetSocket.html#a2">Read</a>(00140 <span class="keywordtype">void</span> * buf, <span class="comment">// Pointer to a block of memory to receive the read bytes.</span>00141 PINDEX len <span class="comment">// Maximum number of bytes to read into the buffer.</span>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -