flagflag  
  
Cur: 2008-12-21 (Sun) 03:29:18 iseki source
Line 1: Line 1:
 +** SIM DB [#j365e288]
 +-The ''Plane file'' and ''Berkeley DB'' can be used as a Tecture DB in ''v1.0.0''.
 +-When [[sl_info>sl_info (E)]] is started with ''-fdb'' option, ''Berkelry DB'' is used. Default is ''Plane file''.
 +-The speed goes out enough also even if it is ''Plane file'' of default.
 +-It is necessary to specify ''--enable-db'' option with configure of [[sl_proxy>sl_proxy (E)]] and TUIS_Lib to use ''Berkeley DB''.
 +The data of SIM preserved in DB is
 +- SIM Name. (32Byte)
 +- GUID of SIM. (40Byte)
 +- Region Handler. (8Byte)
 +- SIM's IP address. (Binary form. 4 Byte)
 +- SIM's access.  (2Byte)
 +- State of data. (2Byte)
 +- X coordinate of SIM. (4 Byte)
 +- Y coordinate of SIM. (4 Byte)
 +- Update Time. (Linux Time. 4Byte)
 +
 +** Plane File [#ccd91fe9]
 +- In SIM DB, to make SIM name and the region handler a retrieval key, two kinds of data bases are made. Contents are the same. As for these DB, the file name (key) is only different.
 +
 +***When the region handler is a key (file name) [#w938f77d]
 +-The directory named '''info/sim_handle'' ' is made for work directory [[Temp_File_Dir>/sl_proxy (E)/Temp_File_Dir]], and the subdirectory named ''000'', ''001'', ''002'', ......., ''254'', and ''255'' is made in the directory.~
 +-These subdirectories are assumed to be a modulo to 256 of the X coordinates of SIM, so SIM data is classified, and it preserves it.
 +-The file name becomes ''X coordinate(6digits)-Y coordinate(6digits)'' of SIM.
 +
 +Ex.) ''/var/sl_proxy/info/sim_handle/243/0010​11-000987''
 +
 +***When the SIM name is a key (file name) [#f23e6d59]
 +-The directory named '''info/sim_name'' ' is made for work directory [[Temp_File_Dir>/sl_proxy (E)/Temp_File_Dir]], and the subdirectory named ''@'', ''A'', ''B'', ......., ''Y'', and ''Z'' is made in the directory.~
 +-These subdirectories are assumed to be an initial of SIM name, SIM data is classified, and it preserves it. ''@'' is used to classify SIM of the initial other than the alphabet.
 +-The file name when preserving it becomes SIM name.
 +
 +Ex.)  ''/var/sl_proxy/info/sim_name/T/TUIS''
 +
 +** Berkeley DB [#ib1cccbc]
 +-The directory named '''info'' ' is made for work directory [[Temp_File_Dir>/sl_proxy (E)/Temp_File_Dir]].
 +- Two DB files are made by SIM name and region handler as keys.
 +
 +Ex.)  ''/var/sl_proxy/info/sim_info.db'', ''/var/sl_proxy/info/sim_info_handle.db'​'
 +
 +** MySQL [#mb51700d]
 +-It is not possible to use it now.
  

  • Backup diff of sl_info (E)/SIM DB(No. All)
    • Cur: 2008-12-21 (Sun) 03:29:18 iseki

Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthApr 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Today

Who's Online

98 user(s) are online (29 user(s) are browsing xpwiki)

Members: 0
Guests: 98

more...

Access Counter

Today : 4578457845784578
Yesterday : 1529415294152941529415294
Total : 2339927823399278233992782339927823399278233992782339927823399278
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com