R.Wieser
2022-06-30 17:28:30 UTC
Hello all,
I'm trying to create some basic LPC code, but am running in a bit of a
problem in regard to how NtAcceptConnectPort works. :-(
I've got some server-side code which uses the following functions in the
below order :
NtCreatePort
NtListenPort
NtAcceptConnectPort
NtCompleteConnectPort
NtReplyWaitReceivePort
...
On the client side I'm calling NtConnectPort twice (with some data
identifying each connection), to test opening two connections to the server.
The problem is that although I'm calling NtReplyWaitReceivePort with the
data-port handle returned from NtAcceptConnectPort the second connect
requests data is received by NtReplyWaitReceivePort.
Which, to me, is quite unexpected. It is as if the data-port handle is
absolutily ignored ...
Could someone explain to me how the above works / how I can make multiple
connections to the server-side program ?
Regards,
Rudy Wieser
I'm trying to create some basic LPC code, but am running in a bit of a
problem in regard to how NtAcceptConnectPort works. :-(
I've got some server-side code which uses the following functions in the
below order :
NtCreatePort
NtListenPort
NtAcceptConnectPort
NtCompleteConnectPort
NtReplyWaitReceivePort
...
On the client side I'm calling NtConnectPort twice (with some data
identifying each connection), to test opening two connections to the server.
The problem is that although I'm calling NtReplyWaitReceivePort with the
data-port handle returned from NtAcceptConnectPort the second connect
requests data is received by NtReplyWaitReceivePort.
Which, to me, is quite unexpected. It is as if the data-port handle is
absolutily ignored ...
Could someone explain to me how the above works / how I can make multiple
connections to the server-side program ?
Regards,
Rudy Wieser