いろいろなモジュールのコードを読んで切り貼りして output_filter を書いてみました。 まだ動作が微妙で、コンテンツが途中で切れたりします。 このあたりは、日本語の資料が少ないのは当然、英語の資料も少ないです(;´Д`)。 まずは、output_filter を登録 // registers_hooksで ap_register_output_filter("mod_my", my_output_filter, NULL, AP_FTYPE_RESOURCE); // 最後の引数これでよいんだろうか? コンテントハンドラなどで add する。registerだけで動くかと思いきやこれを書かないと呼ばれない。 ap_add_output_filter("mod_my", NULL, r, r->connection); output_filter は出力の度に呼ばれるっぽい。 つま
MonaがWindowsのpingに返事するようになりました。 アドバイスを下さった方どうもありがとうございました。 pingに返事をするようになった瞬間は、Monaで初めてGUIが動いたり、文字が出たりと同じくらい感動しました。 今後は、pingに答える→ICMP応答できる→IP, ARPがうまく動いている→IPのやり取りができる→ウマー という流れになるはずです。 さて親バカですがどうしてもその様子を見てみたいという方は、「やまなし」「おちなし」覚悟で↓をご覧ください。(初wink) →http://mona.sourceforge.jp/higepon/ping.htm pingの応答が遅いのは、QEMU, WINK, Ethereal等々を同時に動かしているからでしょう。
INOUE Seiichiro <inoue@ariel-networks.com>2005/8/29 This is a tutorial on how to use libapr(apache portable runtime). 1. Tutorial Availability 2. libapr skeleton code 3. memory pool (apr_pool_t) 4. Error status (apr_status_t) 5. file handling 6. file lock 7. file-system directory handling 8. character string handling 9. time handling 10. command line options 11. memory map(mmap) 12. DSO(Dynamic Sy
by Zachary C. Miller Introduction This document is designed as a collection of tips and tricks for writing Apache API modules. These are the non-obvious or under-documented things that I have learned in the course of writing Apache modules in C++ for Linux. Some of the recipes are useful in C or C++ but some are specifically geared towards C++. Some are compatible with any platform but many may be
[ はじめに | 排他処理 | 共有メモリ | ファイル入出力 | 書式指定 | リクエストの処理 | C++ | デバッグ | 参考文献 ] はじめに このページでは,私が Apache 2.x 向けのモジュール開発の過程で得た Tips について紹介しています. 排他処理 他のプロセス及びスレッドに対して排他処理を行うには apr_global_lock_t が,他のスレッドに対して排他処理を行うには apr_thread_mutex_t や apr_thread_rwlock_t が利用できます. apr_global_mutex_t の使い方 基本的には,次の手順で使用します. post_config ステージ apr_global_mutex_create を使って apr_global_mutex_t を生成. 必要に応じて unixd_set_global_mutex_per
Need icons for your new website or web application, at the best price there is (free!)? Try one of the following sets:
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く