示例#1
0
        public virtual int sceNetResolverCreate(TPointer32 pRid, TPointer buffer, int bufferLength)
        {
            int        newID  = SceUidManager.getNewUid(uidPurpose);
            ResolverID newRID = new ResolverID(newID, true);

            RIDs[newID] = newRID;
            pRid.setValue(newRID.ID);

            return(0);
        }
示例#2
0
        public virtual int sceNetResolverStop(int rid)
        {
            ResolverID currentRID = RIDs[rid];

            if (!currentRID.IDStatus)
            {
                return(SceKernelErrors.ERROR_NET_RESOLVER_ALREADY_STOPPED);
            }

            currentRID.stop();

            return(0);
        }