By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,309 Members | 1,452 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,309 IT Pros & Developers. It's quick & easy.

How do I choose the callback channel on bi-directional remoting.

P: n/a
Hi.

I am using remoting to communicate between a client and server.
The server remotes an object.
The client calls GetObject to get the proxy to the server remoted object.
The client registers itself with the server (calls a proxy method) and in
doing so, the client passes a delegate to the server which the server hangs
on to.
When the server has data for the client it calls back to the client using
that delegate.
The problem is that the call back to the client is on a channel that the
framework remoting code chooses. Because some of my clients will be going
through a firewall, I need to be able to select the callback channel. The
channel to the server is ok because I am doing the GetObject using a URL that
identifies the channel. I have tried having the client create a second
channel for use by the callback, but it just seems to ignore that channel. I
can see that the channels that I create are in the ChannelInfo that the
server receives. But when I do a netstat it looks like the remoting is
talking back on a channel that's not of my choosing. It seems like I should
be able to pick the callback channel if I just knew what to do.

I am using V7.1.3088 of VS2003 and V1.1.4322 of the framework on XP SP2.
Thanks.
Apr 17 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.