This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-07-27 15:29:27 +02:00
|
|
|
require "./lowlevel"
|
|
|
|
require "./message"
|
|
|
|
require "./connection"
|
|
|
|
|
|
|
|
class IPC::Event
|
2019-10-26 18:12:59 +02:00
|
|
|
class Timer
|
|
|
|
end
|
|
|
|
|
2019-07-27 15:29:27 +02:00
|
|
|
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
|
|
|
|
|
2019-10-26 18:12:59 +02:00
|
|
|
alias Events = IPC::Event::Timer | IPC::Event::Connection | IPC::Event::Disconnection | IPC::Event::Message | IPC::Event::ExtraSocket | IPC::Event::Switch | IPC::Event::LookUp
|
2019-07-27 15:29:27 +02:00
|
|
|
|