R
R Srinivasan
folks :
a) i am attempting to translate the following C# code into C++. the
compiler complains about System.Runtime.Remoting.Channels.Tcp saying Tcp is
not part of the Channels namespace. Is there something special I have to do?
b) Basically the reason i need to do this is to access some port level
routines. I am not sure I even want to attempt that from C#. (_inpb, _outpb
for example). Clues most welcome.
using System.Runtime.Remoting ;
using System.Runtime.Remoting.Channels ;
using System.Runtime.Remoting.Channels.Tcp ;
public class CoHello : MarshalByRefObject
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
TcpChannel channel = new TcpChannel(4000) ;
ChannelServices.RegisterChannel(channel) ;
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(CoHello) ,
"HelloDotNet" ,
WellKnownObjectMode.Singleton ) ;
System.Console.WriteLine("Hit <enter> to exit...");
System.Console.ReadLine() ;
}
public void SayHello()
{
Console.WriteLine("Hello Called");
}
}
a) i am attempting to translate the following C# code into C++. the
compiler complains about System.Runtime.Remoting.Channels.Tcp saying Tcp is
not part of the Channels namespace. Is there something special I have to do?
b) Basically the reason i need to do this is to access some port level
routines. I am not sure I even want to attempt that from C#. (_inpb, _outpb
for example). Clues most welcome.
using System.Runtime.Remoting ;
using System.Runtime.Remoting.Channels ;
using System.Runtime.Remoting.Channels.Tcp ;
public class CoHello : MarshalByRefObject
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
TcpChannel channel = new TcpChannel(4000) ;
ChannelServices.RegisterChannel(channel) ;
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(CoHello) ,
"HelloDotNet" ,
WellKnownObjectMode.Singleton ) ;
System.Console.WriteLine("Hit <enter> to exit...");
System.Console.ReadLine() ;
}
public void SayHello()
{
Console.WriteLine("Hello Called");
}
}