C
Cralis
Could someone help with trying to help me understand this code. I am
trying to add remote control functionality to an existing application.
I am new to c#.
This starts the server bit of the remote object. However, it creates
'channel', registers it, but then, 'channel' doesn't get a mention
after that. How is 'channel' being used? Can someone explain what
'channel' is? Is it a pipe of sorts? Maybe a listening connection? A
port, listening for connections?
In the code below, Port is an intereger defined and set somewhere
else.
The code does work. I'm just under what it's doing.
TcpServerChannel channel = new TcpServerChannel(Port);
ChannelServices.RegisterChannel(channel, false);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(RCC.ControllerManifest),
"PCS",
WellKnownObjectMode.SingleCall);
trying to add remote control functionality to an existing application.
I am new to c#.
This starts the server bit of the remote object. However, it creates
'channel', registers it, but then, 'channel' doesn't get a mention
after that. How is 'channel' being used? Can someone explain what
'channel' is? Is it a pipe of sorts? Maybe a listening connection? A
port, listening for connections?
In the code below, Port is an intereger defined and set somewhere
else.
The code does work. I'm just under what it's doing.
TcpServerChannel channel = new TcpServerChannel(Port);
ChannelServices.RegisterChannel(channel, false);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(RCC.ControllerManifest),
"PCS",
WellKnownObjectMode.SingleCall);