示例#1
0
        /// <summary>
        /// Sets the maximum number of simultaneous connections to the server transport.
        /// </summary>
        public ServerTransport SetConnectionLimit(uint connectionLimit)
        {
            ServerTransport ret = new ServerTransport(RCFProtoPINVOKE.ServerTransport_setConnectionLimit(swigCPtr, connectionLimit), false);

            if (RCFProtoPINVOKE.SWIGPendingException.Pending)
            {
                throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#2
0
        /// <summary>
        /// Adds a transport endpoint to the server.
        /// </summary>
        public ServerTransport AddEndpoint(Endpoint endpoint)
        {
            ServerTransport ret = new ServerTransport(RCFProtoPINVOKE.RcfProtoServer_addEndpoint(swigCPtr, Endpoint.getCPtr(endpoint)), false);

            if (RCFProtoPINVOKE.SWIGPendingException.Pending)
            {
                throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#3
0
        /// <summary>
        /// Sets maximum incoming message length. Incoming messages that are larger than this size will be dropped.
        /// </summary>
        public ServerTransport SetMaxIncomingMessageLength(uint maxMessageLength)
        {
            ServerTransport ret = new ServerTransport(RCFProtoPINVOKE.ServerTransport_setMaxIncomingMessageLength(swigCPtr, maxMessageLength), false);

            if (RCFProtoPINVOKE.SWIGPendingException.Pending)
            {
                throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#4
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);
        }
示例#5
0
        /// <summary>
        /// Sets the thread pool that the server transport will use.
        /// </summary>
        public ServerTransport SetThreadPool(ThreadPool threadPoolPtr)
        {
            ServerTransport ret = new ServerTransport(RCFProtoPINVOKE.ServerTransport_setThreadPool(swigCPtr, ThreadPool.getCPtr(threadPoolPtr)), false);

            if (RCFProtoPINVOKE.SWIGPendingException.Pending)
            {
                throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#6
0
        /// <summary>
        /// Sets the initial number of listening connections that are created when the server transport starts.
        /// </summary>
        public ServerTransport SetInitialNumberOfConnections(uint initialNumberOfConnections)
        {
            ServerTransport ret = new ServerTransport(RCFProtoPINVOKE.ServerTransport_setInitialNumberOfConnections(swigCPtr, initialNumberOfConnections), false);

            if (RCFProtoPINVOKE.SWIGPendingException.Pending)
            {
                throw RCFProtoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#7
0
 internal static HandleRef getCPtr(ServerTransport obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }