tongueroo / em_data_chopped

demo app to help with EM receive_data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# start listener in one window

$ ruby listener.rb



# send a long piece of data from another terminal
$ ruby talker.rb


################################################################################
tung@walle ~/Sites/br/em_data_chopped $ ruby listener.rb
listening
!!!!!
16384
!!!!!
16384
!!!!!
16384
!!!!!
16384
!!!!!
16384
!!!!!
16384
!!!!!
16384
!!!!!
3416



Thats one data packet, receive_data only receives it at 16384

About

demo app to help with EM receive_data


Languages

Language:Ruby 100.0%