class NPRPCServant
Swift
class NPRPCServant
Base class for Swift servants
nprpc_swift/Sources/NPRPC/Servant.swift:45
Constructors
init()
A servant not yet activated; see Poa.activateObject.
nprpc_swift/Sources/NPRPC/Servant.swift:50
Properties
var sessionContext: UnsafeMutableRawPointer?
Session context pointer for streaming operations (set during dispatch)
nprpc_swift/Sources/NPRPC/Servant.swift:47
Methods
func dispatch(buffer: FlatBuffer, remoteEndpoint: NPRPCEndpoint)
Override this to handle RPC dispatch
nprpc_swift/Sources/NPRPC/Servant.swift:59
func getClass() -> String
Override this to return the class name/ID of this servant This is typically the fully qualified interface name from the IDL
nprpc_swift/Sources/NPRPC/Servant.swift:54