当前位置: 首页>>代码示例>>C#>>正文


C# BasicStream.instance方法代码示例

本文整理汇总了C#中IceInternal.BasicStream.instance方法的典型用法代码示例。如果您正苦于以下问题:C# BasicStream.instance方法的具体用法?C# BasicStream.instance怎么用?C# BasicStream.instance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IceInternal.BasicStream的用法示例。


在下文中一共展示了BasicStream.instance方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Request

 internal Request(BasicStream os)
 {
     this.os = new BasicStream(os.instance());
     this.os.swap(os);
 }
开发者ID:bholl,项目名称:zeroc-ice,代码行数:5,代码来源:ConnectRequestHandler.cs

示例2: TcpEndpointI

 public TcpEndpointI(BasicStream s)
 {
     _instance = s.instance();
     s.startReadEncaps();
     _host = s.readString();
     _port = s.readInt();
     _timeout = s.readInt();
     _compress = s.readBool();
     s.endReadEncaps();
     calcHashValue();
 }
开发者ID:2008hatake,项目名称:zeroc-ice,代码行数:11,代码来源:TcpEndpointI.cs

示例3: Request

 internal Request(BasicStream os)
 {
     this.os = new BasicStream(os.instance(), Ice.Util.currentProtocolEncoding);
     this.os.swap(os);
 }
开发者ID:Radulfr,项目名称:zeroc-ice,代码行数:5,代码来源:ConnectRequestHandler.cs

示例4: printIdentityFacetOperation

        private static void printIdentityFacetOperation(System.IO.StringWriter s, BasicStream str)
        {
            try
            {
                Ice.Identity identity = new Ice.Identity();
                identity.read__(str);
                s.Write("\nidentity = " + str.instance().identityToString(identity));

                string[] facet = str.readStringSeq();
                s.Write("\nfacet = ");
                if(facet.Length > 0)
                {
                    s.Write(IceUtilInternal.StringUtil.escapeString(facet[0], ""));
                }

                string operation = str.readString();
                s.Write("\noperation = " + operation);
            }
            catch(System.IO.IOException)
            {
                Debug.Assert(false);
            }
        }
开发者ID:Radulfr,项目名称:zeroc-ice,代码行数:23,代码来源:TraceUtil.cs

示例5: UdpEndpointI

 public UdpEndpointI(BasicStream s)
 {
     instance_ = s.instance();
     s.startReadEncaps();
     _host = s.readString();
     _port = s.readInt();
     if(s.getReadEncoding().Equals(Ice.Util.Encoding_1_0))
     {
         s.readByte();
         s.readByte();
         s.readByte();
         s.readByte();
     }
     // Not transmitted.
     //_connect = s.readBool();
     _connect = false;
     _compress = s.readBool();
     s.endReadEncaps();
     calcHashValue();
 }
开发者ID:sbesson,项目名称:zeroc-ice,代码行数:20,代码来源:UdpEndpointI.cs

示例6: UdpEndpointI

 public UdpEndpointI(BasicStream s)
 {
     instance_ = s.instance();
     s.startReadEncaps();
     _host = s.readString();
     _port = s.readInt();
     _protocolMajor = s.readByte();
     _protocolMinor = s.readByte();
     _encodingMajor = s.readByte();
     _encodingMinor = s.readByte();
     if(_protocolMajor != Protocol.protocolMajor)
     {
         Ice.UnsupportedProtocolException e = new Ice.UnsupportedProtocolException();
         e.badMajor = _protocolMajor < 0?_protocolMajor + 255:_protocolMajor;
         e.badMinor = _protocolMinor < 0?_protocolMinor + 255:_protocolMinor;
         e.major = Protocol.protocolMajor;
         e.minor = Protocol.protocolMinor;
         throw e;
     }
     if(_encodingMajor != Protocol.encodingMajor)
     {
         Ice.UnsupportedEncodingException e = new Ice.UnsupportedEncodingException();
         e.badMajor = _encodingMajor < 0?_encodingMajor + 255:_encodingMajor;
         e.badMinor = _encodingMinor < 0?_encodingMinor + 255:_encodingMinor;
         e.major = Protocol.encodingMajor;
         e.minor = Protocol.encodingMinor;
         throw e;
     }
     // Not transmitted.
     //_connect = s.readBool();
     _connect = false;
     _compress = s.readBool();
     s.endReadEncaps();
     calcHashValue();
 }
开发者ID:bholl,项目名称:zeroc-ice,代码行数:35,代码来源:UdpEndpointI.cs


注:本文中的IceInternal.BasicStream.instance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。