Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7736876a
Commit
7736876a
authored
Jul 10, 2001
by
Peter Hunnisett
Committed by
Alexandre Julliard
Jul 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented a stub for WSARecvFrom.
parent
34329cf5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
8 deletions
+42
-8
socket.c
dlls/winsock/socket.c
+30
-0
ws2_32.spec
dlls/winsock/ws2_32.spec
+1
-1
winsock2.h
include/winsock2.h
+11
-7
No files found.
dlls/winsock/socket.c
View file @
7736876a
...
...
@@ -3221,3 +3221,33 @@ UINT16 wsaHerrno(int loc_errno)
return
WSAEOPNOTSUPP
;
}
}
/***********************************************************************
* WSARecvFrom (WSOCK32.69)
*/
INT
WINAPI
WSARecvFrom
(
SOCKET
s
,
LPWSABUF
lpBuffers
,
DWORD
dwBufferCount
,
LPDWORD
lpNumberOfBytesRecvd
,
LPDWORD
lpFlags
,
struct
sockaddr
*
lpFrom
,
LPINT
lpFromlen
,
LPWSAOVERLAPPED
lpOverlapped
,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
lpCompletionRoutine
)
{
DWORD
dwCount
;
INT
rc
;
FIXME
(
"(%i,%p,%lu,%p,%p,%p,%p,%p,%p: stub
\n
"
,
s
,
lpBuffers
,
dwBufferCount
,
lpNumberOfBytesRecvd
,
lpFlags
,
lpFrom
,
lpFromlen
,
lpOverlapped
,
lpCompletionRoutine
);
for
(
dwCount
=
0
,
rc
=
0
;
dwCount
<
dwBufferCount
;
dwCount
++
)
{
if
(
(
rc
=
WSOCK32_recvfrom
(
s
,
lpBuffers
[
dwCount
].
buf
,
(
INT
)
lpBuffers
[
dwCount
].
len
,
(
INT
)
*
lpFlags
,
lpFrom
,
lpFromlen
)
)
!=
0
)
{
break
;
}
}
return
rc
;
}
dlls/winsock/ws2_32.spec
View file @
7736876a
...
...
@@ -81,7 +81,7 @@ debug_channels (winsock)
66 stub WSAProviderConfigChange
67 stub WSARecv
68 stub WSARecvDisconnect
69 st
ub
WSARecvFrom
69 st
dcall WSARecvFrom(long ptr long ptr ptr ptr ptr ptr ptr )
WSARecvFrom
70 stub WSARemoveServiceClass
71 forward WSAResetEvent KERNEL32.ResetEvent
72 stdcall WSASend(long ptr long ptr long ptr ptr) WSASend
...
...
include/winsock2.h
View file @
7736876a
...
...
@@ -212,14 +212,18 @@ typedef void CALLBACK (*LPWSAOVERLAPPED_COMPLETION_ROUTINE)
/* Function declarations */
int
WINAPI
WSAEnumNetworkEvents
(
SOCKET
s
,
WSAEVENT
hEventObject
,
LPWSANETWORKEVENTS
lpNetworkEvents
);
int
WINAPI
WSAEventSelect
(
SOCKET
s
,
WSAEVENT
hEventObject
,
long
lNetworkEvents
);
int
WINAPI
WSAEnumNetworkEvents
(
SOCKET
s
,
WSAEVENT
hEventObject
,
LPWSANETWORKEVENTS
lpNetworkEvents
);
int
WINAPI
WSAEventSelect
(
SOCKET
s
,
WSAEVENT
hEventObject
,
long
lNetworkEvents
);
WSAEVENT
WINAPI
WSACreateEvent
(
void
);
BOOL
WINAPI
WSACloseEvent
(
WSAEVENT
event
);
SOCKET
WINAPI
WSASocketA
(
int
af
,
int
type
,
int
protocol
,
LPWSAPROTOCOL_INFOA
lpProtocolInfo
,
GROUP
g
,
DWORD
dwFlags
);
extern
INT
WINAPI
ioctlsocket
(
SOCKET
s
,
LONG
cmd
,
ULONG
*
argp
);
BOOL
WINAPI
WSACloseEvent
(
WSAEVENT
event
);
INT
WINAPI
WSARecvFrom
(
SOCKET
,
LPWSABUF
,
DWORD
,
LPDWORD
,
LPDWORD
,
struct
sockaddr
*
,
LPINT
,
LPWSAOVERLAPPED
,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
INT
WINAPI
WSASend
(
SOCKET
,
LPWSABUF
,
DWORD
,
LPDWORD
,
DWORD
,
LPWSAOVERLAPPED
,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
);
SOCKET
WINAPI
WSASocketA
(
int
af
,
int
type
,
int
protocol
,
LPWSAPROTOCOL_INFOA
lpProtocolInfo
,
GROUP
g
,
DWORD
dwFlags
);
INT
WINAPI
ioctlsocket
(
SOCKET
s
,
LONG
cmd
,
ULONG
*
argp
);
#include "poppack.h"
...
...
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