Solved

What is a sink in remoting vb.net

Posted on 2008-10-01
4
307 Views
Last Modified: 2013-11-07
Hi!

Need some help to understand what a sink is in remoting.

Do I need to use it?
What is it for?
When should I use it?

for example what does this do


Dim serverProv As BinaryServerFormatterSinkProvider = New BinaryServerFormatterSinkProvider
 Dim clientProv As BinaryClientFormatterSinkProvider = New BinaryClientFormatterSinkProvider
  serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full
 Dim props As IDictionary = New Hashtable
 
        props("port") = 0
        Channel = New System.Runtime.Remoting.Channels.tcp.TcpChannel(props, clientProv, serverProv)

Open in new window

0
Comment
Question by:AWestEng
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
melmers earned 500 total points
ID: 22621514
Sinks are a additional layer in the .NET Remoting communication. YOu can use it to implement things an authentication layer which is added to every messeage that your client sends to your server.

To describing it here would use much space. So on codeproject is a very good tutorial

http://www.codeproject.com/KB/IP/customsinks.aspx
0
 
LVL 1

Author Comment

by:AWestEng
ID: 22622480
oki thx,
but if I dont provide a sink to the channel it will create a default one?, but was is good practice hare, should I still add some type of sink?
0
 
LVL 11

Expert Comment

by:melmers
ID: 22622493
When you can use the default one why implement one ?
Sinks are complicated for beginners so why implement one.
every additional implemented sink or code must be tested.
so when you can use the default one use it.
0
 
LVL 1

Author Comment

by:AWestEng
ID: 22623017
good point.
thx man :)
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question