def _process_stdin(self):
with nonblocking(sys.stdin.fileno()):<EOL><INDENT>data = self._stdin_reader.read()<EOL><DEDENT>step = <NUM_LIT><EOL>for i in range(<NUM_LIT:0>, len(data), step):<EOL><INDENT>self._send_packet({<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:data>': data[i:i + step],<EOL>})<EOL><DEDENT>
Received data on stdin. Read and send to server.