Solved

What is a sink in remoting vb.net

Posted on 2008-10-01
4
304 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
  • 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now