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.
TcpServerChanne l channel = new TcpServerChanne l(Port);
ChannelServices .RegisterChanne l(channel, false);
RemotingConfigu ration.Register WellKnownServic eType(
typeof(RCC.Cont rollerManifest) ,
"PCS",
WellKnownObject Mode.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.
TcpServerChanne l channel = new TcpServerChanne l(Port);
ChannelServices .RegisterChanne l(channel, false);
RemotingConfigu ration.Register WellKnownServic eType(
typeof(RCC.Cont rollerManifest) ,
"PCS",
WellKnownObject Mode.SingleCall );
Comment