poll
Karchnu 2020-07-03 22:44:34 +02:00
parent 77026a249a
commit 70a102dbd7
3 changed files with 14 additions and 14 deletions

View File

@ -5,4 +5,4 @@ require "./ipc/event.cr"
require "./ipc/switch.cr"
require "./ipc/context.cr"
require "./ipc/client.cr"
require "./ipc/service.cr"
require "./ipc/server.cr"

View File

@ -153,7 +153,7 @@ class IPC::Context
@closed = true
end
# def pp
# LibIPC.ipc_connections_print @context
# end
def pp
LibIPC.ipc_ctx_print @context
end
end

View File

@ -15,14 +15,14 @@ class IPC::Server < IPC::Context
end
end
# # TODO: replacing IPC::Service by the IPC::NetworkD class?
# class IPC::SwitchingService < IPC::Server
# property switch = IPC::Switch.new
#
# # automatic removal of the fd in the switching list
# def remove_fd (fd : Int)
# super
# @switch.del fd
# end
# end
# TODO: replacing IPC::Service by the IPC::NetworkD class?
class IPC::SwitchingService < IPC::Server
property switch = IPC::Switch.new
# automatic removal of the fd in the switching list
def remove_fd (fd : Int)
super
@switch.del fd
end
end