home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
comms
/
newsflash
/
!NewsFlash
/
Docs
/
Messages
< prev
next >
Wrap
Text File
|
1995-07-15
|
5KB
|
270 lines
Last update: 7/5/95
NewsFlash Wimp Messages (for doors generally)
NewsFlash Message Code 1 : &BFFC0
Message format:
0 : Block length
4 : NewsFlash's (module) task handle
8 : my_ref
12 : your_ref
16 : &BFFC0
20 : NewsFlash Message Code
24 : Task handle of original sender (0 if NewsFlash module)
28 : Line number from 0 (-1 if N/A)
32 : Message data
NewsFlash Message Code 2 : &BFFC1
Message format:
0 : Block length
4 : Task handle of original sender
8 : my_ref
12 : your_ref
16 : &BFFC1
20 : NewsFlash Message Code
24 : Reserved (should be 0)
28 : Line number from 0 (-1 if N/A)
32 : Message data
Message types:
Door only - This message is sent only to the door (if any) that has claimed
the line in question.
All tasks - This message is sent to all wimp tasks.
From Tasks - This message is sent from a task to NewsFlash
Messages:
-----------------------------------------------
NewsFlash_Quit Code : 0
Type : Door only
You must release the line (and quit?).
-----------------------------------------------
NewsFlash_IncommingMessage Code : 1
Type : Door only
A message has been sent by another program or the sysop. You should display
it somehow.
Block + 32 = 0 if sent by sysop.
= 1 if sent by NewsFlash main app
= 2 if sent by another program
Block + 36 = Null terminated message string.
-----------------------------------------------
NewsFlash_StartDoor Code : 2
Type : All tasks
A command in the script file has signalled that a door has been requested to
'start'.
Block + 32 = 0 if text ID
= 1 if numeric ID
Block + 36 = Door ID
-----------------------------------------------
NewsFlash_CarrierLost Code : 3
Type : Door only
The user has hungup or the main BB has quit. You should quit and not release
the line if you have claimed it.
-----------------------------------------------
NewsFlash_User Code : 4
Type : All tasks
Allows user messages
Block + 32 = User code
Block + 36 = Data
Current user codes:
0 - Battleships door message
-----------------------------------------------
NewsFlash_Incomming Code : 5
Type : All tasks
NewsFlash has answered an incomming call
Block + 32 = Baud rate
-----------------------------------------------
NewsFlash_Logon Code : 6
Type : All tasks
A user has logged on.
Block + 32 = Baud rate
Block + 36 = User number
Block + 40 = Null terminated user name
-----------------------------------------------
NewsFlash_Logoff Code : 7
Type : All tasks
A user has hung up or logged off
-----------------------------------------------
NewsFlash_Starting Code : 8
Type : All tasks
NewsFlash has just been loaded.
-----------------------------------------------
NewsFlash_Dying Code : 9
Type : All tasks
NewsFlash is being quit.
-----------------------------------------------
NewsFlash_SysopChatRequest Code : 10
Type : All tasks
A user has requested a chat with the sysop.
Block + 32 = User number
Block + 36 = Topic
-----------------------------------------------
NewsFlash_StartSysopChat Code : 11
Type : All tasks
This call is sent after the chat request has been acknowledged. It should be
acknoledged within 10 wimp polls or NF will timeout and continue with the
script.
-----------------------------------------------
NewsFlash_ForceLogon Code : 12
Type : From Tasks
This call is sent to NewsFlash to force a logon without having to wait for a
connect code.
Block + 32 = Connect speed
-----------------------------------------------
NewsFlash_ForceLogoff Code : 13
Type : From Tasks
This call forces NewsFlash to disconnect a user.
-----------------------------------------------
NewsFlash_Sleep Code : 14
Type : From Tasks
This call tells NewsFlash to 'go to sleep'. NewsFlash will send the
NewsFlash_Sleeping message once it is asleep.
-----------------------------------------------
NewsFlash_Wakeup Code : 15
Type : From Tasks
This call tells NewsFlash to wakeup.
-----------------------------------------------
NewsFlash_Sleeping Code : 16
Type : All tasks
This call indicates that NewsFlash is now asleep.
-----------------------------------------------
NewsFlash_Woken Code : 17
Type : All tasks
This call indicates that NewsFlash has just woken up.
-----------------------------------------------
NewsFlash_StartTask Code : 18
Type : From Tasks
This call is used to start various tasks within the NewsFlash application,
which will fully multitask until they are finished.
Block + 32 = Task type
Block + 36 and above depend on task type
Task types:
Send string directly to serial port
Block + 32 = 0
Block + 36 = Size of data to send
Block + 40 = Data to send
Send message to user and waits for keyboard ack
Block + 32 = 1
Block + 36 = Size of message to send
Block + 40 = Data to send
Weed message base
Block + 32 = 2
Block + 36 = Weed time unit:
0 = Second
1 = Minute
2 = Hour
3 = Day
4 = Week
5 = Month
6 = Year
Block + 40 = Number of time units
Scan out outbound mail
Block + 32 = 3
Toss mail
Block + 32 = 4