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.Channe ls
Imports System.Runtime. Remoting.Channe ls.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 .RegisterChanne l(chan)
RemotingConfigu ration.Register WellKnownServic eType( _
Type.GetType("R emotingSamples. HelloServer, object"), _
"SayHello", WellKnownObject Mode.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!!