MiniUDP.NetPeer.SetCore C# (CSharp) Метод

SetCore() приватный Метод

private SetCore ( NetCore core ) : void
core NetCore
Результат void
        internal void SetCore(NetCore core)
        {
            this.core = core;
        }

Usage Example

Пример #1
0
        public NetPeer AddConnection(IPEndPoint endpoint, string token)
        {
            if (token == null)
            {
                token = "";
            }
            if (Encoding.UTF8.GetByteCount(token) > NetConfig.MAX_TOKEN_BYTES)
            {
                throw new ApplicationException("Token string too long");
            }

            NetPeer pending = this.controller.BeginConnect(endpoint, token);

            pending.SetCore(this);
            return(pending);
        }
All Usage Examples Of MiniUDP.NetPeer::SetCore