Пример #1
0
 public TransportProtocolList(TransportProtocolList other) : this(RCFProtoPINVOKE.new_TransportProtocolList__SWIG_1(TransportProtocolList.getCPtr(other)), true)
 {
     if (RCFProtoPINVOKE.SWIGPendingException.Pending)
     {
         throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public TransportProtocolListEnumerator(TransportProtocolList collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Пример #3
0
 /// <summary>
 /// Sets the list of supported protocols the server supports. Clients that connect without using one of the supported protocols are dropped. If the list of supported protocols is empty, all protocols are allowed. Note that supported protocols can also be specified on a server transport, in which case the server transport setting overrides the server setting.
 /// </summary>
 public void SetSupportedTransportProtocols(TransportProtocolList protocols)
 {
     RCFProtoPINVOKE.RcfProtoServer_setSupportedTransportProtocols(swigCPtr, TransportProtocolList.getCPtr(protocols));
     if (RCFProtoPINVOKE.SWIGPendingException.Pending)
     {
         throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
 public void SetRange(int index, TransportProtocolList values)
 {
     RCFProtoPINVOKE.TransportProtocolList_SetRange(swigCPtr, index, TransportProtocolList.getCPtr(values));
     if (RCFProtoPINVOKE.SWIGPendingException.Pending)
     {
         throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #5
0
        /// <summary>
        /// Returns the list of supported protocols for the server.
        /// </summary>
        public TransportProtocolList GetSupportedTransportProtocols()
        {
            TransportProtocolList ret = new TransportProtocolList(RCFProtoPINVOKE.RcfProtoServer_getSupportedTransportProtocols(swigCPtr), false);

            if (RCFProtoPINVOKE.SWIGPendingException.Pending)
            {
                throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #6
0
        /// <summary>
        /// Sets the list of supported protocols the server transport supports. Clients that connect without using one of the supported protocols are dropped. If the list of supported protocols is empty, all protocols are allowed.
        /// </summary>
        public ServerTransport SetSupportedProtocols(TransportProtocolList protocols)
        {
            ServerTransport ret = new ServerTransport(RCFProtoPINVOKE.ServerTransport_setSupportedProtocols(swigCPtr, TransportProtocolList.getCPtr(protocols)), false);

            if (RCFProtoPINVOKE.SWIGPendingException.Pending)
            {
                throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #7
0
        public static TransportProtocolList Repeat(TransportProtocol value, int count)
        {
            IntPtr cPtr = RCFProtoPINVOKE.TransportProtocolList_Repeat((int)value, count);
            TransportProtocolList ret = (cPtr == IntPtr.Zero) ? null : new TransportProtocolList(cPtr, true);

            if (RCFProtoPINVOKE.SWIGPendingException.Pending)
            {
                throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #8
0
        public TransportProtocolList GetRange(int index, int count)
        {
            IntPtr cPtr = RCFProtoPINVOKE.TransportProtocolList_GetRange(swigCPtr, index, count);
            TransportProtocolList ret = (cPtr == IntPtr.Zero) ? null : new TransportProtocolList(cPtr, true);

            if (RCFProtoPINVOKE.SWIGPendingException.Pending)
            {
                throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #9
0
 internal static HandleRef getCPtr(TransportProtocolList obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }