資源簡介
最新Theos文件,已親測可用, 內含libsubstrate.dylib文件直接下載,放入相應路徑即可使用, 省時省力

代碼片段和文件信息
#import?
#import?
#define?LIGHTMESSAGING_USE_ROCKETBOOTSTRAP?0
#import?“rocketbootstrap_internal.h“
static?CFMutableSetRef?allowedNames;
static?const?uint32_t?one?=?1;
static?void?machPortCallback(CFMachPortRef?port?void?*bytes?CFIndex?size?void?*info)
{
LMMessage?*request?=?bytes;
if?(!LMDataWithSizeIsValidMessage(bytes?size))?{
LMSendReply(request->head.msgh_remote_port?NULL?0);
LMResponseBufferFree(bytes);
return;
}
//?Send?Response
const?void?*data?=?LMMessageGetData(request);
size_t?length?=?LMMessageGetDataLength(request);
const?void?*reply_data?=?NULL;
uint32_t?reply_length?=?0;
if?(length)?{
CFStringRef?name?=?CFStringCreateWithBytes(kCFAllocatorDefault?data?length?kCFStringEncodingUTF8?false);
if?(name)?{
switch?(request->head.msgh_id)?{
case?0:?//?Register
#ifdef?DEBUG
CFLog(kCFLogLevelWarning?CFSTR(“Unlocking?%@“)?name);
#endif
CFSetAddValue(allowedNames?name);
break;
case?1:?//?Query
if?(CFSetContainsValue(allowedNames?name))?{
reply_data?=?&one;
reply_length?=?sizeof?one;
#ifdef?DEBUG
CFLog(kCFLogLevelWarning?CFSTR(“Queried?%@?is?unlocked“)?name);
#endif
}?else?{
#ifdef?DEBUG
CFLog(kCFLogLevelWarning?CFSTR(“Queried?%@?is?locked!“)?name);
#endif
}
break;
case?2:
//?Good?morning?still?awake
reply_data?=?&one;
reply_length?=?sizeof?one;
break;
}
CFRelease(name);
}
}
LMSendReply(request->head.msgh_remote_port?reply_data?reply_length);
LMResponseBufferFree(bytes);
}
int?main(int?argc?char?*argv[])
{
allowedNames?=?CFSetCreateMutable(kCFAllocatorDefault?0?&kCFTypeSetCallBacks);
LMCheckInService(connection.serverName?CFRunLoopGetCurrent()?machPortCallback?NULL);
notify_post(“com.rpetrich.rocketd.started“);
CFRunLoopRun();
return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-09-05?16:23??theos\
?????文件???????35367??2018-09-05?16:23??theos\LICENSE.md
?????目錄???????????0??2018-09-05?16:23??theos\sdks\
?????文件???????????0??2018-09-05?16:23??theos\sdks\.keep
?????目錄???????????0??2018-09-05?16:23??theos\bin\
?????文件?????????491??2018-09-05?16:23??theos\bin\deb_build_num.sh
?????文件????????1033??2018-09-05?16:23??theos\bin\update-git-repo
?????文件?????????213??2018-09-05?16:23??theos\bin\install.mergeDir
?????文件?????????892??2018-09-05?16:23??theos\bin\fakeroot.sh
?????文件?????????148??2018-09-05?16:23??theos\bin\install.copyFile
?????文件?????????220??2018-09-05?16:23??theos\bin\post-update
?????文件????????5273??2018-09-05?16:23??theos\bin\dm.pl
?????文件?????????980??2018-09-05?16:23??theos\bin\package_version.sh
?????文件????????1022??2018-09-05?16:23??theos\bin\denicify.pl
?????文件?????????437??2018-09-05?16:23??theos\bin\target.pl
?????目錄???????????0??2018-09-05?16:23??theos\bin\lib\
?????目錄???????????0??2018-09-05?16:23??theos\bin\lib\NIC\
?????文件????????1216??2018-09-05?16:23??theos\bin\lib\NIC\NICType.pm
?????目錄???????????0??2018-09-05?16:23??theos\bin\lib\NIC\NICba
?????文件????????1065??2018-09-05?16:23??theos\bin\lib\NIC\NICba
?????文件?????????600??2018-09-05?16:23??theos\bin\lib\NIC\NICba
?????文件?????????365??2018-09-05?16:23??theos\bin\lib\NIC\NICba
?????目錄???????????0??2018-09-05?16:23??theos\bin\lib\NIC\Formats\
?????文件????????3382??2018-09-05?16:23??theos\bin\lib\NIC\Formats\NICTar.pm
?????文件????????1212??2018-09-05?16:23??theos\bin\lib\NIC\Formats\NIC1.pm
?????目錄???????????0??2018-09-05?16:23??theos\bin\lib\NIC\Formats\NICTar\
?????文件?????????189??2018-09-05?16:23??theos\bin\lib\NIC\Formats\NICTar\Symli
?????文件?????????287??2018-09-05?16:23??theos\bin\lib\NIC\Formats\NICTar\_TarMixin.pm
?????文件?????????355??2018-09-05?16:23??theos\bin\lib\NIC\Formats\NICTar\File.pm
?????文件?????????274??2018-09-05?16:23??theos\bin\lib\NIC\Formats\NICTar\Directory.pm
?????目錄???????????0??2018-09-05?16:23??theos\bin\lib\NIC\Bridge\
............此處省略1379個文件信息
評論
共有 條評論