Anonymous
public php v1 · immutable while ( ($read = socket_read($read_fd, 1024)) ) { var_dump($read); switch ( $clients[$index][1] ) { case 0: debug_log("v: %d.", ord($read[0])); debug_log("a: %d.", ord($read[1])); socket_write($read_fd, "\x05\x01"); $clients[$index][1]++; break; case 1: // :o break; case 2: break; } }