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