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
de962afa
Commit
de962afa
authored
Apr 10, 2001
by
Peter Hunnisett
Committed by
Alexandre Julliard
Apr 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added stub for WSASend.
parent
21044c63
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
1 deletion
+54
-1
socket.c
dlls/winsock/socket.c
+47
-0
ws2_32.spec
dlls/winsock/ws2_32.spec
+1
-1
winsock2.h
include/winsock2.h
+6
-0
No files found.
dlls/winsock/socket.c
View file @
de962afa
...
...
@@ -1864,6 +1864,53 @@ INT WINAPI WSOCK32_send(SOCKET s, char *buf, INT len, INT flags)
}
/***********************************************************************
* WSASend (WSOCK32.72)
*/
INT
WINAPI
WSASend
(
SOCKET
s
,
LPWSABUF
lpBuffers
,
DWORD
dwBufferCount
,
LPDWORD
lpNumberOfBytesSent
,
DWORD
dwFlags
,
LPWSAOVERLAPPED
lpOverlapped
,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
lpCompletionRoutine
)
{
INT
iFlags
=
0
;
INT
rc
=
0
;
DWORD
dwCount
;
/* Overlapped is not supported or checked for */
FIXME
(
"(%u,%p,0x%lx,%p,0x%lx,%p,%p): semi stub
\n
"
,
s
,
lpBuffers
,
dwBufferCount
,
lpNumberOfBytesSent
,
dwFlags
,
lpOverlapped
,
lpCompletionRoutine
);
/* Convert setup flags */
if
(
dwFlags
&
MSG_DONTROUTE
)
{
iFlags
|=
MSG_DONTROUTE
;
}
if
(
dwFlags
&
MSG_OOB
)
{
iFlags
|=
MSG_OOB
;
}
/* Indicate nothing yet sent */
*
lpNumberOfBytesSent
=
0
;
/* Send all buffers with the same flags */
for
(
dwCount
=
0
;
dwCount
<
dwBufferCount
;
dwCount
++
)
{
if
(
(
rc
=
WSOCK32_send
(
s
,
lpBuffers
[
dwCount
].
buf
,
lpBuffers
[
dwCount
].
len
,
iFlags
)
)
!=
0
)
{
break
;
}
/* Indicate that we've sent something */
*
lpNumberOfBytesSent
+=
lpBuffers
[
dwCount
].
len
;
}
return
rc
;
}
/***********************************************************************
* send() (WINSOCK.19)
*/
INT16
WINAPI
WINSOCK_send16
(
SOCKET16
s
,
char
*
buf
,
INT16
len
,
INT16
flags
)
...
...
dlls/winsock/ws2_32.spec
View file @
de962afa
...
...
@@ -84,7 +84,7 @@ debug_channels (winsock)
69 stub WSARecvFrom
70 stub WSARemoveServiceClass
71 forward WSAResetEvent KERNEL32.ResetEvent
72 st
ub
WSASend
72 st
dcall WSASend(long ptr long ptr long ptr ptr)
WSASend
73 stub WSASendDisconnect
74 stub WSASendTo
75 stub WSASetEvent
...
...
include/winsock2.h
View file @
de962afa
...
...
@@ -192,6 +192,12 @@ typedef struct _WSANETWORKEVENTS
int
iErrorCode
[
FD_MAX_EVENTS
];
}
WSANETWORKEVENTS
,
*
LPWSANETWORKEVENTS
;
typedef
struct
_WSABUF
{
ULONG
len
;
CHAR
*
buf
;
}
WSABUF
,
*
LPWSABUF
;
typedef
struct
_OVERLAPPED
*
LPWSAOVERLAPPED
;
typedef
HANDLE
WSAEVENT
;
typedef
unsigned
int
GROUP
;
...
...
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