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
the server part while it's possible, it should not be
used - as there can only be one effective listener
Making some data not received by the RPC server.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 399 |
Nodes: | 16 (3 / 13) |
Uptime: | 63:41:14 |
Calls: | 8,354 |
Calls today: | 14 |
Files: | 13,159 |
Messages: | 5,893,697 |
Posted today: | 1 |