草庐IT

mach_port_t

全部标签

Destination unreachable(Port unreachable) 错误原因和解决办法

        Destinationunreachable(Portunreachable)是一条由网络设备(如路由器或防火墙)生成的ICMP(InternetControlMessageProtocol)错误消息,用于通知源设备目标设备或端口无法到达。一、什么是ICMPICMP(InternetControlMessageProtocol)是一种网络协议,用于在IP网络中传输错误消息和操作控制消息。它是在网络层(OSI模型的第三层)上运行的协议,主要用于网络设备之间进行通信和交互。ICMP的主要功能包括:(一)错误报告:ICMP被用于向源设备发送错误报告,以指示在数据包传输过程中发生了什么

解决git报错:ssh:connect to host github.com port 22: Connection timed out

如题,git使用中突然报错ssh:connecttohostgithub.comport22:Connectiontimedout通过查阅各种资料,得知原因可能是由于电脑的防火墙或者其他网络原因导致ssh连接方式端口22被封锁。解决方法一:抛弃ssh连接方式,使用http连接。gitconfig--local-e将配置文件的url=git@github.com:username/repo.git一行改为:url=https://github.com/username/repo.git方法二:如果22号端口不行,那就换一个端口进入.ssh文件夹 创建一个config文件将下面的内容复制进去Hos

【win11】Thinkpad14+显示器分屏问题(display port dp口转type-c)

背景:显示屏dp转dp且主机没有dp口打开右下角开关,设置信号输入为dp模式确认电脑typec口可以传输音视频购买dp母转typec线win+x打开设备管理器,找到显示适配器启用如果显失败需要下载驱动软件驱动下载地址下载完后重启,再win+x打开适配器右键启用win+p投屏

MACH_TASK_BASIC_INFO 的 Swift 指针问题

我正在尝试将ObjCstackoverflow答案转换为Swift但失败了。看起来我正在通过UnsafeMutablePointer当我应该通过inoutmach_msg_type_number_t我似乎无法解决我的问题。根据我对Swift指针文档(不多)的理解,这些应该可以互换......?下面有更多信息。这是objective-c:structtask_basic_infoinfo;mach_msg_type_number_tsize=sizeof(info);kern_return_tkerr=task_info(mach_task_self(),TASK_BASIC_INFO,

MACH_TASK_BASIC_INFO 的 Swift 指针问题

我正在尝试将ObjCstackoverflow答案转换为Swift但失败了。看起来我正在通过UnsafeMutablePointer当我应该通过inoutmach_msg_type_number_t我似乎无法解决我的问题。根据我对Swift指针文档(不多)的理解,这些应该可以互换......?下面有更多信息。这是objective-c:structtask_basic_infoinfo;mach_msg_type_number_tsize=sizeof(info);kern_return_tkerr=task_info(mach_task_self(),TASK_BASIC_INFO,

ios - Apple Mach-O Linker (ld) Error Group with Swift 3 & Xcode 9 GM

这在GMXcode(和iOS11)之前运行良好。现在我得到这些错误:AppleMach-OLinker(ld)ErrorGroup"__T0So20AVCapturePhotoOutputC12AVFoundation01_abC16SwiftNativeTypesACWP",referencedfrom:xxxxxxxxxx"__T012AVFoundation37_AVCapturePhotoOutputSwiftNativeTypesPAAE012availableRawc11PixelFormatG0SaySo8NSNumberCGfg",referencedfrom:xxxx

ios - Apple Mach-O Linker (ld) Error Group with Swift 3 & Xcode 9 GM

这在GMXcode(和iOS11)之前运行良好。现在我得到这些错误:AppleMach-OLinker(ld)ErrorGroup"__T0So20AVCapturePhotoOutputC12AVFoundation01_abC16SwiftNativeTypesACWP",referencedfrom:xxxxxxxxxx"__T012AVFoundation37_AVCapturePhotoOutputSwiftNativeTypesPAAE012availableRawc11PixelFormatG0SaySo8NSNumberCGfg",referencedfrom:xxxx

postgresql13远程连接报错 Connection to 117.50.184.237:5432 refused. Check that the hostname and port are c

报错信息Connectiontohostname:portrefused.CheckthatthehostnameandportarecorrectandthatthepostmasterisacceptingTCP/IPconnections.Connectionrefused:nofurtherinformation解决方案修开配置文件vim/var/lib/pgsql/13/data/postgresql.conf添加以下内容并保存如图listen_addresses='*'重启systemctlrestartpostgresql-13.service再次连接报错FATAL:nopg_h

ios - Apple Mach-O 链接器错误 sqlite3

我在构建我的应用程序时遇到了这个错误。谁能帮我解决这个问题?我正在使用swift和parse.com。非常感谢您的帮助!由于我无法发布图片,下面我发布了整个错误消息。Undefinedsymbolsforarchitecturei386:"_sqlite3_bind_blob",referencedfrom:-[PFSQLiteDatabase_bindObject:toColumn:inStatement:]inParse(PFSQLiteDatabase.o)"_sqlite3_bind_double",referencedfrom:-[PFSQLiteDatabase_bindO

ios - Apple Mach-O 链接器错误 sqlite3

我在构建我的应用程序时遇到了这个错误。谁能帮我解决这个问题?我正在使用swift和parse.com。非常感谢您的帮助!由于我无法发布图片,下面我发布了整个错误消息。Undefinedsymbolsforarchitecturei386:"_sqlite3_bind_blob",referencedfrom:-[PFSQLiteDatabase_bindObject:toColumn:inStatement:]inParse(PFSQLiteDatabase.o)"_sqlite3_bind_double",referencedfrom:-[PFSQLiteDatabase_bindO