Пример #1
0
        public KSession(KernelContext context, KClientPort parentPort = null) : base(context)
        {
            ServerSession = new KServerSession(context, this);
            ClientSession = new KClientSession(context, this, parentPort);

            _hasBeenInitialized = true;
        }
Пример #2
0
        public KPort(Horizon system, int maxSessions, bool isLight, long nameAddress) : base(system)
        {
            ServerPort = new KServerPort(system, this);
            ClientPort = new KClientPort(system, this, maxSessions);

            IsLight      = isLight;
            _nameAddress = nameAddress;

            _state = ChannelState.Open;
        }
Пример #3
0
        public KPort(KernelContext context, int maxSessions, bool isLight, long nameAddress) : base(context)
        {
            ServerPort = new KServerPort(context, this);
            ClientPort = new KClientPort(context, this, maxSessions);

            IsLight      = isLight;
            _nameAddress = nameAddress;

            _state = ChannelState.Open;
        }
Пример #4
0
        public KClientSession(KernelContext context, KSession parent, KClientPort parentPort) : base(context)
        {
            _parent    = parent;
            ParentPort = parentPort;

            parentPort?.IncrementReferenceCount();

            State = ChannelState.Open;

            CreatorProcess = KernelStatic.GetCurrentProcess();
            CreatorProcess.IncrementReferenceCount();
        }
Пример #5
0
 public KPort(Horizon system) : base(system)
 {
     ServerPort = new KServerPort(system);
     ClientPort = new KClientPort(system);
 }