diff --git a/src/ipc/context.cr b/src/ipc/context.cr index 4687bf6..51ce20e 100644 --- a/src/ipc/context.cr +++ b/src/ipc/context.cr @@ -1,6 +1,7 @@ require "./lowlevel" require "./message" require "./event" +require "./connection" class IPC::Context property base_timer : Float64 = 0.0 diff --git a/src/ipc/lowlevel.cr b/src/ipc/lowlevel.cr index 99d1f72..f6f9585 100644 --- a/src/ipc/lowlevel.cr +++ b/src/ipc/lowlevel.cr @@ -1,9 +1,15 @@ @[Link("ipc")] lib LibIPC + enum ConnectionType + IPC + External + Server + end + struct Connection - type : UInt8 - spath : LibC::Char* # [4096] # [PATH_MAX] + type : ConnectionType # + spath : LibC::Char* # [4096] # [PATH_MAX] end struct Pollfd