Untitled

From Blush Tamarin, 1 Year ago, written in PHP, viewed 129 times.
URL https://paste.nwps.fi/view/3951f49b Embed
Download Paste or View Raw
  1. function console_read() { return($this->output->putserv(fgets($this->console, 512))); }
  2. function console_open() { return($this->console = fopen('php://stdin', 'r')); }
  3. function console_close() { fclose($this->console); }
  4.  
  5.  
  6. function online()
  7. {
  8. ... check for socket recv data
  9. ... other schtuff
  10.  
  11. $null = NULL;
  12. $stdin = array(STDIN);
  13. if (stream_select($stdin,$null,$null,0) > 0) { $this->console_read(); }
  14.  
  15. ... other schtuff
  16. }

Reply to "Untitled"

Here you can reply to the paste above