home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2003 May
/
PCWorld_2003-05_cd.bin
/
Komunik
/
apache
/
apache_2.0.45-win32-x86-no_ssl.msi
/
Data.Cab
/
F232599_dso.html.ko.euckr
< prev
next >
Wrap
Extensible Markup Language
|
2003-03-30
|
12KB
|
310 lines
<?xml version="1.0" encoding="EUC-KR"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<!-- ┐δ╛ε ░░└╠ ▒Γ┴ª -->
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>╡┐└√░°└»░┤├╝ (DSO) ┴÷┐°</title>
</head>
<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
vlink="#000080" alink="#FF0000">
<div align="center">
<img src="images/sub.gif" alt="[APACHE DOCUMENTATION]" />
<h3>Apache HTTP Server Version 2.0</h3>
</div>
<h1 align="center">╡┐└√░°└»░┤├╝ (DSO) ┴÷┐°</h1>
<p>╛╞╞──í └Ñ╝¡╣÷┤┬ ░ⁿ╕«└┌░í ╕≡╡Γ╡Θ└╗ ╝▒┼├╟╧┐⌐ ╝¡╣÷┐í ╞≈╟╘╟╥
▒Γ┤╔└╗ ░ß┴ñ╟╥ ╝÷ └╓┤┬ ╕≡╡Γ╚¡╡╚ ╟┴╖╬▒╫╖Ñ└╠┤┘. ╕≡╡Γ└║ ╝¡╣÷░í ──╞─└╧╡╔╢º
<code>httpd</code> ╜╟╟α╞─└╧┐í ┴ñ└√└╕╖╬ ──╞─└╧╡╔ ╝÷ └╓┤┘.
╛╞┤╧╕Θ ╕≡╡Γ└║ ┴▀╜╔└╠ ╡╟┤┬ <code>httpd</code> ╜╟╟α╞─└╧░· ║░╡╡╖╬
╡┐└√░°└»░┤├╝(Dynamic Shared Objects, DSOs)╖╬ ──╞─└╧╡╔ ╝÷ └╓┤┘.
DSO ╕≡╡Γ└║ ╝¡╣÷░í ──╞─└╧╡╔╢º ──╞─└╧╟╧░┼│¬ Apache Extension
Tool (<a href="programs/apxs.html">apxs</a>)└╗ ╗τ┐δ╟╧┐⌐ │¬┴▀┐í
──╞─└╧╟╧░φ ├▀░í╟╥ ╝÷ └╓┤┘.</p>
<p>└╠ ╣«╝¡┤┬ DSO ╕≡╡Γ ╗τ┐δ╣²░· ░ⁿ╖├╡╚ └╠╖╨└╗ ╝│╕φ╟╤┤┘.</p>
<ul>
<li><a href="#implementation">▒╕╟÷</a></li>
<li><a href="#usage">╗τ┐δ╣² ┐Σ╛α</a></li>
<li><a href="#background">╣Φ░µ┴÷╜─</a></li>
<li><a href="#advantages">└σ┴í░· ┤▄┴í</a></li>
</ul>
<hr />
<table border="1">
<tr>
<td valign="top"><strong>░ⁿ╖├╡╚ ╕≡╡Γ</strong><br />
<br />
<a href="mod/mod_so.html">mod_so</a><br />
</td>
<td valign="top"><strong>░ⁿ╖├╡╚ ┴÷╜├╛ε</strong><br />
<br />
<a href="mod/mod_so.html#loadmodule">LoadModule</a><br />
</td>
</tr>
</table>
<h2><a id="implementation"
name="implementation">▒╕╟÷</a></h2>
<p>╛╞╞──í ╕≡╡Γ└╗ └╨╛ε╡Θ└╠▒Γ└º╟╤ DSO ┴÷┐°└║ ╛╞╞──í ╟┘╜╔┐í
┴ñ└√└╕╖╬ ──╞─└╧╡╟╛▀╟╥
<a href="mod/mod_so.html"><code>mod_so.c</code></a>╢≤┤┬
╕≡╡Γ└╠ ┴ª░°╟╤┤┘. └╠┤┬ <code>core.c</code>╕ª ┴ª┐▄╟╧░φ
DSO░í ╡╔ ╝÷ ╛°┤┬ └»└╧╟╤ ╕≡╡Γ└╠┤┘. ╜╟┴ª╖╬ ┤┘╕Ñ ╕≡╡τ ╛╞╞──í ╕≡╡Γ└║
░ó░ó <a href="install.html">╝│─í ╣«╝¡</a>┐í╝¡ ╝│╕φ╟╤
<code>configure</code>└╟ <code>--enable-<i>module</i>=shared</code>
┐╔╝╟└╗ ╗τ┐δ╟╧┐⌐ DSO╖╬ ──╞─└╧╟╥ ╝÷ └╓┤┘. ╕≡╡Γ└╠
<code>mod_foo.so</code>┐═ ░░└╠ DSO╖╬ ──╞─└╧╡╚╚─ <code>httpd.conf</code>
╞─└╧┐í <a href="mod/mod_so.html"><code>mod_so</code></a>└╟
<a href="mod/mod_so.html#loadmodule"><code>LoadModule</code></a>
╕φ╖╔╛ε╕ª ╗τ┐δ╟╧┐⌐ ╝¡╣÷ ╜├└█╜├ ╚ñ└║ └τ╜├└█╜├ ▒╫ ╕≡╡Γ└╗ └╨╛ε╡Θ└╧
╝÷ └╓┤┘.</p>
<p>╛╞╞──í ╕≡╡Γ(╞»╚≈ ┴ª╗∩└╟ ╕≡╡Γ)╖╬ ╗τ┐δ╟╥ DSO ╞─└╧└╗ ╜▒░╘
╕╕╡Θ▒Γ└º╟╪ <a href="programs/apxs.html">apxs</a> (<em>APache
eXtenSion</em>)╢≤┤┬ ╗⌡╖╬┐ε ┴÷┐° ╟┴╖╬▒╫╖Ñ└╠ └╓┤┘.
└╠┤┬ ╛╞╞──í ╝╥╜║ ╞«╕« <em>╣█┐í╝¡</em> DSO╖╬ ╗τ┐δ╟╥ ╕≡╡Γ└╗
──╞─└╧╟╥╢º ╗τ┐δ╟╤┤┘. ░││Σ└║ ╜▒┤┘. ╛╞╞──í╕ª ╝│─í╟╥╢º
<code>configure</code>┐═ <code>make install</code>└╠
╛╞╞──í C ╟∞┤⌡╞─└╧└╗ ╝│─í╟╧░φ, DSO ╞─└╧└╗ ──╞─└╧╟╧▒Γ└º╟╤
╟├╖í╞√ ╞»└»└╟ ──╞─└╧╖» ┐╔╝╟░· ╕╡─┐ ┐╔╝╟└╗ <code>apxs</code>
╟┴╖╬▒╫╖Ñ┐í ╛┤┤┘. ▒╫╖í╝¡ ╗τ┐δ└┌┤┬ <code>apxs</code>╕ª
╗τ┐δ╟╧┐⌐ ╛╞╞──í ╣Φ╞≈║╗ ╝╥╜║ ╞«╕«╛°└╠, ╢╟ DSO ┴÷┐°└╗ └º╟╤ ╟├╖í╞√
╞»└»└╟ ──╞─└╧╖» ┐╔╝╟┐═ ╕╡─┐ ┐╔╝╟┐í ╜┼░µ└╗ ╛▓┴÷╛╩░φ └┌╜┼└╟
╛╞╞──í ╕≡╡Γ ╝╥╜║╕ª ──╞─└╧╟╥ ╝÷ └╓┤┘.</p>
<h2><a id="usage" name="usage">╗τ┐δ╣² ┐Σ╛α</a></h2>
<p>Apache 2.0└╟ DSO ▒Γ┤╔┐í ┤δ╟╤ ┬¬░φ ░ú╖½╟╤ ┐Σ╛α└╠┤┘:</p>
<ol>
<li>
<em>╣Φ╞≈║╗┐í └╓┤┬</em> ╛╞╞──í ╕≡╡Γ└╗ ──╞─└╧╟╧░φ ╝│─í╟╧┤┬ ░µ┐∞.
┐╣╕ª ╡Θ╛ε <code>mod_foo.c</code>╕ª DSO <code>mod_foo.so</code>╖╬:
<table bgcolor="#f0f0f0" cellpadding="10">
<tr>
<td>
<pre>
$ ./configure --prefix=/path/to/install
--enable-foo=shared
$ make install
</pre>
</td>
</tr>
</table>
</li>
<li>
<em>┴ª╗∩└╟</em> ╛╞╞──í ╕≡╡Γ└╗ ──╞─└╧╟╧░φ ╝│─í╟╧┤┬ ░µ┐∞. ┐╣╕ª ╡Θ╛ε
<code>mod_foo.c</code>╕ª DSO <code>mod_foo.so</code>╖╬:
<table bgcolor="#f0f0f0" cellpadding="10">
<tr>
<td>
<pre>
$ ./configure --add-module=module_type:/path/to/3rdparty/mod_foo.c
--enable-foo=shared
$ make install
</pre>
</td>
</tr>
</table>
</li>
<li>
░°└» ╕≡╡Γ└╗ <em>┤┘└╜┐í ╝│─í╟╧▒Γ└º╟╪</em> ╛╞╞──í╕ª ▒╕╝║╟╧┤┬ ░µ┐∞:
<table bgcolor="#f0f0f0" cellpadding="10">
<tr>
<td>
<pre>
$ ./configure --enable-so
$ make install
</pre>
</td>
</tr>
</table>
</li>
<li>
<em>┴ª╗∩└╟</em> ╛╞╞──í ╕≡╡Γ└╗ ──╞─└╧╟╧░φ ╝│─í╟╧┤┬ ░µ┐∞.
<code>mod_foo.c</code>╕ª <a href="programs/apxs.html">apxs</a>╕ª
╗τ┐δ╟╧┐⌐ ╛╞╞──í ╝╥╜║ ╞«╕« <em>╣█┐í╝¡</em> DSO
<code>mod_foo.so</code>╖╬:
<table bgcolor="#f0f0f0" cellpadding="10">
<tr>
<td>
<pre>
$ cd /path/to/3rdparty
$ apxs -c mod_foo.c
$ apxs -i -a -n foo mod_foo.la
</pre>
</td>
</tr>
</table>
</li>
</ol>
<p>╕≡╡τ ░µ┐∞ └╧┤▄ ░°└» ╕≡╡Γ└╠ ──╞─└╧╡╟╕Θ, <code>httpd.conf</code>┐í
<a href="mod/mod_so.html#loadmodule"><code>LoadModule</code></a>
┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ ╛╞╞──í░í ▒╫ ╕≡╡Γ└╗ ╚░╝║╚¡╟╧░╘ ╟╪╛▀╟╤┤┘.</p>
<h2><a id="background" name="background">╣Φ░µ┴÷╜─</a></h2>
<p>╟÷┤δ└√└╬ └»┤╨╜║╖∙┐í┤┬ <em>╡┐└√░°└»░┤├╝</em> (DSO)└╟
╡┐└√ ╕╡┼╖/╖╬╡∙└╠╢≤░φ ╟╧┐⌐, ╞»║░╟╤ ╟ⁿ╜─└╟ ╜╟╟α─┌╡σ ┴╢░ó└╗ ╕╕╡Θ╛ε
╜╟╟α┴▀ ╜╟╟α╟┴╖╬▒╫╖Ñ└╟ ┴╓╝╥░°░ú┐í └╨╛ε╡Θ└╠┤┬ ╕┌┴° ▒Γ┤╔└╠ └╓┤┘.</p>
<p>└╠ ╖╬╡∙└║ ║╕┼δ ╡╬░í┴÷ ╣µ╣²└╕╖╬ ░í┤╔╟╧┤┘. ╟╧│¬┤┬ ╜╟╟α╟┴╖╬▒╫╖Ñ└╠
╜├└█╟╥╢º <code>ld.so</code>╢≤┤┬ ╜├╜║┼█ ╟┴╖╬▒╫╖Ñ└╠ ╖╬╡∙└╗
└┌╡┐└╕╖╬ ╟╧┤┬ ░µ┐∞░φ, ┤┘╕Ñ ╟╧│¬┤┬ ╜╟╟α┴▀└╬ ╟┴╖╬▒╫╖Ñ┐í╝¡
<code>dlopen()/dlsym()</code> ╜├╜║┼█─▌╖╬ └»┤╨╜║ ╖╬┤⌡└╟
╜├╜║┼█ └╬┼═╞Σ└╠╜║└╗ ╗τ┐δ╟╧┐⌐ ┴≈┴ó ╖╬╡∙╟╧┤┬ ░µ┐∞┤┘.</p>
<p>├╣╣°┬░ ░µ┐∞ DSO┤┬ ║╕┼δ <em>░°└»╢≤└╠║Ω╖»╕«(shared libraries)</em> ╚ñ└║
<em>DSO ╢≤└╠║Ω╖»╕«</em>╢≤░φ ║╬╕ú╕τ, ╞─└╧└║ <code>libfoo.so</code>│¬
<code>libfoo.so.1.2</code> ░░└║ └╠╕º└╗ ░í┴°┤┘. └╠╡Θ└║
╜├╜║┼█ ╡≡╖║┼Σ╕«(║╕┼δ <code>/usr/lib</code>)┐í └╓░φ,
──╞─└╧╜├ ╕╡─┐ ╕φ╖╔╛ε┐í <code>-lfoo</code>╕ª ┴╓╛ε ╜╟╟α╞─└╧░·
┐¼░ß╡╚┤┘. └╠╖╕░╘ ┴≈┴ó ╜ß┴╪ ╢≤└╠║Ω╖»╕«┤┬ ╜╟╟α╞─└╧┐í ┬ⁿ┴╢╡╟┐⌐╝¡,
╕╡─┐ ┐╔╝╟ <code>-R</code>╖╬ ┴≈┴ó ┴÷┴ñ╟╧┐┤░┼│¬ ╚»░µ║»╝÷
<code>LD_LIBRARY_PATH</code>╖╬ ┴÷┴ñ╟╤ ░µ╖╬└╬ <code>/usr/lib</code>┐í╝¡
└»┤╨╜║ ╖╬┤⌡░í ╟┴╖╬▒╫╖Ñ└╠ ╜├└█╟╥╢º <code>libfoo.so</code>╕ª
├ú└╗(resolve) ╝÷ └╓┤┘. ▒╫╖»╕Θ ╜╟╟α╟┴╖╬▒╫╖Ñ└╟ (╛╞┴≈ ╕°├ú└║)
╜╔║╝(symbol)└╗ DSO┐í╝¡ ├ú░╘╡╚┤┘.</p>
<p>DSO┤┬ ║╕┼δ ╜╟╟α╟┴╖╬▒╫╖Ñ└╟ ╜╔║╝└╗ ├ú┴÷╛╩▒Γ ╢º╣«┐í (DSO░í
└τ╗τ┐δ░í┤╔╟╤ └╧╣▌└√└╬ ─┌╡σ└╟ ╢≤└╠║Ω╖»╕«└╠╣╟╖╬) ├ú▒Γ┤┬ ┐⌐▒Γ╝¡ │í│¡┤┘.
└»┤╨╜║ ╖╬┤⌡░í ╜╔║╝ ├ú▒Γ╕ª ┐╧└ⁿ╚≈ ┤π┤τ╟╧╣╟╖╬ ╜╟╟α╟┴╖╬▒╫╖Ñ└╠ ┴≈┴ó
DSO┐í╝¡ ╜╔║╝└╗ ├ú└╗ ╟╩┐Σ░í ╛°┤┘. (╗τ╜╟ <code>ld.so</code>╕ª
║╬╕ú┤┬ ─┌╡σ┤┬ ┴ñ└√└╠ ╛╞┤╤ ╕≡╡τ ╜╟╟α╟┴╖╬▒╫╖Ñ┐í ╕╡┼⌐╡╟┤┬ ╜╟╟α╜├
╜├└█─┌╡σ└╟ └╧║╬┤┘.) ░°┼δ╡╚ ╢≤└╠║Ω╖»╕« ─┌╡σ╕ª ╡┐└√└╕╖╬ └╨╛ε╡Θ└╠┤┬
└σ┴í└║ ╕φ╚«╟╧┤┘. ╢≤└╠║Ω╖»╕« ─┌╡σ░í ╕≡╡τ ╟┴╖╬▒╫╖Ñ┐í └·└σ╡╟┤┬ ┤δ╜┼
<code>libc.so</code>┐═ ░░└║ ╜├╜║┼█ ╢≤└╠║Ω╖»╕«┐í ╟╤╣°╕╕ └·└σ╡╟▒Γ
╢º╣«┐í ╡≡╜║┼⌐ ░°░ú└╠ └²╛α╡╚┤┘.</p>
<p>╡╬╣°┬░ ░µ┐∞ DSO┤┬ ║╕┼δ <em>░°└»░┤├╝(shared objects)</em> ╚ñ└║
<em>DSO ╞─└╧</em>└╠╢≤░φ ║╬╕ú░φ, (▒╘─ó╗≤ └╠╕º└║ <code>foo.so</code>└╠┴÷╕╕)
╞─└╧└╟ ╚«└σ└┌┤┬ └┌└»╖╙┤┘. └╠ ╞─└╧╡Θ└║ ║╕┼δ ╟┴╖╬▒╫╖Ñ └┌├╝ ╡≡╖║┼Σ╕«┐í
└º─í╟╧░φ ╜╟╟α╟┴╖╬▒╫╖Ñ┐í └┌╡┐└╕╖╬ ┐¼░ß╡╟┴÷ ╛╩┤┬┤┘. ┤δ╜┼ ╜╟╟α╟┴╖╬▒╫╖Ñ└║
<code>dlopen()</code>└╗ ╗τ┐δ╟╧┐⌐ DSO╕ª ╜╟╟α╜├ ┴╓╝╥░°░ú┐í ┴≈┴ó
└╨╛ε╡Θ┐⌐╛▀ ╟╤┤┘. └╠╢º ╜╟╟α╟┴╖╬▒╫╖Ñ└║ DSO┐í╝¡ ╜╔║╝└╗ ├ú┴÷ ╛╩┤┬┤┘.
┤δ╜┼ └»┤╨╜║ ╖╬┤⌡░í └┌╡┐└╕╖╬ ╜╟╟α╞─└╧░· ╜╟╟α╞─└╧└╠ └╠╣╠ └╨╛ε╡Θ└╬ DSO
╢≤└╠║Ω╖»╕«(╞»╚≈ ╟╫╗≤└╓┤┬ <code>libc.so</code>└╟ ╕≡╡τ ╜╔║╝)┐í╝¡
DSO└╟ (╛╞┴≈ ╕°├ú└║) ╜╔║╝└╗ ├ú┤┬┤┘. ▒╫╖í╝¡ DSO┤┬ ╕╢─í ├│└╜║╬┼═
╜╟╟α╟┴╖╬▒╫╖Ñ┐í ┴ñ└√└╕╖╬ ╕╡┼⌐╡╚░═░· ░░└╠ ╜╟╟α╞─└╧└╟ ╜╔║╝└╗
╛╦░╘╡╚┤┘.</p>
<p>DSO└╟ API╕ª └╠┐δ╟╧▒Γ└º╟╪╝¡ ╕╢┴÷╕╖└╕╖╬ ╜╟╟α╟┴╖╬▒╫╖Ñ└║
<code>dlsym()</code>╖╬ DSO┐í╝¡ ╞»┴ñ ╜╔║╝└╗ ├ú╛╞╝¡,
╛╒└╕╖╬ ╗τ┐δ╟╧▒Γ└º╟╪ ╡≡╜║╞╨─í(dispatch) ╟Ñ <em>╡ε</em>┐í
└·└σ╟╤┤┘. ┤┘╕Ñ ╕╗╖╬ ╜╟╟α╟┴╖╬▒╫╖Ñ└║ ╗τ┐δ╟╥ ╕≡╡τ ╜╟║╝└╗ ┴≈┴ó
├ú╛╞╛▀╟╤┤┘. └╠╖▒ ▒╕┴╢└╟ └σ┴í└║ ╟┴╖╬▒╫╖Ñ└╟ ╝▒┼├└√└╬ └╧║╬└╗
╟┴╖╬▒╫╖Ñ└╠ ╟╩┐Σ╟╥╢º▒ε┴÷ └╨╛ε╡Θ└╠┴÷ ╛╩╛╞╡╡ (▒╫╖í╝¡
╕▐╕≡╕«╕ª │╢║±╟╧┴÷ ╛╩░╘) ╡╚┤┘┤┬ ┴í└╠┤┘. ▒Γ║╗ ╟┴╖╬▒╫╖Ñ└╟ ▒Γ┤╔└╗
╚«└σ╟╧▒Γ└º╟╪ ╟╩┐Σ╟╥╢º └╠ ║╬║╨└╗ ╡┐└√└╕╖╬ └╨╛ε╡Θ└╧ ╝÷ └╓┤┘.</p>
<p>└╠╖▒ DSO ▒╕┴╢░í └┌┐¼╜║╖┤░╘ ║╕└╠┴÷╕╕, ├╓╝╥╟╤ ╛ε╖┴┐ε ┴í└╠
╟╧│¬└╓┤┘. └╠┤┬ ╟┴╖╬▒╫╖Ñ└╗ ╚«└σ╟╧▒Γ└º╟╪ DSO╕ª ╗τ┐δ╟╥╢º
DSO░í ╜╟╟α╟┴╖╬▒╫╖Ñ└╟ ╜╔║╝└╗ ├ú┤┬ └╧└╠┤┘. ┐╓? DSO░í ╜╟╟α╟┴╖╬▒╫╖Ñ└╟
╜╔║╝└╗ "┐¬└╕╖╬ ├ú┤┬ ░═"└║ (╢≤└╠║Ω╖»╕«┤┬ ╗τ┐δ╡╟┤┬ ╟┴╖╬▒╫╖Ñ┐í ┤δ╟╪
╕≡╕Ñ┤┘┤┬) ╢≤└╠║Ω╖»╕« ╝│░Φ┐í ╣▌╟╧╕τ, ╕≡╡τ ╟├╖í╞√┐í╝¡ ┴÷┐°╡╟┴÷
╛╩░φ ╟Ñ┴╪╚¡╡╟┴÷╡╡ ╛╩╛╥▒Γ ╢º╣«└╠┤┘. ╜╟┴ª╖╬ ╜╟╟α╞─└╧└╟
└ⁿ┐¬╜╔║╝(global symbol)└║ └┌┴╓ └═╜║╞≈╞«(export)╡╟┴÷ ╛╩▒Γ╢º╣«┐í
DSO░í ╗τ┐δ╟╥ ╝÷ ╛°┤┘. DSO╕ª ╗τ┐δ╟╧┐⌐ ╜╟╟α┴▀ ╟┴╖╬▒╫╖Ñ└╗ ╚«└σ╟╧╖┴╕Θ
╕╡─┐┐í░╘ ╕≡╡τ └ⁿ┐¬╜╔║╝└╗ └═╜║╞≈╞«╟╧╡╡╖╧ ░¡┴ª╟╧┤┬ ░═└╠ ┴╓┐Σ╟╤
╟╪░ß├Ñ└╠┤┘.</p>
<p>░°└»╢≤└╠║Ω╖»╕«┤┬ DSO ▒╕┴╢╕ª └º╟╪ ╝│░Φ╡╟╛·▒Γ╢º╣«┐í └ⁿ╟ⁿ└√└╠░φ,
┐ε┐╡├╝┴ª░í ┴ª░°╟╧┤┬ ░┼└╟ ╕≡╡τ ┴╛╖∙└╟ ╢≤└╠║Ω╖»╕«┐í ╗τ┐δ╡╚┤┘.
╣▌┤δ╖╬ ╕╣└║ ╟┴╖╬▒╫╖Ñ└║ ╟┴╖╬▒╫╖Ñ└╗ ╚«└σ╟╧▒Γ└º╟╪ ░°└»░┤├╝╕ª
╗τ┐δ╟╧┴÷ ╛╩┤┬┤┘.</p>
<p>1998│Γ ╜╟╟α┴▀ ╜╟┴ª╖╬ ▒Γ┤╔└╗ ╚«└σ╟╧▒Γ└º╟╪
DSO ▒╕┴╢╕ª ╗τ┐δ╟╤ ╝╥╟┴╞«┐■╛ε ╞╨┼░┴÷┤┬ (XS ▒╕┴╢┐═ DynaLoader ╕≡╡Γ└╗
╗τ┐δ╟╤) Perl 5, Netscape Server <em>╡ε</em>└╕╖╬ ╡σ╣░╛·┤┘.
╛╞╞──í┤┬ └╠╣╠ ▒Γ┤╔└╗ ╚«└σ╟╧▒Γ└º╟╪ ╕≡╡Γ ░││Σ└╗ ╗τ┐δ╟▀░φ ┐▄║╬
╕≡╡Γ└╗ ╛╞╞──í ╟┘╜╔▒Γ┤╔┐í ┐¼░ß╟╧▒Γ└º╟╪ │╗║╬└√└╕╖╬ ╡≡╜║╞╨─í╕±╖╧└╗ └╠┐δ╟╤
┴ó▒┘╣µ╣²└╗ ╗τ┐δ╟▀▒Γ╢º╣«┐í 1.3 ╣÷└ⁿ║╬┼═ ┐⌐▒Γ┐í ╟╒╖∙╟▀┤┘. ▒╫╖í╝¡
╛╞╞──í┤┬ ╜╟╟α┴▀ ╕≡╡Γ└╗ └╨╛ε╡Θ└╠┤┬╡Ñ DSO╕ª ╗τ┐δ╟╧╡╡╖╧ ┐ε╕φ┴÷┐÷┴│┤┘.</p>
<h2><a id="advantages" name="advantages">└σ┤▄┴í</a></h2>
<p>╛╒┐í╝¡ ╕╗╟╤ DSO╕ª ╗τ┐δ╟╧╕Θ ┤┘└╜░· ░░└║ └σ┴í└╠ └╓┤┘:</p>
<ul>
<li>╜╟┴ª ╝¡╣÷ ╟┴╖╬╝╝╜║░í ──╞─└╧╜├ <code>configure</code>
┐╔╝╟┤δ╜┼ <code>httpd.conf</code>└╟ <a
href="mod/mod_so.html#loadmodule"><code>LoadModule</code></a>╖╬
╜╟╟α┴▀┐í ░ß╟╒╡╟╣╟╖╬ ╝¡╣÷ ╞╨┼░┴÷░í ╜╟╟α╜├ ┤⌡ └»┐¼╟╧┤┘. ┐╣╕ª ╡Θ╛ε
╟╤╣°└╟ ╛╞╞──í ╝│─í╕╕└╕╖╬ ┤┘╕Ñ ╝¡╣÷(╟Ñ┴╪ ╣÷└ⁿ░· SSL ╣÷└ⁿ, ├╓╝╥╚¡ ╣÷└ⁿ░·
▒Γ┤╔├▀░í ╣÷└ⁿ [mod_perl, PHP3] <em>╡ε</em>)╕ª ╜╟╟α╟╥ ╝÷ └╓┤┘.</li>
<li>╝¡╣÷┤┬ ╝│─í╚─┐í╡╡ ┴ª╗∩└╟ ╕≡╡Γ╖╬ ╜▒░╘ ╚«└σ└╠ ░í┤╔╟╧┤┘.
├╓╝╥╟╤ ▒Γ╛≈└╟ ╞╨┼░┴÷ ┴ª└█└┌┤┬ ╛╞╞──í ╟┘╜╔ ╞╨┼░┴÷┐═ ║░╡╡╖╬ PHP3, mod_perl,
mod_fastcgi ╡ε└╗ ├▀░í ╞╨┼░┴÷╖╬ ╕╕╡Θ ╝÷ └╓╛ε╝¡ ┼½ └╠╡µ└╠ ╡╚┤┘.</li>
<li>DSO┐═ <code>apxs</code>╕ª ░í┴÷░φ ╛╞╞──í ╝╥╜║ ╞«╕«
╣█┐í╝¡ └█╛≈╟╧░φ <code>apxs -i</code>┐═
<code>apachectl restart</code> ╕φ╖╔╛ε╕╕└╕╖╬ ╟÷└τ ░│╣▀╟╤
╕≡╡Γ└╟ ╗⌡ ╣÷└ⁿ└╗ ╜╟╟α┴▀└╬ ╛╞╞──í ╝¡╣÷┐í ╣▌┐╡╟╥ ╝÷ └╓╛ε╝¡ ┤⌡ ╜▒░╘
╛╞╞──í ╕≡╡Γ└╗ ░│╣▀╟╥ ╝÷ └╓┤┘.</li>
</ul>
<p>DSO┤┬ ┤┘└╜░· ░░└║ ┤▄┴í└╠ └╓┤┘:</p>
<ul>
<li>╟┴╖╬▒╫╖Ñ└╟ ┴╓╝╥░°░ú┐í ─┌╡σ╕ª ╡┐└√└╕╖╬ └╨╛ε╡Θ└╠┤┬ ▒Γ┤╔└╗
┴÷┐°╟╧┴÷╛╩┤┬ ┐ε┐╡├╝┴ª░í └╓▒Γ ╢º╣«┐í ╕≡╡τ ╟├╖í╞√┐í╝¡ DSO╕ª
╗τ┐δ╟╥ ╝÷ ╛°┤┘.</li>
<li>╝¡╣÷┤┬ ╜├└█╜├ ╛α 20% ┴ñ╡╡ ┤╩┤┘.
because of the symbol resolving overhead the Unix loader now
has to do.</li>
<li>╝¡╣÷┤┬ └º─í╡╢╕│─┌╡σ(position independent code, PIC)╢º╣«┐í
└²┤δ┴╓╝╥┴÷┴ñ(absolute addressing)╕╕┼¡ ║ⁿ╕ú┴÷ ╛╩┤┬ ╗≤┤δ┴╓╝╥┴÷┴ñ(relative
addressing)└╟ ║╣└Γ╟╤ ╛ε╝└║φ╖» ▒Γ╣²└╠ ╟╩┐Σ╟╧╣╟╖╬ ╛ε╢▓ ╟├╖í╞√┐í╝¡
╜╟╟α╜├ ╛α 5% ┴ñ╡╡ ┤╩┤┘.</li>
<li>DSO ╕≡╡Γ└╠ ┤┘╕Ñ DSO▒Γ╣▌ ╢≤└╠║Ω╖»╕«(<code>ld -lfoo</code>)┐í
╕╡┼⌐╟╥ ╝÷ ╛°┤┬ ╟├╖í╞√└╠ └╓▒Γ╢º╣«┐í (┐╣╕ª ╡Θ╛ε ELF▒Γ╣▌ ╟├╖í╞√└║
┴÷┐°╟╧┴÷╕╕ a.out▒Γ╣▌ ╟├╖í╞√└║ ║╕┼δ └╠ ▒Γ┤╔└╗ ┴÷┐°╟╧┴÷ ╛╩┤┬┤┘)
╕≡╡τ ┴╛╖∙└╟ ╕≡╡Γ┐í DSO╕ª ╗τ┐δ╟╥ ╝÷ ╛°┤┘. ┤┘╕Ñ ╕╗╖╬
DSO ╞─└╧╖╬ ──╞─└╧╡╟┤┬ ╕≡╡Γ└║ ╛╞╞──í ╟┘╜╔░· ╛╞╞──í ╟┘╜╔└╠
╗τ┐δ╟╧┤┬ C ╢≤└╠║Ω╖»╕«(<code>libc</code>)┐═ ┤┘╕Ñ ╡┐└√/┴ñ└√
╢≤└╠║Ω╖»╕«, └º─í╡╢╕│─┌╡σ╕ª ┤π░φ └╓┤┬ ┴ñ└√ ╢≤└╠║Ω╖»╕«
╛╞─½└╠║Ω(<code>libfoo.a</code>)└╟ ╜╔║╝╕╕└╗ ╗τ┐δ╟╥ ╝÷ └╓┤┘.
┤┘╕Ñ ─┌╡σ╕ª ╗τ┐δ╟╧┤┬ ╣µ╣²└║ ╛╞╞──í ╟┘╜╔└╠ ▒╫░═└╗ ┬ⁿ┴╢╟╧┤°┴÷,
<code>dlopen()</code>└╕╖╬ ┴≈┴ó ─┌╡σ╕ª └╨╛ε╡Θ└╠┤┬ ░═└╠┤┘.</li>
</ul>
<hr />
<h3 align="center">Apache HTTP Server Version 2.0</h3>
<a href="./"><img src="images/index.gif" alt="Index" /></a>
</body>
</html>