Example #1
0
 //
 // Marshal the endpoint
 //
 public override void streamWrite(BasicStream s)
 {
     s.writeShort(Ice.TCPEndpointType.value);
     s.startWriteEncaps();
     s.writeString(_host);
     s.writeInt(_port);
     s.writeInt(_timeout);
     s.writeBool(_compress);
     s.endWriteEncaps();
 }
Example #2
0
        //
        // Marshal the reference.
        //
        public virtual void streamWrite(BasicStream s)
        {
            //
            // Don't write the identity here. Operations calling streamWrite
            // write the identity.
            //

            //
            // For compatibility with the old FacetPath.
            //
            if(facet_.Length == 0)
            {
                s.writeStringSeq(null);
            }
            else
            {
                string[] facetPath = { facet_ };
                s.writeStringSeq(facetPath);
            }

            s.writeByte((byte)mode_);

            s.writeBool(secure_);

            // Derived class writes the remainder of the reference.
        }
Example #3
0
 public override void streamWriteImpl(BasicStream s)
 {
     base.streamWriteImpl(s);
     s.writeInt(_timeout);
     s.writeBool(_compress);
 }
Example #4
0
 //
 // Marshal the endpoint
 //
 public override void streamWriteImpl(BasicStream s)
 {
     base.streamWriteImpl(s);
     if(s.getWriteEncoding().Equals(Ice.Util.Encoding_1_0))
     {
         Ice.Util.Protocol_1_0.write__(s);
         Ice.Util.Encoding_1_0.write__(s);
     }
     // Not transmitted.
     //s.writeBool(_connect);
     s.writeBool(_compress);
 }
Example #5
0
 //
 // Marshal the endpoint
 //
 public override void streamWrite(BasicStream s)
 {
     s.writeShort(Ice.UDPEndpointType.value);
     s.startWriteEncaps();
     s.writeString(_host);
     s.writeInt(_port);
     if(s.getWriteEncoding().Equals(Ice.Util.Encoding_1_0))
     {
         Ice.Util.Protocol_1_0.write__(s);
         Ice.Util.Encoding_1_0.write__(s);
     }
     // Not transmitted.
     //s.writeBool(_connect);
     s.writeBool(_compress);
     s.endWriteEncaps();
 }
Example #6
0
 //
 // Marshal the endpoint
 //
 public override void streamWrite(BasicStream s)
 {
     s.writeShort(Ice.UDPEndpointType.value);
     s.startWriteEncaps();
     s.writeString(_host);
     s.writeInt(_port);
     s.writeByte(_protocolMajor);
     s.writeByte(_protocolMinor);
     s.writeByte(_encodingMajor);
     s.writeByte(_encodingMinor);
     // Not transmitted.
     //s.writeBool(_connect);
     s.writeBool(_compress);
     s.endWriteEncaps();
 }