Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
c47cb57e
Commit
c47cb57e
authored
11 months ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
White-space fix-ups
parent
d5513e87
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/load/smbdefs.js
+9
-8
9 additions, 8 deletions
exec/load/smbdefs.js
with
9 additions
and
8 deletions
exec/load/smbdefs.js
+
9
−
8
View file @
c47cb57e
// $Id: smbdefs.js,v 1.11 2019/08/26 08:57:14 rswindell Exp $
// Synchronet Message Base constant definitions (from smbdefs.h and smblib.h)
// Synchronet Message Base constant definitions (from smbdefs.h and smblib.h)
// @format.tab-size 4
/* Values for MsgBase.status (SMBLIB function return values) */
const
SMB_SUCCESS
=
0
;
// Successful result/return code
const
SMB_DUPE_MSG
=
1
;
// Duplicate message detected by smb_addcrc()
...
...
@@ -29,7 +30,7 @@ const SMB_ERR_MEM = -300; // Memory allocation error
const
SMB_EMAIL
=
1
;
// User numbers stored in Indexes
const
SMB_HYPERALLOC
=
2
;
// No allocation (also storage value for smb_addmsghdr)
const
SMB_NOHASH
=
4
;
// Do not calculate or store hashes
/* Message Types */
const
MSG_TYPE_NORMAL
=
0
;
// Classic message (for reading)
const
MSG_TYPE_POLL
=
1
;
// A poll question
...
...
@@ -69,7 +70,7 @@ const MSG_RECEIPTREQ = (1<<4); // Return receipt requested
const
MSG_CONFIRMREQ
=
(
1
<<
5
);
// Confirmation receipt requested
const
MSG_NODISP
=
(
1
<<
6
);
// Msg may not be displayed to user
const
MSG_HFIELDS_UTF8
=
(
1
<<
13
);
// Message header fields are UTF-8 encoded
const
POLL_CLOSED
=
(
1
<<
24
);
// Closed to voting
const
POLL_CLOSED
=
(
1
<<
24
);
// Closed to voting
const
POLL_RESULTS_MASK
=
(
3
<<
30
);
// 4 possible values:
const
POLL_RESULTS_SECRET
=
(
3
<<
30
);
// No one but pollster can see results
const
POLL_RESULTS_CLOSED
=
(
2
<<
30
);
// No one but pollster can see results until poll is closed
...
...
@@ -89,7 +90,7 @@ const MSG_CRASH = (1<<6); // Crash
const
MSG_IMMEDIATE
=
(
1
<<
7
);
// Send Msg now, ignore restrictions
const
MSG_DIRECT
=
(
1
<<
8
);
// Send directly to destination
/* Net types */
/* Net types */
const
NET_NONE
=
0
;
// Local message
const
NET_UNKNOWN
=
1
;
// Networked, but unknown type
const
NET_FIDO
=
2
;
// FidoNet
...
...
@@ -99,7 +100,7 @@ const NET_INTERNET = 5; // NNTP
const
NET_WWIV
=
6
;
// WWIV
const
NET_MHS
=
7
;
// MHS
/* Agent types */
/* Agent types */
const
AGENT_PERSON
=
0
;
// Human
const
AGENT_PROCESS
=
1
;
// Unknown process type
const
AGENT_SMBUTIL
=
2
;
// Imported via Synchronet SMBUTIL
...
...
@@ -113,8 +114,8 @@ const SMB_PRIORITY_NORMAL = 3;
const
SMB_PRIORITY_LOW
=
4
;
const
SMB_PRIORITY_LOWEST
=
5
;
/* Message hfield types */
const
SMB_SUMMARY
=
0x61
;
// Not currently used for messages
/* Message hfield types */
const
SMB_SUMMARY
=
0x61
;
// Not currently used for messages
const
SMB_COMMENT
=
0x62
;
// Appear in message text, before body
const
SMB_GROUP
=
0x64
;
const
SMB_TAGS
=
0x69
;
// Tags (ala hashtags) for a message
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment