⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 server.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: server.so,v 1.8 2002/06/17 18:38:43 bostic Exp $])m4_ref_title(RPC Client/Server,    Server program, @RPC server, rpc/client, rpc/faq)m4_p([dnlThe m4_db server utility, m4_ref(berkeley_db_svc), handles all theclient application requests.])m4_p([dnlCurrently, the m4_ref(berkeley_db_svc) utility is single-threaded,limiting the number of requests that it can handle.  Modifying theserver implementation to run in multithread or multiprocess moderequires modification of the server code automatically generated by therpcgen program.])m4_p([dnlThere are two different types of timeouts used by m4_ref(berkeley_db_svc).The first timeout (which can be modified within some constraints by theclient application), is the resource timeout.  When clients usetransactions or cursors, those resources hold locks in m4_db across callsto the server.  If a client application dies or loses its connection tothe server while holding those resources, it prevents any other clientfrom acquiring them.  Therefore, it is important to detect that a clienthas not used a resource for some period of time and release them.  In thecase of transactions, the server aborts the transaction.  In the case ofcursors, the server closes the cursor.])m4_p([dnlThe second timeout is an idle timeout.  A client application may remainidle with an open handle to an environment and a database.  Doing sosimply consumes some memory; it does not hold locks.  However, the m4_dbserver may want to eventually reclaim resources if a client dies orremains disconnected for a long period of time, so there is a separateidle timeout for open m4_db handles.])m4_p([dnlThe list of home directories specified to m4_ref(berkeley_db_svc) arethe only ones client applications are allowed to use.  Whenm4_ref(berkeley_db_svc) is started, it is given a list of pathnames.Clients are expected to specify the name of the home directory (definedas the last component in the directory pathname) as the databaseenvironment they are opening.  In this manner, clients need to know onlythe name of their home environment; not its full pathname on the servermachine.  This means, of course, that only one environment of aparticular name is allowed on the server at any given time.])m4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -