|
|
@@ -19,23 +19,6 @@ public struct ServerContext: Sendable {
|
|
|
/// A description of the method being called.
|
|
|
public var descriptor: MethodDescriptor
|
|
|
|
|
|
- /// A description of the remote peer.
|
|
|
- ///
|
|
|
- /// The format of the description should follow the pattern "<transport>:<address>" where
|
|
|
- /// "<transport>" indicates the underlying network transport (such as "ipv4", "unix", or
|
|
|
- /// "in-process"). This is a guideline for how descriptions should be formatted; different
|
|
|
- /// implementations may not follow this format so you shouldn't make assumptions based on it.
|
|
|
- ///
|
|
|
- /// Some examples include:
|
|
|
- /// - "ipv4:127.0.0.1:31415",
|
|
|
- /// - "ipv6:[::1]:443",
|
|
|
- /// - "in-process:27182".
|
|
|
- @available(*, deprecated, renamed: "remotePeer")
|
|
|
- public var peer: String {
|
|
|
- get { remotePeer }
|
|
|
- set { remotePeer = newValue }
|
|
|
- }
|
|
|
-
|
|
|
/// A description of the remote peer.
|
|
|
///
|
|
|
/// The format of the description should follow the pattern "<transport>:<address>" where
|