[PATCH 3/6] server: Remove the no longer used accept_socket request.
Zebediah Figura
z.figura12 at gmail.com
Thu Oct 1 23:13:59 CDT 2020
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
server/protocol.def | 10 ----------
server/sock.c | 18 ------------------
2 files changed, 28 deletions(-)
diff --git a/server/protocol.def b/server/protocol.def
index f538c6dcf51..6534092f2cc 100644
--- a/server/protocol.def
+++ b/server/protocol.def
@@ -1383,16 +1383,6 @@ enum server_fd_type
@END
-/* Accept a socket */
- at REQ(accept_socket)
- obj_handle_t lhandle; /* handle to the listening socket */
- unsigned int access; /* wanted access rights */
- unsigned int attributes; /* object attributes */
- at REPLY
- obj_handle_t handle; /* handle to the new socket */
- at END
-
-
/* Accept into an initialized socket */
@REQ(accept_into_socket)
obj_handle_t lhandle; /* handle to the listening socket */
diff --git a/server/sock.c b/server/sock.c
index f66fe091174..26a2c4fa668 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -1425,24 +1425,6 @@ struct object *create_socket_device( struct object *root, const struct unicode_s
return create_named_object( root, &socket_device_ops, name, attr, sd );
}
-/* accept a socket */
-DECL_HANDLER(accept_socket)
-{
- struct sock *sock, *acceptsock;
-
- if (!(sock = (struct sock *)get_handle_obj( current->process, req->lhandle, FILE_READ_DATA, &sock_ops )))
- return;
-
- reply->handle = 0;
- if ((acceptsock = accept_socket( sock )) != NULL)
- {
- reply->handle = alloc_handle( current->process, &acceptsock->obj, req->access, req->attributes );
- acceptsock->wparam = reply->handle; /* wparam for message is the socket handle */
- release_object( acceptsock );
- }
- release_object( sock );
-}
-
/* accept a socket into an initialized socket */
DECL_HANDLER(accept_into_socket)
{
--
2.28.0
More information about the wine-devel
mailing list