Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a39ad1af
Commit
a39ad1af
authored
Sep 27, 1999
by
Ove Kaaven
Committed by
Alexandre Julliard
Sep 27, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some basic Winsock2 definitions.
parent
ec29ba80
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
winsock2.h
include/winsock2.h
+34
-0
No files found.
include/winsock2.h
0 → 100644
View file @
a39ad1af
/*
* Winsock 2 definitions
*
* FIXME!!!!
*/
#ifndef __WINSOCK2API__
#define __WINSOCK2API__
#include "winsock.h"
#define FD_MAX_EVENTS 10
#define FD_READ_BIT 0
#define FD_WRITE_BIT 1
#define FD_OOB_BIT 2
#define FD_ACCEPT_BIT 3
#define FD_CONNECT_BIT 4
#define FD_CLOSE_BIT 5
typedef
struct
_WSANETWORKEVENTS
{
long
lNetworkEvents
;
int
iErrorCode
[
FD_MAX_EVENTS
];
}
WSANETWORKEVENTS
,
*
LPWSANETWORKEVENTS
;
typedef
HANDLE
WSAEVENT
;
#define WSACreateEvent() CreateEvent(NULL, TRUE, FALSE, NULL)
/* etc */
int
WINAPI
WSAEnumNetworkEvents
(
SOCKET
s
,
WSAEVENT
hEventObject
,
LPWSANETWORKEVENTS
lpNetworkEvents
);
int
WINAPI
WSAEventSelect
(
SOCKET
s
,
WSAEVENT
hEventObject
,
long
lNetworkEvents
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment