We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7531fd3 + 90e9647 commit 2ea8579Copy full SHA for 2ea8579
stdlib/public/SDK/Network/NWConnection.swift
@@ -102,6 +102,15 @@ public final class NWConnection : CustomDebugStringConvertible {
102
}
103
104
105
+ /// Retrieve the maximum datagram size that can be sent
106
+ /// on the connection. Any datagrams sent should be less
107
+ /// than or equal to this size.
108
+ public var maximumDatagramSize: Int {
109
+ get {
110
+ return Int(nw_connection_get_maximum_datagram_size(self.nw))
111
+ }
112
113
+
114
private var _currentPath: NWPath? = nil
115
116
/// Current path for the connection, which can be used to extract interface and effective endpoint information
0 commit comments