Content-Length: 219604 | pFad | http://b.hatena.ne.jp/taka222/pth/
のをやってみた。もうちょっと作り込んでから、と思ったけど、まあまあまともに動くので先に公開。 次のようなスクリプトがさくさく動いちゃうよ! <?php function echoing($fd) { echo "connection established\n"; while (!feof($fd)) { fwrite($fd, fgets($fd)); } fclose($fd); echo "connection closed\n"; } $ssock = stream_socket_server('tcp://127.0.0.1:8000'); assert($ssock !== false); for (;;) { $csock = stream_socket_accept($ssock); thread_create('echoing', $csock); fclose($cso
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く
Fetched URL: http://b.hatena.ne.jp/taka222/pth/
Alternative Proxies: