Example #1
0
        public KLightSession(Horizon system) : base(system)
        {
            ServerSession = new KLightServerSession(system, this);
            ClientSession = new KLightClientSession(system, this);

            _hasBeenInitialized = true;
        }
Example #2
0
        public KernelResult EnqueueIncomingLightSession(KLightServerSession session)
        {
            KernelResult result;

            System.CriticalSection.Enter();

            if (_state == ChannelState.Open)
            {
                ServerPort.EnqueueIncomingLightSession(session);

                result = KernelResult.Success;
            }
            else
            {
                result = KernelResult.PortClosed;
            }

            System.CriticalSection.Leave();

            return(result);
        }
Example #3
0
 public void EnqueueIncomingLightSession(KLightServerSession session)
 {
     AcceptIncomingConnection(_lightIncomingConnections, session);
 }
Example #4
0
 public KLightSession(Horizon system) : base(system)
 {
     ServerSession = new KLightServerSession(system, this);
     ClientSession = new KLightClientSession(system, this);
 }
Example #5
0
 public KLightSession(KernelContext context) : base(context)
 {
     ServerSession = new KLightServerSession(context, this);
     ClientSession = new KLightClientSession(context, this);
 }