在main()方法中,用端口号8086创建一个 system.runtime.channels.tcp信道,该信道
使用system.runtiem.remoting.channels.channelservices注册,使之用于远程对象。
在远程对象注册之后,使服务器一直处于运行状态,直到按任意键为止:
helloserver.cs的完整代码为:
using system;
using system.runtime.remoting;
using system.runtime.remoting.channels;
using system.runtime.remoting.channels.tcp;