Beispiel #1
0
        public bool Open(object arg)
        {
            try
            {
                _headerLogRecord = Ashley.CreateHeader(AshleyVersion.V1_1, NetDebugLogTransmissionManager.ID_N1,
                                                       (ulong)BiuNetDebugAction.LogRecord, AshleyFlag.Security);
                _headerLogRecord.Security.Alg = AshleySecurityAlg.P4S;


                _server.CC = new ConnectionCreation()
                {
                    Trait            = SocketTrait.Normal,
                    Type             = SocketType.IPv4TCP,
                    Protocol         = _ashley,
                    Handler          = BiuIoManager.Instance.Handlers[NetDebugLogTransmissionManager.Handler_DebugN1].Handler,
                    EndPoint         = this.DebugN1EndPoint,
                    SecurityProvider = _securityProvider
                };

                TransmissionRouter.Instance.AddHop(this);

                return(_server.Create(true));
            }
            catch
            {
                throw;
            }
        }