Open Classswift 6.0.3Foundation
SocketPort
class SocketPort
class SocketPort
import Foundation
class Port
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol NSCopying
The NSCopying
protocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made.
protocol NSObjectProtocol : AnyObject
The NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
override convenience init()
init?(protocolFamily family: Int32, socketType type: Int32, protocol: Int32, address: Data)
init?(protocolFamily family: Int32, socketType type: Int32, protocol: Int32, socket sock: SocketNativeHandle)
init(remoteWithProtocolFamily family: Int32, socketType type: Int32, protocol: Int32, address: Data)
convenience init?(remoteWithTCPPort port: UInt16, host hostName: String?)
convenience init?(tcpPort port: UInt16)
var address: Data { get }
override var hash: Int { get }
override var isValid: Bool { get }
var `protocol`: Int32 { get }
var protocolFamily: Int32 { get }
var socket: SocketNativeHandle { get }
var socketType: Int32 { get }
override func delegate() -> (any PortDelegate)?
override func invalidate()
override func isEqual(_ object: Any?) -> Bool
override func remove(from runLoop: RunLoop, forMode mode: RunLoop.Mode)
override func schedule(in runLoop: RunLoop, forMode mode: RunLoop.Mode)
override func send(before limitDate: Date, components: NSMutableArray?, from receivePort: Port?, reserved headerSpaceReserved: Int) -> Bool
override func send(before limitDate: Date, msgid msgID: Int, components: NSMutableArray?, from receivePort: Port?, reserved headerSpaceReserved: Int) -> Bool
override func setDelegate(_ anObject: (any PortDelegate)?)