PC Review


Reply
Thread Tools Rate Thread

How to declare TCPChannel Object? Help me!

 
 
Risen
Guest
Posts: n/a
 
      12th Mar 2005
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!!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set SocketOptionName.ReuseAddress given a TcpChannel object. Douglas Peterson Microsoft C# .NET 0 20th Sep 2006 11:19 PM
Help me! How to declare a TCPChannel Object Risen Microsoft VB .NET 2 12th Mar 2005 01:53 AM
Could not declare a database object =?Utf-8?B?TmV3IHRvIEFjY2VzczIwMDM=?= Microsoft Access Getting Started 1 9th Jun 2004 09:37 PM
Proper way to declare an object? Max Moor Microsoft Access Form Coding 2 6th May 2004 04:39 AM
When to use 'As New' to declare an object Ritu Microsoft ASP .NET 2 13th Aug 2003 06:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:34 PM.