Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
1Activity

Table Of Contents

1 Introduction
2 Intended Audience
3 Document Organization
4 Status of This Specification
5 Document Version Conventions
6 New And/Or Different in Version 2.2.1
7 New And/Or Different in Version 2.2.2
8 Summary of New Concepts, Additions and Changes for WinSock 2
9 WinSock 2 Architecture
10 Simultaneous Access to Multiple Transport Protocols
11 Backwards Compatibility For WinSock 1.1 Applications
12 Source Code Compatibility
13 Binary Compatibility
14 Making Transport Protocols Available To WinSock
15 Layered Protocols and Protocol Chains
16 Using Multiple Protocols
17 Multiple Provider Restrictions on select()
18 Function Extension Mechanism
19 Debug and Trace Facilities
31 The QOS Structure
32 QOS Templates
33 Default Values
34 Socket Groups
35 Shared Sockets
36 Enhanced Functionality During Connection Setup and Teardown
37 Extended Byte Order Conversion Routines
38 Support for Scatter/Gather I/O
39 Protocol-Independent Multicast and Multipoint
40 Summary of New Socket Options
41 Summary of New Socket Ioctl Opcodes
42 Summary of New Functions
43 Generic Data Transport Functions
44 Name Registration and Resolution Functions
45 Windows Sockets Programming Considerations
46 Deviation from BSD Sockets
47 Socket Data Type
48 select() and FD_*
49 Error codes - errno, h_errno & WSAGetLastError()
50 Pointers
51 Renamed functions
52 close() and closesocket()
53 ioctl() and ioctlsocket()/WSAIoctl()
54 Maximum number of sockets supported
55 Include files
56 Return values on function failure
57 Raw Sockets
58 Byte Ordering
59 WinSock 1.1 Compatibility Issues
60 Default state for a socket’s overlapped attribute
61 Winsock 1.1 Blocking routines & EINPROGRESS
62 Graceful shutdown, linger options and socket closure
63 Out-Of-Band data
64 Protocol Independent OOB data
65 OOB data in TCP
66 Summary of WinSock 2 Functions
67 BSD Socket Functions
68 Microsoft Windows-specific Extension Functions
69 SOCKET LIBRARY REFERENCE
70 accept()
71 bind()
72 closesocket()
73 connect()
76 getsockopt()
77 htonl()
78 htons()
79 ioctlsocket()
80 listen()
81 ntohl()
82 ntohs()
83 recv()
84 recvfrom()
85 select()
86 send()
87 sendto()
88 setsockopt()
89 shutdown()
90 socket()
91 WSAAccept()
92 WSAAsyncSelect()
93 WSACancelBlockingCall()
94 WSACleanup()
95 WSACloseEvent()
96 WSAConnect()
97 WSACreateEvent()
98 WSADuplicateSocket()
99 WSAEnumNetworkEvents()
100 WSAEnumProtocols()
101 WSAEventSelect()
102 WSAGetLastError()
103 WSAGetOverlappedResult()
104 WSAGetQOSByName()
105 WSAHtonl()
106 WSAHtons()
107 WSAIoctl()
108 WSAIsBlocking()
109 WSAJoinLeaf()
110 WSANtohl()
111 WSANtohs()
112 WSARecv()
113 WSARecvDisconnect()
114 WSARecvFrom()
115 WSAResetEvent()
116 WSASend()
117 WSASendDisconnect()
118 WSASendTo()
119 WSASetBlockingHook()
120 WSASetEvent()
121 WSASetLastError()
122 WSASocket()
123 WSAStartup()
124 WSAUnhookBlockingHook()
125 WSAWaitForMultipleEvents()
126 WSAProviderConfigChange()
WSAProviderConfigChange(
127 Name Resolution and Registration
128 Protocol-Independent Name Resolution
129 Name Resolution Model
130 Types of Name Spaces
131 Name Space Organization
132 Name Space Provider Architecture
133 Summary of Name Resolution Functions
134 Service Installation
135 Client Query
136 Helper Functions
137 Name Resolution Data Structures
138 Query-Related Data Structures
139 Service Class Data Structures
144 WSAGetServiceClassNameByClassId()
145 WSAInstallServiceClass()
146 WSALookupServiceBegin()
147 WSALookupServiceEnd()
148 WSALookupServiceNext()
149 WSARemoveServiceClass()
4.2.10. WSASetService()
150 WSAStringToAddress()
202 WinSock 1.1 Compatible Name Resolution for TCP/IP
151 WinSock 1.1 Compatibile Name Resolution for TCP/IP 152 Introduction
153 Basic Approach
154 getprotobyname and getprotobynumber
155 getservbyname() and getservbyport()
156 gethostbyname()
157 gethostbyaddr()
158 gethostname()
159 WinSock 1.1 Compatible Name Resolution Reference
160 gethostbyaddr()
161 gethostbyname()
162 gethostname()
163 getprotobyname()
164 getprotobynumber()
165 getservbyname()
166 getservbyport()
167 inet_addr()
168 inet_ntoa()
169 WSAAsyncGetHostByAddr()
170 WSAAsyncGetHostByName()
171 WSAAsyncGetProtoByName()
172 WSAAsyncGetProtoByNumber()
173 WSAAsyncGetServByName()
174 WSAAsyncGetServByPort()
175 WSACancelAsyncRequest()
Appendix A. Error Codes and Header Files and Data Types
A.1 Error Codes
A.1.1 Error Codes - Brief Description
A.1.2 Error Codes - Extended Description
A.2 Header Files A.2.1 Berkeley Header Files
A.2.2 WinSock Header File - Winsock2.h
A.2.3 Sizes of Data Types
Appendix B. Multipoint and Multicast Semantics
B.1. Multipoint and Multicast Introduction
B.2 Multipoint Taxonomy
B.3 WinSock 2 Interface Elements for Multipoint and Multicast
B.3.1. Attributes in WSAPROTOCOL_INFO struct
B.3.2. Flag bits for WSASocket()
B.3.3. SIO_MULTIPOINT_LOOP command code for WSAIoctl()
B.3.4. SIO_MULTICAST_SCOPE command code for WSAIoctl()
B.3.5. WSAJoinLeaf()
B.4. Semantics for joining multipoint leaves
B.4.1. Using WSAJoinLeaf()
B.5. Semantic differences between multipoint sockets and regular sockets
B.6. How existing multipoint protocols support these extensions
B.6.1. IP multicast
B.6.2. ATM Point to Multipoint
Appendix C. The Lame List
Appendix D. For Further Reference
D.1 Networking books:
D.2 Windows Sockets programming books:
0 of .
Results for:
No results containing your search query
P. 1
WSAPI22

WSAPI22

Ratings: (0)|Views: 124|Likes:
Published by penetrator

More info:

Published by: penetrator on Feb 18, 2011
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

11/15/2011

pdf

text

original

You're Reading a Free Preview
Pages 6 to 15 are not shown in this preview.
You're Reading a Free Preview
Pages 21 to 46 are not shown in this preview.
You're Reading a Free Preview
Pages 52 to 148 are not shown in this preview.
You're Reading a Free Preview
Pages 154 to 191 are not shown in this preview.
You're Reading a Free Preview
Pages 197 to 260 are not shown in this preview.

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)//-->