This commit is contained in:
Owen Qwen
2026-08-31 16:44:54 -05:00
parent e71b3ada71
commit 5f99d9b137
21 changed files with 1045 additions and 47 deletions
+9 -2
View File
@@ -25,7 +25,7 @@ public enum FrameCodec {
}
public enum IPCOperation: String, Codable, Sendable {
case status, address, peers, routes, ping
case status, address, peers, routes, ping, interfaceStatus
case aliasSet, aliasRemove, aliasList
case firewallAllow, firewallRevoke, firewallList
case textSend, bindText, bindStream, openStream, streamData, streamClose
@@ -39,6 +39,13 @@ public struct IPCMessage: Codable, Sendable {
public var source: String?
public var name: String?
public var port: UInt16?
public var firewallProtocol: FirewallProtocol?
public var interfaceName: String?
public var interfaceAddress: String?
public var interfaceMTU: UInt16?
public var helperState: String?
public var synchronizedRouteCount: Int?
public var dnsState: String?
public var streamID: UInt64?
public var data: Data?
public var ok: Bool?
@@ -46,6 +53,6 @@ public struct IPCMessage: Codable, Sendable {
public var values: [String]?
public init(operation: IPCOperation, requestID: UUID = UUID()) {
self.version = 1; self.operation = operation; self.requestID = requestID
self.version = 2; self.operation = operation; self.requestID = requestID
}
}