Annotation of cci/usr/src/ucb/talk/talk.c, revision 1.1

1.1     ! root        1: /* $Header: talk.c,v 1.2 85/01/09 13:05:11 rcs Exp $ */
        !             2: 
        !             3: #include "talk.h"
        !             4: 
        !             5: /*
        !             6:  * talk:       A visual form of write. Using sockets, a two way 
        !             7:  *             connection is set up between the two people talking. 
        !             8:  *             With the aid of curses, the screen is split into two 
        !             9:  *             windows, and each users text is added to the window,
        !            10:  *             one character at a time...
        !            11:  *
        !            12:  *             Written by Kipp Hickman
        !            13:  *             
        !            14:  *             Modified to run under 4.1a by Clem Cole and Peter Moore
        !            15:  *             Modified to run between hosts by Peter Moore, 8/19/82
        !            16:  *             Modified to run under 4.1c by Peter Moore 3/17/83
        !            17:  */
        !            18: 
        !            19: 
        !            20: /*
        !            21:  * Changes:
        !            22:  *     .       add global variable vaxbyteorder which specifies if outgoing
        !            23:  *             requests should be byte-ordered vax style.
        !            24:  * See other routines for different changes.
        !            25:  */
        !            26: int    vaxbyteorder = 1;               /* default is vax-style byte-order */
        !            27: #ifdef DEBUG
        !            28: int    debug = 1;
        !            29: #else
        !            30: int    debug = 0;
        !            31: #endif
        !            32: 
        !            33: 
        !            34: main(argc, argv)
        !            35: int argc;
        !            36: char *argv[];
        !            37: {
        !            38:        get_names(argc, argv);
        !            39: 
        !            40:        init_display();
        !            41: 
        !            42:        open_ctl();
        !            43:        open_sockt();
        !            44: 
        !            45:        start_msgs();
        !            46: 
        !            47:        if ( !check_local() ) {
        !            48:            invite_remote();
        !            49:        }
        !            50: 
        !            51:        end_msgs();
        !            52: 
        !            53:        set_edit_chars();
        !            54: 
        !            55:        talk();
        !            56: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.