37 lines
712 B
Crystal
37 lines
712 B
Crystal
|
require "./lowlevel"
|
||
|
require "./message"
|
||
|
require "./connection"
|
||
|
|
||
|
class IPC::Event
|
||
|
class Connection
|
||
|
getter connection : IPC::Connection
|
||
|
def initialize(@connection)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class Disconnection
|
||
|
getter connection : IPC::Connection
|
||
|
def initialize(@connection)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class Message
|
||
|
getter message : ::IPC::Message
|
||
|
getter connection : IPC::Connection
|
||
|
def initialize(@message, @connection)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class ExtraSocket < IPC::Event::Message
|
||
|
end
|
||
|
|
||
|
class Switch < IPC::Event::Message
|
||
|
end
|
||
|
|
||
|
class LookUp < IPC::Event::Message
|
||
|
end
|
||
|
end
|
||
|
|
||
|
alias Events = IPC::Event::Connection | IPC::Event::Disconnection | IPC::Event::Message | IPC::Event::ExtraSocket | IPC::Event::Switch | IPC::Event::LookUp
|
||
|
|