Changeset 8372 for trunk/include
- Timestamp:
- May 6, 2002, 3:11:44 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/winsock2.h
r6153 r8372 48 48 #define FD_ADDRESS_LIST_CHANGE_BIT 9 49 49 #define FD_ADDRESS_LIST_CHANGE (1 << FD_ADDRESS_LIST_CHANGE_BIT) 50 51 /* Constants for LPCONDITIONPROC */ 52 #define CF_ACCEPT 0x0000 53 #define CF_REJECT 0x0001 54 #define CF_DEFER 0x0002 55 56 /* Constants for shutdown() */ 57 #define SD_RECEIVE 0x00 58 #define SD_SEND 0x01 59 #define SD_BOTH 0x02 50 60 51 61 /* … … 265 275 typedef unsigned int GROUP; 266 276 277 #define WSA_IO_PENDING (ERROR_IO_PENDING) 278 #define WSA_IO_INCOMPLETE (ERROR_IO_INCOMPLETE) 279 #define WSA_INVALID_HANDLE (ERROR_INVALID_HANDLE) 280 #define WSA_INVALID_PARAMETER (ERROR_INVALID_PARAMETER) 281 #define WSA_NOT_ENOUGH_MEMORY (ERROR_NOT_ENOUGH_MEMORY) 282 #define WSA_OPERATION_ABORTED (ERROR_OPERATION_ABORTED) 283 284 #define WSA_INVALID_EVENT ((WSAEVENT)NULL) 285 #define WSA_MAXIMUM_WAIT_EVENTS (MAXIMUM_WAIT_OBJECTS) 286 #define WSA_WAIT_FAILED ((DWORD)-1L) 287 #define WSA_WAIT_EVENT_0 (WAIT_OBJECT_0) 288 #define WSA_WAIT_IO_COMPLETION (WAIT_IO_COMPLETION) 289 #define WSA_WAIT_TIMEOUT (WAIT_TIMEOUT) 290 #define WSA_INFINITE (INFINITE) 291 292 typedef unsigned int GROUP; 293 #define SG_UNCONSTRAINED_GROUP 0x01 294 #define SG_CONSTRAINED_GROUP 0x02 295 296 /* 297 * FLOWSPEC and SERVICETYPE should eventually move to qos.h 298 */ 299 300 typedef ULONG SERVICETYPE; 301 302 typedef struct _FLOWSPEC { 303 unsigned int TokenRate; 304 unsigned int TokenBucketSize; 305 unsigned int PeakBandwidth; 306 unsigned int Latency; 307 unsigned int DelayVariation; 308 SERVICETYPE ServiceType; 309 unsigned int MaxSduSize; 310 unsigned int MinimumPolicedSize; 311 } FLOWSPEC, *PFLOWSPEC, *LPFLOWSPEC; 312 313 typedef struct _QUALITYOFSERVICE { 314 FLOWSPEC SendingFlowspec; 315 FLOWSPEC ReceivingFlowspec; 316 WSABUF ProviderSpecific; 317 } QOS, *LPQOS; 318 319 typedef int (* CALLBACK LPCONDITIONPROC) 320 ( 321 LPWSABUF lpCallerId, 322 LPWSABUF lpCallerData, 323 LPQOS lpSQOS, 324 LPQOS lpGQOS, 325 LPWSABUF lpCalleeId, 326 LPWSABUF lpCalleeData, 327 GROUP *g, 328 DWORD dwCallbackData 329 ); 330 267 331 typedef void (* CALLBACK LPWSAOVERLAPPED_COMPLETION_ROUTINE) 268 332 (
Note:
See TracChangeset
for help on using the changeset viewer.