예제 #1
0
파일: Authority.cs 프로젝트: fraga/cs-api
        public static Authority FromNative(Knuth.Native.Config.Authority native)
        {
            var res = new Authority();

            res.Ip   = native.ip;
            res.Port = native.port;
            return(res);
        }
예제 #2
0
파일: Authority.cs 프로젝트: fraga/cs-api
        public Knuth.Native.Config.Authority ToNative()
        {
            var native = new Knuth.Native.Config.Authority();

            native.ip   = this.Ip;
            native.port = this.Port;
            return(native);
        }
예제 #3
0
파일: Authority.cs 프로젝트: k-nuth/cs-api
        public static Authority FromNative(Knuth.Native.Config.Authority native)
        {
            var res = new Authority();

            // res.Ip = Helper.PtrToString(native.ip);
            res.Ip   = native.ip;
            res.Port = native.port;
            return(res);
        }
예제 #4
0
파일: Authority.cs 프로젝트: k-nuth/cs-api
        public Knuth.Native.Config.Authority ToNative()
        {
            var native = new Knuth.Native.Config.Authority();

            // native.ip = Helper.StringToPtr(this.Ip);
            native.ip   = this.Ip;
            native.port = this.Port;
            return(native);
        }