home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
SBBS1B00.ZIP
/
DOCS.EXE
/
DOCS
/
FORMATS.DOC
< prev
next >
Wrap
Text File
|
1992-09-25
|
10KB
|
269 lines
Synchronet File Formats (Technical Jargon)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Configuration (CFG) Files
~~~~~~~~~~~~~~~~~~~~~~~~~
Straight ASCII format. Each line contains an option. The data portion of the
line ends at the first TAB character or column 41, whichever comes first. The
remainder of the line is used to describe the option the line is used for.
For Yes/No options, only the first character is checked and is not case
sensitive. Field descriptions (comments) are created by SCFG automatically when
changes are saved.
See the comments of the individual CFG files for the format of each.
Index Files
~~~~~~~~~~~
INDX\MAIL.IXT
The E-Mail index file is ASCII text. Each piece of mail occupies
three CR/LF delimited lines of text.
Line 1:
filenameMdatetimeFuserfrom
where "filename" is the eight character name of the actual
mail message that is stored in the DATA\MAIL directory with
a .MSG extension. The filename is in the format <tttfffcc>
where "ttt" is the number of the user whom the message is to
in hex, "fff" is the number of the user whom the message is
from in hex, and "cc" is the message counter in hex (so
multiple messages from one user to another have unique names).
"M" is the mode of the message. To obtain the mode, subtract
32 (20 hex) from the ASCII value of this character. Each bit
represents a mode flag for this message. A normal message has
a mode of 0. The bits and their definitions are as follows:
bit 0: Forwarded Message
bit 1: Anonymous Message
"datetime" is the date/time stamp the e-mail was written in
Unix time format (number of seconds past Jan 1 1970) and stored
as ASCII hex.
"F" is the flag for this message. Unread normal messages have
a flag of '*'. Unread validation feedback messages have a flag
of 'V'. Unread messages from the sysop have a flag of '$'.
Read messages normally have a flag of ' ' (space). The sysop
can set a message's flag to any ASCII character from the mail
read prompts.
"userfrom" is a variable length record that contains the name
of the user who sent the message.
Line 2:
The second line contains the name of the user whom the message
was sent to.
Line 3:
The third line contains the title of the message.
INDX\SUBS\*.IXT
Each sub-boards index is stored as a different file using the sub's
internal code as the filename and .IXT as the extension. The files
are stored in the INDX\SUBS directory. The files are ASCII text with
each message's information stored on there CR/LF delimited lines.
The first two lines of the file are fixed length (zero padded). The
first line is the number of messages in the index 5 decimal digits wide
(example: 00250). The second line is the date/time stamp of the last
message pointer in the index 8 hexadecimal digits wide (unix format)
(example: 27f4b03d).
Line 1:
filenameMdatetime userfrom
where "filename" is the eight character name of the actual
message stored in the DATA\SUBS\<CODE> directory with a .MSG
extension. The format of "filename" is <ttfffccc> where "tt"
is the message type: "LU" for a local user message, "QN" for
a QWK network node, "QH" for a QWK network hub, or "FN" for
a FidoNet node; "fff" is the number of the user whom the
message is from (LU or QN), QWK hub number (QH) or FidoNet node
number (FN) in hex, and "ccc" is the count in hex.
"M" is the message mode. Subtract 32 (20 hex) from the ASCII
value stored in this position to obtain the actual message
mode. The defined bits are:
bit 0: Permanent Message (Won't be auto-purged)
bit 1: Anonymous Message
bit 2: Private Message
"datetime" is the date/time stamp the message was created
in Unix format, stored in ASCII hex.
"userfrom" contains the name of the user who posted this
message.
Lines 2:
datetime userto
where "datetime" is the date/time stamp that the message
was placed online (used for new message scanning), and "userto"
is the name of the user who the message is to (usually blank).
Line 3:
Line three contains the title of the message.
INDX\DIRS\*.IXB
Each file directory's index is stored as an individual file in the
INDX\DIRS directory with the directory's code as the filename and
.IXB as the extension. These files are binary should be opened
"Read Only/Deny None" unless you have specific reasons to open with
other access rights.
Each file entry is 22 bytes. The first eleven bytes are the name
and extension of the file. The name occupies the first 8 bytes of the
record (left justified and padded with spaces), the extension occupies
bytes 8 through 10 (i.e. no space between the name and extension).
Bytes 11 through 13 contain the data entry offset (byte 11 low, 12 mid,
and 13 high). Bytes 14 through 17 contain the date/time stamp the file
was uploaded (in seconds past Jan 1 1970), and bytes 18 through 21
contain the date/time stampe the file was last downloaded. The
following chart should be helpful in visualizing the format:
Offset Length Description
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 11 Filename (example: FILE EXT)
11 3 Data record offset (LB,MB,HB)
14 4 Date/Time uploaded (Unix format)
18 4 Date/Time last downloaded
Data Files
~~~~~~~~~~
DATA\DIRS\*.DAT
Each file directory's file data is stored in a different file using
the directory's code as the filename and .DAT as the extension. These
files are stored in the DATA\DIRS directory. These files are ASCII
text using ETX (End of text - ASCII 3) to specifiy the end of a field
to maintain fixed length records. If a file's record starts with an
ETX, that record is not in use and is available for a new file's data.
To find the data record for a file, you must first obtain the offset
into the data file from the corresponding IXB file.
The following table should help visualize the file format. Fields that
have a length ending in "+2" indicate that the field is terminated
with a CR/LF. All numeric values are stored in decimal format unless
otherwise noted.
Offset Length Description
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 7+2 Credit value
9 58+2 Description
69 30+2 Uploader
101 5+2 Number of times downloaded
108 3+2 Open count
113 1 Miscellaneous bits
114 2+2 Alternate path (hex)
If the first byte of the "Credit value" field is an ETX, this record
is not in use and can be eliminated by a future upload, or by executing
the ;RESORT sysop transfer section command.
The last 5 bytes (before the CR/LF) in the "Uploader" field are not
used.
The "Open count" field is the counter for keeping track of the number
of simultaneous openings of a file. A file record is "opened" when a
user starts to download it, adds it to a batch download queue, or
is editing it. A file with it's record currently open can not removed,
moved, or edited.
The misecllaneous bits field has only one bit currently defined:
bit 0: Extended description exists for this file
If an extended description exists for this file, it will be stored as:
DATA\DIRS\<code>.EXT\<filename.ext>
where <code> is the internal code for the directory and <filename.ext>
is the filename and extension of the file the description is for.
The "Alternate path" field contains the number of the alternate path
(or 0 if default path for directory is used) in hex. The actual
location of this file is in the alternate path referenced in XFER.CFG.
XTRN.DAT
This is the data file that Synchronet creates for Synchronet specific
external programs. It is an ASCII text file with the format as follows:
Sample Data Description
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Digital Man User name
Vertrauen System name
digital man System operator
The Guru System guru
..\CTRL\ CTRL directory
..\DATA\ DATA directory
5 Total nodes on system
5 Current node number
19448 Time left online
Yes ANSI ? (Yes/No/Mono)
24 Lines per screen
10770335 Credits
99 Main Level
99 Transfer Level
12/31/69 Birthdate
M Sex
1 User number
714-529-9525 User phone number
0 COM port (0 if no modem or local)
3 COM port IRQ
2f8 COM port I/O address (in hex)
2400 COM port DTE rate
No Modem uses hardware flow ctrl (Y/N)
No Modem locked at DTE rate (Y/N)
ATQ0V0E0M1X4&C1&D2H0 Modem initialization string
Modem special init string
ATV1E1X4 Modem terminal mode init string
ATDT Modem dial prefix
ATH1M0 Modem off-hook string
ATA Modem answer string
795154132 Address of Modem Status Register
11 Number of External Programs
Global War Names of External Programs (or blank
Trade Wars 2002 if user doesn't have access)
Food Fight!
Pit Fiend ][
Dice War
Synchronet Blackjack!
Domain Poker
Phantasia
Emperor
Synchronet Upgrade Door
Credit Card Order Door
MODUSER.DAT
This is an optional file created by external programs to modify the
data of the current user. It is an ASCII text file with the format:
Sample Data Description
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-500 Credit Adjustment
60 Main Level
60 Transfer Level
AB E I Main Flags
G Transfer Flags
A P T Exemptions
Restrictions
/* End of FORMATS.DOC */