things
This commit is contained in:
parent
77026a249a
commit
70a102dbd7
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user