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

📄 ipsock_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!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>ipsock.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>ipsock.h</h1><a href="ipsock_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * ipsock.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Internet Protocol socket I/O channel 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-1998 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"> * Portions are Copyright (C) 1993 Free Software Foundation, Inc.</span>00025 <span class="comment"> * All Rights Reserved.</span>00026 <span class="comment"> *</span>00027 <span class="comment"> * Contributor(s): ______________________________________.</span>00028 <span class="comment"> *</span>00029 <span class="comment"> * $Log: ipsock.h,v $</span>00030 <span class="comment"> * Revision 1.67  2004/08/24 07:08:13  csoutheren</span>00031 <span class="comment"> * Added use of recvmsg to determine which interface UDP packets arrive on</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.66  2004/07/11 07:56:35  csoutheren</span>00034 <span class="comment"> * Applied jumbo VxWorks patch, thanks to Eize Slange</span>00035 <span class="comment"> *</span>00036 <span class="comment"> * Revision 1.65  2004/04/18 04:33:36  rjongbloed</span>00037 <span class="comment"> * Changed all operators that return BOOL to return standard type bool. This is primarily</span>00038 <span class="comment"> *   for improved compatibility with std STL usage removing many warnings.</span>00039 <span class="comment"> *</span>00040 <span class="comment"> * Revision 1.64  2004/04/07 05:29:50  csoutheren</span>00041 <span class="comment"> * Added function to detect RFC 1918 addresses</span>00042 <span class="comment"> *</span>00043 <span class="comment"> * Revision 1.63  2004/02/23 17:27:19  ykiryanov</span>00044 <span class="comment"> * Added == and != operators for in_addr_t on BeOS as suggested by Craig Southeren to please compiler</span>00045 <span class="comment"> *</span>00046 <span class="comment"> * Revision 1.62  2003/09/17 05:41:58  csoutheren</span>00047 <span class="comment"> * Removed recursive includes</span>00048 <span class="comment"> *</span>00049 <span class="comment"> * Revision 1.61  2003/09/17 01:18:02  csoutheren</span>00050 <span class="comment"> * Removed recursive include file system and removed all references</span>00051 <span class="comment"> * to deprecated coooperative threading support</span>00052 <span class="comment"> *</span>00053 <span class="comment"> * Revision 1.60  2003/05/21 09:34:43  rjongbloed</span>00054 <span class="comment"> * Name lookup support for IPv6, thanks again S閎astien Josset</span>00055 <span class="comment"> *</span>00056 <span class="comment"> * Revision 1.59  2003/04/28 02:55:08  robertj</span>00057 <span class="comment"> * Added function to see at run time if IPv6 available, thanks Sebastien Josset</span>00058 <span class="comment"> *</span>00059 <span class="comment"> * Revision 1.58  2003/04/03 08:43:23  robertj</span>00060 <span class="comment"> * Added IPv4 mapping into IPv6, thanks Sebastien Josset</span>00061 <span class="comment"> *</span>00062 <span class="comment"> * Revision 1.57  2003/03/26 05:36:37  robertj</span>00063 <span class="comment"> * More IPv6 support (INADDR_ANY handling), thanks S閎astien Josset</span>00064 <span class="comment"> *</span>00065 <span class="comment"> * Revision 1.56  2003/02/03 11:23:32  robertj</span>00066 <span class="comment"> * Added function to get pointer to IP address data.</span>00067 <span class="comment"> *</span>00068 <span class="comment"> * Revision 1.55  2003/02/03 08:51:44  robertj</span>00069 <span class="comment"> * Fixed compatibility with old code so taking address of PIPSocket::Address</span>00070 <span class="comment"> *   gets address of 4 or 16 byte IP address.</span>00071 <span class="comment"> *</span>00072 <span class="comment"> * Revision 1.54  2002/12/02 03:57:18  robertj</span>00073 <span class="comment"> * More RTEMS support patches, thank you Vladimir Nesic.</span>00074 <span class="comment"> *</span>00075 <span class="comment"> * Revision 1.53  2002/11/02 00:32:21  robertj</span>00076 <span class="comment"> * Further fixes to VxWorks (Tornado) port, thanks Andreas Sikkema.</span>00077 <span class="comment"> *</span>00078 <span class="comment"> * Revision 1.52  2002/10/29 07:59:45  robertj</span>00079 <span class="comment"> * Changed in_addr6 to more universally used in6_addr.</span>00080 <span class="comment"> *</span>00081 <span class="comment"> * Revision 1.51  2002/10/08 14:31:43  robertj</span>00082 <span class="comment"> * Changed for IPv6 support, thanks S閎astien Josset.</span>00083 <span class="comment"> *</span>00084 <span class="comment"> * Revision 1.50  2002/10/08 12:41:51  robertj</span>00085 <span class="comment"> * Changed for IPv6 support, thanks S閎astien Josset.</span>00086 <span class="comment"> *</span>00087 <span class="comment"> * Revision 1.49  2002/09/16 01:08:59  robertj</span>00088 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00089 <span class="comment"> *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00090 <span class="comment"> *</span>00091 <span class="comment"> * Revision 1.48  2001/12/13 09:17:01  robertj</span>00092 <span class="comment"> * Added function to convert PString to IP address with error checking that can</span>00093 <span class="comment"> *   distinguish between 0.0.0.0 or 255.255.255.255 and illegal address.</span>00094 <span class="comment"> *</span>00095 <span class="comment"> * Revision 1.47  2001/09/14 08:00:38  robertj</span>00096 <span class="comment"> * Added new versions of Conenct() to allow binding to a specific local interface.</span>00097 <span class="comment"> *</span>00098 <span class="comment"> * Revision 1.46  2001/05/22 12:49:32  robertj</span>00099 <span class="comment"> * Did some seriously wierd rewrite of platform headers to eliminate the</span>00100 <span class="comment"> *   stupid GNU compiler warning about braces not matching.</span>00101 <span class="comment"> *</span>00102 <span class="comment"> * Revision 1.45  2001/03/05 04:18:27  robertj</span>00103 <span class="comment"> * Added net mask to interface info returned by GetInterfaceTable()</span>00104 <span class="comment"> *</span>00105 <span class="comment"> * Revision 1.44  2001/01/29 06:41:18  robertj</span>00106 <span class="comment"> * Added printing of entry of interface table.</span>00107 <span class="comment"> *</span>00108 <span class="comment"> * Revision 1.43  2000/06/26 11:17:19  robertj</span>00109 <span class="comment"> * Nucleus++ port (incomplete).</span>00110 <span class="comment"> *</span>00111 <span class="comment"> * Revision 1.42  1999/09/10 04:35:42  robertj</span>00112 <span class="comment"> * Added Windows version of PIPSocket::GetInterfaceTable() function.</span>00113 <span class="comment"> *</span>00114 <span class="comment"> * Revision 1.41  1999/09/10 02:31:42  craigs</span>00115 <span class="comment"> * Added interface table routines</span>00116 <span class="comment"> *</span>00117 <span class="comment"> * Revision 1.40  1999/08/30 02:21:03  robertj</span>00118 <span class="comment"> * Added ability to listen to specific interfaces for IP sockets.</span>00119 <span class="comment"> *</span>00120 <span class="comment"> * Revision 1.39  1999/08/08 09:04:01  robertj</span>00121 <span class="comment"> * Added operator&gt;&gt; for PIPSocket::Address class.</span>00122 <span class="comment"> *</span>00123 <span class="comment"> * Revision 1.38  1999/03/09 02:59:50  robertj</span>00124 <span class="comment"> * Changed comments to doc++ compatible documentation.</span>00125 <span class="comment"> *</span>00126 <span class="comment"> * Revision 1.37  1999/02/23 07:19:22  robertj</span>00127 <span class="comment"> * Added [] operator PIPSocket::Address to get the bytes out of an IP address.</span>00128 <span class="comment"> *</span>00129 <span class="comment"> * Revision 1.36  1999/02/16 08:12:00  robertj</span>00130 <span class="comment"> * MSVC 6.0 compatibility changes.</span>00131 <span class="comment"> *</span>00132 <span class="comment"> * Revision 1.35  1998/12/21 07:22:50  robertj</span>00133 <span class="comment"> * Virtualised functions for SOCKS support.</span>00134 <span class="comment"> *</span>00135 <span class="comment"> * Revision 1.34  1998/12/18 04:34:14  robertj</span>00136 <span class="comment"> * PPC Linux GNU C compatibility.</span>00137 <span class="comment"> *</span>00138 <span class="comment"> * Revision 1.33  1998/11/30 08:57:32  robertj</span>00139 <span class="comment"> * New directory structure</span>00140 <span class="comment"> *</span>00141 <span class="comment"> * Revision 1.32  1998/11/22 11:30:08  robertj</span>00142 <span class="comment"> * Check route table function to get a list</span>00143 <span class="comment"> *</span>00144 <span class="comment"> * Revision 1.31  1998/11/19 05:18:22  robertj</span>00145 <span class="comment"> * Added route table manipulation functions to PIPSocket class.</span>00146 <span class="comment"> *</span>00147 <span class="comment"> * Revision 1.30  1998/09/23 06:20:45  robertj</span>00148 <span class="comment"> * Added open source copyright license.</span>00149 <span class="comment"> *</span>00150 <span class="comment"> * Revision 1.29  1997/12/11 10:28:57  robertj</span>00151 <span class="comment"> * Added operators for IP address to DWORD conversions.</span>00152 <span class="comment"> *</span>00153 <span class="comment"> * Revision 1.28  1996/12/17 11:08:05  robertj</span>00154 <span class="comment"> * Added DNS name cache clear command.</span>00155 <span class="comment"> *</span>00156 <span class="comment"> * Revision 1.27  1996/11/30 12:10:00  robertj</span>00157 <span class="comment"> * Added Connect() variant so can set the local port number on link.</span>00158 <span class="comment"> *</span>

⌨️ 快捷键说明

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