Sha256: 47267ecad54748cfce4d5a8a940aa9fc107846f4ea007c6b353c9d9ec63a6825
Contents?: true
Size: 521 Bytes
Versions: 6
Compression:
Stored size: 521 Bytes
Contents
require 'integration_helper' module GameMachine describe "udp" do describe "sending messages via udp" do it "should do" do measure(10,10000) do Thread.current['bytes'] ||= client_message.to_byte_array Thread.current['c'] ||= Clients::Client.new(:seed01) Thread.current['c'].send_message(Thread.current['bytes']) message = Thread.current['c'].receive_message ClientMessage.parse_from(message.to_java_bytes) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems