UDPDirectStack
public class UDPDirectStack: IPStackProtocol, NWUDPSocketDelegate
This stack tranmits UDP packets directly.
-
Declaration
Swift
public var outputFunc: (([Data], [NSNumber]) -> Void)! -
Undocumented
Declaration
Swift
public class UDPDirectStack: IPStackProtocol, NWUDPSocketDelegate -
Input a packet into the stack.
Note
Only process IPv4 UDP packet as of now.
Declaration
Swift
public func input(packet: Data, version: NSNumber?) -> BoolParameters
packetThe IP packet.
versionThe version of the IP packet, i.e., AF_INET, AF_INET6.
Return Value
If the stack accepts in this packet. If the packet is accepted, then it won’t be processed by other IP stacks.
-
Undocumented
Declaration
Swift
public class UDPDirectStack: IPStackProtocol, NWUDPSocketDelegate -
Declaration
Swift
public func stop() -
Declaration
Swift
public func didReceive(data: Data, from: NWUDPSocket)Parameters
datafrom -
Undocumented
Declaration
Swift
public class UDPDirectStack: IPStackProtocol, NWUDPSocketDelegate
View on GitHub
UDPDirectStack Class Reference