Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / October 2005

Tip: Looking for answers? Try searching our database.

Remoting - How does one use a specific Channel?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
A1b2c3d4@community.nospam - 11 Oct 2005 19:27 GMT
Hi,

I need to connect a client to multiple remote server-activated objects using
TCP.  To communicate with one of the remote objects I require a custom Client
sink to be inserted into the sink-chains associated with the TCP
communication channel on the client.  I can happily create & register an
instance of TcpChannel in my client with a client sink-chain containing the
custom sink, but there appears to be no way to specify that this customised
channel be used when connecting to the remote object.  If an existing
standard TcpChannel is already registered (e.g. if the client has elsewhere
already connected to a different remote object using "standard" tcp), the
standard channel is used and the customised channel is ignored.

Is there a way to force a particular channel to be used?

Regards
David Razzetti
[MSFT] - 12 Oct 2005 07:15 GMT
Hello David,

ChannelServices class has a method "UnRegisterChannel". You may UnRegister
it channel first and re-register a Channel with your customized sink chain.

Luke
A1b2c3d4@community.nospam - 12 Oct 2005 08:40 GMT
Hi Luke,

Does un-registering a channel have any effect on existing remote objects
that the client is accessing via the channel?

Dave Razzetti

> Hello David,
>
> ChannelServices class has a method "UnRegisterChannel". You may UnRegister
> it channel first and re-register a Channel with your customized sink chain.
>
> Luke
[MSFT] - 13 Oct 2005 06:41 GMT
Hello

Un-registering a channel can only be used when you have finished all staffs
on a particular channel. Once a channel is released, it cannot be used
again, unless we re-register it.

Luke

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.