Main Page   Compound List   File List   Compound Members   File Members  

local.vtc File Reference

vt initialization file with support for Zephyr. More...

#include "rmtio.vtc"
#include "disp.vtc"
#include "cquote.vtc"
#include "fquote.vtc"
#include "filter.vtc"
#include "shell.vtc"
#include "bimap.vtc"
#include "color.vtc"
#include "zephyr-core.vtc"
#include "zaway.vtc"
#include "zclassmap.vtc"
#include "zdefout.vtc"
#include "zformat.vtc"
#include "zpunt.vtc"
#include "zreplay.vtc"
#include "zsend.vtc"
#include "zsend-zcrypt.vtc"
#include "zsend-zwrite.vtc"
#include "zsig-random.vtc"
#include "zsig-responses.vtc"
#include "zsig-t.vtc"
#include "zwindow.vtc"

Include dependency graph for local.vtc:

Include dependency graph

Go to the source code of this file.

Functions

func zauth_letter (z)
 Given a zephyrgram, returns a single letter that tells how authentic it is. More...

func should_wrap (body)[count, indent, do_wrap, s]
 Applies heuristics to determine whether or not to wrap the body of a message. More...

func zephyr_output ()[z, line, fields, i, s, p, ival, cval, do_wrap, annot, win, body, sig, pipe, style, auth2, front, wz]
 Cause an incoming message to be presented to the user. More...

func is_rcmd (z)[sender2, n]
 Given a zephyrgram, decide if it's from an rcmd principal. More...

func is_noc (z)
 Given a zephyrgram, decide if it's from the MIT Network Operations Center. More...

func is_webzephyr (z)
 Given a zephyrgram, decide if it's from Webzephyr. More...

func is_wz_personal (z)
 Given a zephyrgram, decide if it's a Webzephyr personal. More...

func make_line (front, body, annot, do_wrap)[line, fbody, s, p, col, spaces]
 Assemble a line, given the front matter, the body, and some annotations. More...

func zephyr_outbound (rmt, line)[zout]
 Possibly send an outgoing message, given text entered by the user. More...

func Nopipe ()
 User command to abandon an outgoing message started with a pipe. More...

func generate_signature (zout)
 Attach a signature to an outgoing message. More...

func outbound_parse (rmt, line)[multi, crypt, a, zout, ival, used_default_instance, default]
 Parse an outbound message line. More...


Detailed Description

vt initialization file with support for Zephyr.

Author:
David Maze <dmaze@mit.edu>
Version:
$Id$

Definition in file local.vtc.


Function Documentation

func Nopipe ( )
 

User command to abandon an outgoing message started with a pipe.

Definition at line 473 of file local.vtc.

func generate_signature ( zout )
 

Attach a signature to an outgoing message.

The sig member of zout is modified to contain the new signature.

Parameters:
zout   Outgoing message needing a signature.

Definition at line 485 of file local.vtc.

Referenced by zephyr_outbound().

func is_noc ( z )
 

Given a zephyrgram, decide if it's from the MIT Network Operations Center.

Parameters:
z   Message to examine
Returns:
1 if the conditions in is_rcmd() are met, and the message is on class noc with opcode echo.

Definition at line 331 of file local.vtc.

Referenced by zephyr_output().

func is_rcmd ( z )
 

Given a zephyrgram, decide if it's from an rcmd principal.

Parameters:
z   Message to examine
Returns:
1 if the message is from an rcmd principal matching the machine name of the message.

Definition at line 307 of file local.vtc.

Referenced by is_noc(), and zephyr_output().

func is_webzephyr ( z )
 

Given a zephyrgram, decide if it's from Webzephyr.

Parameters:
z   Message to examine
Returns:
1 if the message's sender is "daemon.webzephyr".

Definition at line 346 of file local.vtc.

Referenced by is_wz_personal(), and zauth_letter().

func is_wz_personal ( z )
 

Given a zephyrgram, decide if it's a Webzephyr personal.

Parameters:
z   Message to examine
Returns:
1 if the conditions in is_webzephyr() are met, and the message is a personal message on class webzephyr.

Definition at line 360 of file local.vtc.

Referenced by zephyr_output().

func make_line ( front,
body,
annot,
do_wrap )
 

Assemble a line, given the front matter, the body, and some annotations.

The body is line-wrapped; the annotations are right-aligned if they fit.

Parameters:
front   Text to be printed at the front of the first line
body   Message body to be printed
annot   Text to be printed after the body
do_wrap   1 if the body text should be line-wrapped
Returns:
The formatted line

Definition at line 380 of file local.vtc.

Referenced by zephyr_output().

func outbound_parse ( rmt,
line )
 

Parse an outbound message line.

Parameters:
rmt   vt remote object sending the line
line   User-entered text to parse
Returns:
A new Zoutgoing object resulting from the entered text, or 0 if the line doesn't result in a message being sent

Definition at line 532 of file local.vtc.

Referenced by zephyr_outbound().

func should_wrap ( body )
 

Applies heuristics to determine whether or not to wrap the body of a message.

Parameters:
body   Body of the message to examine
Returns:
1 if line-wrapping should be done, 0 otherwise.

Definition at line 71 of file local.vtc.

Referenced by zephyr_output().

func zauth_letter ( z )
 

Given a zephyrgram, returns a single letter that tells how authentic it is.

Returns:
"-" for unauthentic, "?" for forged, "+" for authentic, "*" for authentic and encrypted, or ' ' if we're totally lost.

Definition at line 45 of file local.vtc.

Referenced by zephyr_output().

func zephyr_outbound ( rmt,
line )
 

Possibly send an outgoing message, given text entered by the user.

Parameters:
rmt   vt remote object the message was sent from
line   User-entered text

Definition at line 438 of file local.vtc.

func zephyr_output ( )
 

Cause an incoming message to be presented to the user.

A skeletal version of this function probably wants to move into zephyr-core.vtc, with the ability to add in arbitrary functions called for each message via add_hook().

Definition at line 106 of file local.vtc.

Referenced by zephyr_netread().


Generated at Mon Aug 13 16:45:53 2001 for dzm-vtc by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001