An
NSPort
implementation for network object
communications which can be used for
interthread/interprocess
communications on the same host, but not
between different hosts.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
NSPort is an abstract class defining
interfaces underlying communications in the
distributed objects framework. Each side of a
connection will have an NSPort
object, responsible for sending and receiving
NSPortMessage
s, which are then passed to delegates when received.
The NSPort must be added to the
NSRunLoop
as an input source.
This class also implements the functionality of
the NSMachPort class on OS X.
Basic constructor returns object capable of send and
receive. By default, the port returned is
an instance of
NSMessagePort
capable only of host-local communication.
However, the NSPortIsMessagePort
user default may be set to NO to change
the behavior so that the returned value is an
instance of the
NSSocketPort
class.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
An
NSPort
implementation for network object
communications based on BSD sockets. Can
be used for interthread/interprocess communications
between same or different hosts (though on same
host
NSMessagePort
will be more efficient).
Note that this class is incompatible with the
latest OS X version.
This is the preferred initialisation method for
NSSocketPort. number
should be a TCP/IP port number or may be
zero for a port on the local host. aHost should be the host for the port or
may be nil for the local host. addr is the IP address that MUST be used
for this port - if it is nil then, for the
local host, the port uses ALL IP addresses, and for a
remote host, the port will use the first address
that works. shouldListen specifies
whether to listen on the port initially.
Sets the default options for use of TLS by socket
ports. Setting nil (the default)
means that TLS is not used. Setting an empty
dictionary means that TLS is used with normal
options.
Sets the default options for use of TLS by socket
ports. Setting nil (the default)
means that TLS is not used. Setting an empty
dictionary means that TLS is used with normal
options.
Overrides the default options for use of TLS by
the receiver. Setting nil (the
default) means that TLS is not used.
Setting an empty dictionary means that TLS is used
with normal options. This method has no effect
on network sessions which are already established.
Sets the TLS options for network connections
created by this port acting as a network client.
Overrides the default options for use of TLS by
the receiver. Setting nil (the
default) means that TLS is not used.
Setting an empty dictionary means that TLS is used
with normal options. This method has no effect
on network sessions which are already established.
Sets the TLS options for network connections
created by this port acting as a network server.