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

📄 intro.html

📁 SDK FAQ集
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><html lang="en"><head><title>Winsock Programmer's FAQ: Introduction</title><link rel="Stylesheet" type="text/css" href="./faq.css"></head><body bgcolor="#ffffee" text="#000000" link="#491e00" vlink="#7d2e01" alink="#da7417"><!--  ---- Header Bar ----  --><table border="0" width="95%" bgcolor="#006000" cellpadding="5" cellspacing="3" align="center">	<tr>		<td align="left" bgcolor="#e0e0c0">			<font size="2" face=Verdana,Arial,Helvetica>				<b><a href="index.html">&lt;&lt;</a></b>			</font>		</td>		<td align="center">			<font face=Verdana,Arial,Helvetica color="#ffffee">				<p align=center class=bigger3><b>				Winsock Programmer's FAQ<br>				Section 0: Introduction<br>				</b></p>			</font>			</td>		<td align="right" bgcolor="#e0e0c0">			<font size="2" face=Verdana,Arial,Helvetica>				<b><a href="general.html">&gt;&gt;</a></b>			</font>		</td>	</tr></table><!--  ---- Body Table ----  --><table width="95%" border="0" cellpadding="10">	<tr valign="top">		<td><a name="ointro"></a><h5>0.1 - The Original Introduction</h5><p>"This FAQ has been put together by Mark Towfiq, with much-appreciatedassistance from Jay Allard, Bruce Backman, Paul Brooks, Martin Hall,Simon Hewison, Mike Morse, Bob Quinn, Ed Schwalenberg, Bill Tang, DaveTreadwell, and Fred Whiteside."</p><a name="aboutme"></a><h5>0.2 - A Bit About the Maintainer</h5><p>My name is Warren Young, and I maintain (loosely speaking) this FAQ.I've been writing programs that use Winsock for about five years andhave been writing non-Winsock TCP/IP programs for even longer.</p><a name="legal"></a><h5>0.3 - Legal Stuff</h5><p>These pages are copyrighted. You may read these pages on-line, andyou may also copy these pages to your local hard disk and read themoff-line. All other rights<img src="./bitmaps/waist-dot.gif" alt="--" width=14 height=6 hspace=2>especially but not limited to publicdisplay and distribution<img src="./bitmaps/waist-dot.gif" alt="--" width=14 height=6 hspace=2>are reserved by the author. I do grant oneexception to the public display limitation: authorized mirrors may displaythis site in complete, unmodified form.</p><p>THERE IS NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, FOR THEINFORMATION ON THIS SITE, INCLUDING WARRANTIES OF ACCURACY, SUITABILITYOR FITNESS FOR A PARTICULAR PURPOSE. USING THIS INFORMATION IMPLIES YOURACCEPTANCE OF THESE TERMS.</P><a name="mirrors"></a><h5>0.4 - Mirrors</h5><p>There are currently no official mirrors of this site. If you wantthe latest, official FAQ, point your browser to:</p><p class=inset><a href="http://www.cyberport.com/~tangent/programming/winsock/">http://www.cyberport.com/~tangent/programming/winsock/</a></p><a name="askingquestions"></a><h5>0.5 - What if your question is not in the FAQ?</h5><p>Usually when someone emails me a question about Winsock, it's becausethey think they'll get a quick answer. After all, I'm the Winsock expert,right? [Tongue firmly planted in cheek.] This ignores one small fact:if it was easy for me to answer, the answer would probably be in theFAQ already!</p><p>I also have a more serious problem with answering questions by email:only one person benefits if I email you an answer. This leads to meanswering the same questions again and again, which is totally againstthe idea of a FAQ.</p><p>A better place to ask Winsock questions is on Usenet,because answers there get seen by many people. Thenewsgroups <a href="news:alt.winsock.programming">alt.winsock.programming</a> and<a href="news:comp.os.ms-windows.programmer.tools.winsock">comp.os.ms-windows.programmer.tools.winsock</a> are bothdedicated to Winsock, and both see a steady but not overwhelming levelof traffic. Many smart people hang out in these newsgroups, and arewilling to help with your problem.</p><p>You can search for past answers on Usenet at <ahref="http://www.dejanews.com/home_ps.shtml">DejaNews</a>. These archivesgo back several years, so the chances are good that your problem's answeris there for you to find. </p><p>If your problem is obscure enough that it's not in theDejaNews archives, you may be better off asking in the Winsock-2mailing list. This is a very technical list, with many ofthe true experts of Winsock as members. You can browse the <ahref="http://www.stardust.com/hypermail/ws2arc.html">archives</a>as far back as the middle of 1996. Or, you can <ahref="http://www.sockets.com/winsock2.htm#MailList">join the list</a>and ask the current members.</p><p>If all that fails, go ahead and email me your question. However, ifall of the above methods failed you, I may not be much help, especiallysince I monitor all of the forums mentioned above. Still, your questionmay prod me into adding something new to the FAQ.</p><a name="langbias"></a><h5>0.6 - Language Bias</h5><p>This FAQ is biased towards C++. More properly, the code in the FAQis C code that uses a sprinkling of C++ features. I don't stick to pureC for personal style reasons, and because every Windows C compiler canalso compile C++ code. In the future I may show fully object-oriented C++code to illustrate some Winsock class library or other.</p><p>There are a number of other reasons I don't use some otherlanguage:</p><ol><li>I only wanted to use one language in the FAQ. Since C isthe <i>lingua franca</i> of Windows programming, I feel safe in assumingthat you can at least read C well enough to translate C code into yourown chosen language.<li>The Winsock API itself is biased towards C concepts, because itderives from the C-centric Unix world's Berkeley sockets API.<li>Many other popular languages, such as Delphi and Java, have theirown way of talking to Winsock that has little to do with the actual API,from a programmer's standpoint. The preferred way to program Winsockin Delphi, for example, is to use the included Winsock control, not theunderlying API.</ol><p>Problems that only affect, say, Visual Basic, are not covered in theFAQ. The FAQ's <a href="resources/index.html">Resources</a> section and theFAQ item <a href="newbie.html#langcompat">Can I use Winsock with {My Favorite Language }?</a> may be of some use.</p><a name="acknowledgements"></a><h5>0.7 - Acknowledgements</h5><p>A FAQ is never an isolated thing. It takes many people, from patientgurus willing to share their knowledge, down to the masses of ignorantnewbies posting the same damn questions yet again. Without gurus, therecan be no accuracy. Without newbies, there's no grist for the mill. Andwithout everyone from newbies on up, there's no point in having a FAQ.</p><p>My first contribution, as mentioned above, is Mark Towfiq's originalFAQ. Although not much remains of the original material, it did providethis FAQ's core. In fact, I might not have decided to create a FAQ inthe first place<img src="./bitmaps/waist-dot.gif" alt="--" width=14 height=6 hspace=2>it probably took an existing, langushing FAQ toprod me.</p><p>Bob Quinn (of <a href="reviews/index.html/wsnp.html">Windows SocketsNetwork Programming</a> fame) keeps me accurate and has providedinspiration for a number of the FAQ's current questions.</p><p>Philippe Jounin has provided invaluable input by way of a differentperspective. That added perspective has corrected several bits of tunnelvision in this FAQ.</p><p>Alun Jones has not yet contributed directly to this FAQ, but every timeI make an ass of myself on one of the Winsock newsgroups, he's quick topoint it out. (I'm grateful for this, really I am.) In one way or another,those corrections improve the quality of the information in this FAQ.</p><p>As of Spring of 2000, the FAQ began including articles, code and FAQitems from various Winsockers around the globe. I thank these peoplefor letting me kipe their good works. (These items are marked with theoriginal author's name.)</p><p>And of course, there are dozens of others who have sent me email withsnippets, corrections, suggestions, pointers and atta-boys. Thanks toyou all.</p>		</td>	</tr></table><!--  ---- Document Footer ----  --><hr noshade size=1 color=#404040><table cellpadding=5 cellspacing=0 border=0 width=95% align=center> 	<tr>		<td align=left>		    <a href="index.html">&lt;&lt; Main</a>		</td>		<td align=right>		    <a href="general.html">General Winsock Information &gt;&gt;</a>		</td>	</tr>	<tr>		<td align=left>			<i>Last modified on 29 April 2000 at 15:52 UTC-7</i>		</td>		<td align=right>			<font size=-1>Please send corrections to <a href="mailto:tangent@cyberport.com">tangent@cyberport.com</a>.</font>		</td>	</tr>	</table>	<table cellpadding=5 cellspacing=0 border=0 width=95% align=center> 	<tr>		<td align=left width=33%>			<font size=-1>				<a href="index.html"><b>&lt;</b> Go to the main FAQ page</a>			</font>		</td>		<td width=33%>			<font size=-1>			<center>				<a href="http://www.cyberport.com/~tangent/programming"><b>&lt;&lt;</b> Go to my Programming pages</a>			</center>			</font>		</td>		<td align=right width=33%>			<font size=-1>				<a href="http://www.cyberport.com/~tangent/"><b>&lt;&lt;&lt;</b> Go to my Home Page</a>			</font>		</td>	</tr>	</table>	</body></html>

⌨️ 快捷键说明

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