关于remoting的宿主程序 方法之一:ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.2052/cpguide/html/cpconremotingexampledynamicpublication.htm 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 brunhild提供的方法不太明白。有清楚点的实例吗最好是c#写的,谢谢各位大侠了 服务器: TcpServerChannel tcpsChannel = new TcpServerChannel(channel); ChannelServices.RegisterChannel(tcpsChannel); RemotingConfiguration.RegisterWellKnownServiceType( typeof(BusinessLogic.RemoteObject),"RemoteObject", WellKnownObjectMode.Singleton); RemotingConfiguration.ApplicationName = "DataServer"; RemotingConfiguration.RegisterActivatedServiceType(typeof(BusinessLogic.RemoteObject));客户:对象 = (BusinessLogic.RemoteObject)Activator.GetObject(typeof(BusinessLogic.RemoteObject),"tcp://地址:8089/RemoteObject"); tcp可换成http,如果是通过internet访问的话,可以穿过防火墙 其实例子最重要的就一句:Dim ref1 As ObjRef = RemotingServices.Marshal(object1, "object1uri")它的作用就是将由HOST创建的object1封送为可以被其他远程CLIENT访问的对象,也就是实现了你所讲的HOST和CLIENT公用一个对象。能够帮你的就这么多,能不能理解就看你自己了。 问题 C# treeview 子节点的问题 有谁知道.net开发网站时如果生成静态页面(语言是c#) .net Remoting连接响应太慢,有高人知道原因么? 正则表达式问题 关于自定义WEB控件 如何用vb.net 调用C#的dll 用什么控件显示大量图片 这个菜单的实现方法,帮顶也有分~~~~~~~ 添加不了新行?why? time out 怎样计算一个月的天数
TcpServerChannel tcpsChannel = new TcpServerChannel(channel);
ChannelServices.RegisterChannel(tcpsChannel);
RemotingConfiguration.RegisterWellKnownServiceType( typeof(BusinessLogic.RemoteObject),"RemoteObject", WellKnownObjectMode.Singleton);
RemotingConfiguration.ApplicationName = "DataServer";
RemotingConfiguration.RegisterActivatedServiceType(typeof(BusinessLogic.RemoteObject));
客户:对象 = (BusinessLogic.RemoteObject)Activator.GetObject(typeof(BusinessLogic.RemoteObject),"tcp://地址:8089/RemoteObject");
Dim ref1 As ObjRef = RemotingServices.Marshal(object1, "object1uri")
它的作用就是将由HOST创建的object1封送为可以被其他远程CLIENT访问的对象,也就是实现了你所讲的HOST和CLIENT公用一个对象。能够帮你的就这么多,能不能理解就看你自己了。