Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
4Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Windows* Sockets 2 Application Programming Interface

Windows* Sockets 2 Application Programming Interface

Ratings: (0)|Views: 450|Likes:
Published by om18sahu

More info:

Published by: om18sahu on Aug 14, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/19/2011

pdf

text

original

 
Windows
*
Sockets 2Application ProgrammingInterface
An Interface for Transparent Network ProgrammingUnder Microsoft Windows
TM
Revision 2.2.2August 7, 1997
 
Subject to Change Without Notice
 
ii
Disclaimer and License
THIS SPECIFICATION IS PROVIDED "AS IS" WITH NO WARRANTIESWHATSOEVER, INCLUDING ANY WARRANTY OF MERCHANTABILITY,FITNESS FOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISEARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE.A LICENSE IS HEREBY GRANTED TO REPRODUCE THIS SPECIFICATION, BUTONLY IN ITS ENTIRETY AND WITHOUT MODIFICATION. NO OTHERLICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANYOTHER INTELLECTUAL PROPERTY RIGHTS IS GRANTED HEREIN.INTEL, MICROSOFT, STARDUST, AND THE OTHER COMPANIES WHOSECONTRIBUTIONS ARE ACKNOWLEDGED BELOW DISCLAIM ALL LIABILITY,INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PROPRIETARY RIGHTS,RELATING TO IMPLEMENTATION OF INFORMATION IN THIS SPECIFICATION.SAID COMPANIES DO NOT WARRANT OR REPRESENT THAT SUCHIMPLEMENTATION(S) WILL NOT INFRINGE SUCH RIGHTS.* Third-party trademarks are the property of their respective owners.
 
iii
Table of Contents
1. INTRODUCTION ....................................................................................................................................1
1.1. Intended Audience...................................................................................................................................21.2. Document Organization...........................................................................................................................21.3. Status of This Specification.....................................................................................................................21.4. Document Version Conventions..............................................................................................................31.5. New And/Or Different in Version 2.2.1...................................................................................................31.6. New And/Or Different in Version 2.2.2...................................................................................................3
2. SUMMARY OF NEW CONCEPTS, ADDITIONS AND CHANGES FOR WINSOCK 2................4
2.1. WinSock 2 Architecture...........................................................................................................................42.1.1. Simultaneous Access to Multiple Transport Protocols.....................................................................42.1.2. Backwards Compatibility For WinSock 1.1 Applications................................................................4
2.1.2.1. Source Code Compatibility.........................................................................................................................42.1.2.2. Binary Compatibility...................................................................................................................................5
2.2. Making Transport Protocols Available To WinSock...............................................................................52.2.1. Layered Protocols and Protocol Chains............................................................................................62.2.2. Using Multiple Protocols..................................................................................................................62.2.3. Multiple Provider Restrictions on select()........................................................................................72.3. Function Extension Mechanism...............................................................................................................72.4. Debug and Trace Facilities......................................................................................................................82.5. Protocol Independent Name Resolution..................................................................................................82.6. Overlapped I/O and Event Objects..........................................................................................................82.6.1. Event Objects....................................................................................................................................92.6.2. Receiving Completion Indications..................................................................................................10
2.6.2.1. Blocking and Waiting for Completion Indication.....................................................................................102.6.2.2. Polling for Completion Indication............................................................................................................102.6.2.3. Using socket I/O completion routines.......................................................................................................102.6.2.4. Summary of overlapped completion indication mechanisms....................................................................10
2.6.3. WSAOVERLAPPED Details.........................................................................................................112.7. Asynchronous Notification Using Event Objects..................................................................................112.8. Quality of Service..................................................................................................................................122.8.1. The QOS Structure.........................................................................................................................132.8.2. QOS Templates...............................................................................................................................162.8.3. Default Values................................................................................................................................162.9. Socket Groups........................................................................................................................................162.10. Shared Sockets.....................................................................................................................................172.11. Enhanced Functionality During Connection Setup and Teardown......................................................172.12. Extended Byte Order Conversion Routines.........................................................................................182.13. Support for Scatter/Gather I/O.............................................................................................................182.14. Protocol-Independent Multicast and Multipoint..................................................................................192.15. Summary of New Socket Options........................................................................................................192.16. Summary of New Socket Ioctl Opcodes..............................................................................................202.17. Summary of New Functions.................................................................................................................222.17.1. Generic Data Transport Functions................................................................................................222.17.2. Name Registration and Resolution Functions...............................................................................22
3. WINDOWS SOCKETS PROGRAMMING CONSIDERATIONS....................................................24
3.1. Deviation from BSD Sockets.................................................................................................................243.1.1. Socket Data Type............................................................................................................................243.1.2. select() and FD_*............................................................................................................................243.1.3. Error codes - errno, h_errno & WSAGetLastError()......................................................................243.1.4. Pointers...........................................................................................................................................25

Activity (4)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
dzidi6829 liked this
johnsoft1 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->