Exemplo n.º 1
0
        public KLightSession(Horizon system) : base(system)
        {
            ServerSession = new KLightServerSession(system, this);
            ClientSession = new KLightClientSession(system, this);

            _hasBeenInitialized = true;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public void EnqueueIncomingLightSession(KLightServerSession session)
 {
     AcceptIncomingConnection(_lightIncomingConnections, session);
 }
Exemplo n.º 4
0
 public KLightSession(Horizon system) : base(system)
 {
     ServerSession = new KLightServerSession(system, this);
     ClientSession = new KLightClientSession(system, this);
 }
Exemplo n.º 5
0
 public KLightSession(KernelContext context) : base(context)
 {
     ServerSession = new KLightServerSession(context, this);
     ClientSession = new KLightClientSession(context, this);
 }