+ // fprintf(STDERR, "SOCKET ADD: %s\n", $this->socket);
+ $this->kalive = $curtime + $kalive;
+ }
+
+ static function pendingpage_continue($socket, $curtime, $kalive, $method,
+ $header, $get, $post, $cookie,
+ $path, $addr, $rest, $cont)
+ {
+ $thiz = static::pendingpage_staminal($socket, PENDINGPAGE_CONTINUE, $curtime, $kalive, $method,
+ $header, $get, $post, $cookie, $path, $addr, $rest, $cont);
+ $thiz->to_continuing();
+
+ return $thiz;
+ }
+
+ function context_get(&$header, &$socket, &$path, &$addr, &$get, &$post, &$cookie)
+ {
+ $header = $this->header;
+ $socket = $this->socket;
+ $path = $this->path;
+ $addr = $this->addr;
+ $get = $this->get;
+ post_manage($post, $this->cont);
+ $cookie = $this->cookie;
+ fprintf(STDERR, "SOCKET GET: %s\n", $this->socket);
+ }
+
+ function to_continuing()
+ {
+ // printf("TRY FLUSH CREATE\n");
+ $header = array();
+ $header['HTTP-Response'] = "100 Continue";
+ $hea = headers_render($header, 0);
+ $hea_sz = mb_strlen($hea, "ASCII");
+
+ $this->status = PENDINGPAGE_CONTINUE;
+ $this->msg = $hea;
+ $this->msg_sz = $hea_sz;
+ }
+
+ static function pendingpage_waiting($socket, $curtime, $kalive, $method, $header,
+ $get, $post, $cookie, $path, $addr, $rest, $cont)
+ {
+ return (static::pendingpage_staminal($socket, PENDINGPAGE_WAITDATA, $curtime, $kalive, $method,
+ $header, $get, $post, $cookie, $path, $addr, $rest, $cont));