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
5bfb579f
Commit
5bfb579f
authored
Apr 21, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add a stub transport layer for ncacn_ip_tcp.
parent
87ddd7b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
2 deletions
+52
-2
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+52
-2
No files found.
dlls/rpcrt4/rpc_transport.c
View file @
5bfb579f
...
...
@@ -45,8 +45,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
rpc
);
static
struct
protseq_ops
*
rpcrt4_get_protseq_ops
(
const
char
*
protseq
);
typedef
struct
_RpcConnection_np
{
RpcConnection
common
;
...
...
@@ -226,6 +224,49 @@ static int rpcrt4_conn_np_close(RpcConnection *Connection)
return
0
;
}
typedef
struct
_RpcConnection_tcp
{
RpcConnection
common
;
}
RpcConnection_tcp
;
static
RpcConnection
*
rpcrt4_conn_tcp_alloc
(
void
)
{
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
RpcConnection_tcp
));
}
static
RPC_STATUS
rpcrt4_ncacn_ip_tcp_open
(
RpcConnection
*
Connection
)
{
FIXME
(
"(%s, %s) unimplemented
\n
"
,
Connection
->
NetworkAddr
,
Connection
->
Endpoint
);
return
RPC_S_SERVER_UNAVAILABLE
;
}
static
HANDLE
rpcrt4_conn_tcp_get_wait_handle
(
RpcConnection
*
Connection
)
{
return
NULL
;
}
static
RPC_STATUS
rpcrt4_conn_tcp_handoff
(
RpcConnection
*
old_conn
,
RpcConnection
*
new_conn
)
{
return
RPC_S_SERVER_UNAVAILABLE
;
}
static
int
rpcrt4_conn_tcp_read
(
RpcConnection
*
Connection
,
void
*
buffer
,
unsigned
int
count
)
{
return
-
1
;
}
static
int
rpcrt4_conn_tcp_write
(
RpcConnection
*
Connection
,
const
void
*
buffer
,
unsigned
int
count
)
{
return
-
1
;
}
static
int
rpcrt4_conn_tcp_close
(
RpcConnection
*
Connection
)
{
return
-
1
;
}
struct
protseq_ops
protseq_list
[]
=
{
{
"ncacn_np"
,
rpcrt4_conn_np_alloc
,
...
...
@@ -245,6 +286,15 @@ struct protseq_ops protseq_list[] = {
rpcrt4_conn_np_write
,
rpcrt4_conn_np_close
,
},
{
"ncacn_ip_tcp"
,
rpcrt4_conn_tcp_alloc
,
rpcrt4_ncacn_ip_tcp_open
,
rpcrt4_conn_tcp_get_wait_handle
,
rpcrt4_conn_tcp_handoff
,
rpcrt4_conn_tcp_read
,
rpcrt4_conn_tcp_write
,
rpcrt4_conn_tcp_close
,
}
};
#define MAX_PROTSEQ (sizeof protseq_list / sizeof protseq_list[0])
...
...
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