def receiver_thread
            Thread.new(@socket){ |s|
              begin
                loop do
                  begin