Hi,all,
How to declare a TCPChannel Object and implement it? In MSDN I found code
and try it In IDE,but it have some error,so can not compile it!
Imports System
Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
Imports System.Runtime.Remoting.Channels.TCP -> error! IDE report not found
this namespace or type £¿£¿
Namespace RemotingSamples
Public Class Sample
Shared Sub Main
Dim chan As TCPChannel -> error! IDE report not defined type!!
chan = New TCPChannel(8085)
ChannelServices.RegisterChannel(chan)
RemotingConfiguration.RegisterWellKnownServiceType ( _
Type.GetType("RemotingSamples.HelloServer, object"), _
"SayHello", WellKnownObjectMode.SingleCall)
System.Console.WriteLine("Hit to exit...")
System.Console.ReadLine()
End Sub
End Class
End Namespace
now,what can I do for it? How to ues the TCPChannel Object? Thanks a lot!!