Method: TCPSocket#recv_loop

Defined in:
lib/polyphony/extensions/socket.rb

#recv_loop(maxlen = 8192) {|String| ... } ⇒ Socket Also known as: read_loop

Receives up to maxlen bytes at a time in an infinite loop. Read buffers will be passed to the given block.

Yields:

  • (String)

    received data

Parameters:

  • (defaults to: 8192)

    maximum bytes to receive

Returns:

  • self



370
371
372
# File 'lib/polyphony/extensions/socket.rb', line 370

def recv_loop(maxlen = 8192, &block)
  Polyphony.backend_recv_loop(self, maxlen, &block)
end