Example #1
0
 private void SetupChannelData(string hostName, int port, omg.org.IOP.Codec codec,
                               TaggedComponent[] additionalComponents)
 {
     IiopChannelData newChannelData = new IiopChannelData(hostName, port);
     newChannelData.AddAdditionalTaggedComponent(
         Services.CodeSetService.CreateDefaultCodesetComponent(codec));
     if ((additionalComponents != null) && (additionalComponents.Length > 0))
     {
         newChannelData.AddAdditionalTaggedComponents(additionalComponents);
     }
     m_channelData = newChannelData;
 }
Example #2
0
 public void Setup()
 {
     m_channelData = new IiopChannelData(HOST, PORT);
     m_serFactory = new Ch.Elca.Iiop.Marshalling.SerializerFactory();
     CodecFactory codecFactory =
         new CodecFactoryImpl(m_serFactory);
     m_codec =
         codecFactory.create_codec(
             new omg.org.IOP.Encoding(ENCODING_CDR_ENCAPS.ConstVal, 1, 2));
     IiopUrlUtil iiopUrlUtil =
         IiopUrlUtil.Create(m_codec, new object[] { 
             Services.CodeSetService.CreateDefaultCodesetComponent(m_codec)});
     m_serFactory.Initalize(
         new Ch.Elca.Iiop.Marshalling.SerializerFactoryConfig(), iiopUrlUtil);
 }
 /// <summary><see cref="Ch.Elca.Iiop.IServerTransportFactory.GetListenPoints(object)"/></summary>
 public object[] GetListenPoints(IiopChannelData chanData) {
     object[] result = new object[] { new omg.org.IIOP.ListenPoint(chanData.HostName,
                                                                   (short)((ushort)chanData.Port)) };
     return result;
 }