V
v.mont
Guest
I'm trying to implement a pair of components to handle communication over a
virtual channel. I believe I have the client component done okay, and it
sends a string on the virtual channel. On the server side, the second
component is waiting for the read. But it never receives anything. All calls
on both sides (open/write on client, and open on server side pass ok... )
So I have a few general questions, hopefully someone can help:
1. Is it okay to activate the server component manually (for test purposes)?
It is currently implemented as a console app.
2. the client sends data right after VirtualChannelOpen returns okay. I do
see the event coming back as "write complete". On the server, I open the
channel and wait for input. I then disconnect and reconnect the session. This
triggers the write from the client side. THe client does a
ReadFile/WaitForSingleHandle/GetOverlappedResult (or variations thereof) but
the handle never gets signaled. Am I missing something? Will the handles I
got on the server side before the disconnect be valid after I reconnect again?
I didn't see any different behavior registering the server component in the
registry. It is currently registered, but even if it weren't, it still fails
the same way. What does that registration do anyway?
fwiw, the client is vista, server is W2003.
virtual channel. I believe I have the client component done okay, and it
sends a string on the virtual channel. On the server side, the second
component is waiting for the read. But it never receives anything. All calls
on both sides (open/write on client, and open on server side pass ok... )
So I have a few general questions, hopefully someone can help:
1. Is it okay to activate the server component manually (for test purposes)?
It is currently implemented as a console app.
2. the client sends data right after VirtualChannelOpen returns okay. I do
see the event coming back as "write complete". On the server, I open the
channel and wait for input. I then disconnect and reconnect the session. This
triggers the write from the client side. THe client does a
ReadFile/WaitForSingleHandle/GetOverlappedResult (or variations thereof) but
the handle never gets signaled. Am I missing something? Will the handles I
got on the server side before the disconnect be valid after I reconnect again?
I didn't see any different behavior registering the server component in the
registry. It is currently registered, but even if it weren't, it still fails
the same way. What does that registration do anyway?
fwiw, the client is vista, server is W2003.