NSPort Class Reference

NSPort 用来代表信道
NSPort 需要被添加到NSRunloop中,NSConnect会初始化的时候会创建NSPort

Foundation defines three concrete subclasses of NSPort
. NSMachPort
and NSMessagePort
allow local (on the same machine) communication only. NSSocketPort
allows for both local and remote communication, but may be more expensive than the others for the local case.

你可能感兴趣的:(NSPort Class Reference)