pongc & pongd
This commit is contained in:
parent
8998c9adc8
commit
5d19fed727
@ -78,15 +78,8 @@ def main
|
||||
CLI.message.not_nil!
|
||||
end
|
||||
|
||||
message = IPC::Message.new server_fd.not_nil!,
|
||||
CLI.type.to_u8,
|
||||
CLI.user_type.to_u8,
|
||||
mstr
|
||||
|
||||
message.fd = server_fd.not_nil!
|
||||
|
||||
CLI.rounds.times do |i|
|
||||
client.send message
|
||||
client.send server_fd.not_nil!, CLI.user_type.to_u8, mstr.to_slice
|
||||
end
|
||||
when IPC::Event::MessageReceived
|
||||
nb_messages_remaining -= 1
|
||||
|
@ -39,7 +39,7 @@ def main
|
||||
service.timer = CLI.timer # default: 30 seconds
|
||||
|
||||
service.loop do |event|
|
||||
service.pp
|
||||
# service.pp
|
||||
case event
|
||||
when IPC::Event::Timer
|
||||
info "IPC::Event::Timer"
|
||||
|
Reference in New Issue
Block a user