SockManager
public class SockManager
SockManager is a class that wraps a golang sockManager
object
Should not be used on its own
-
Class constructor using sockBasePath passed as parameter as UDS base path
Throws
SockManagerError
: If the initialization of the socket manager failedDeclaration
Swift
public init(_ sockBasePath: URL) throws
Parameters
sockBasePath
The path where the UDS will be created
-
Creates an UDS and returns its path
Throws
SockManagerError
: If the socket creation failedDeclaration
Swift
public func newSockPath() throws -> String
Return Value
The path of the created socket