home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
lan
/
chat
/
chat.h
< prev
next >
Wrap
Text File
|
1989-02-27
|
2KB
|
71 lines
/******************************************************************************
*
* Program Name: TALK_TO.ME
*
* Filename: TALK.H -- 10/25/88
*
* Purpose: Include file for the talk_to.me program
*
******************************************************************************/
/* Program values */
#define NUM_RECEIVE_ECBS 20
#define NUM_SEND_ECBS 20
#define SESSION_SOCKET 0x7654
#define SPX_INSTALLED 255
#define TERMINATING_PACKET 0xFE
#define FALSE 0
/* Screen values for the entire screen */
#define MAX_COL 80
#define MAX_ROW 25
#define TOP 0
#define BOTTOM 20
#define RIGHT_SIDE 79
#define LEFT_SIDE 0
#define MID_SCREEN 10
/* Screen values for the message boxes */
#define TOP_SEND_ROW 13
#define LAST_SEND_ROW 19
#define TOP_RECEIVE_ROW 3
#define LAST_RECEIVE_ROW 9
#define FIRST_TEXT_COL 2
#define LAST_TEXT_COL 78
/* Border characters */
#define UPPER_LEFT 0xD5
#define UPPER_RIGHT 0xB8
#define LOWER_LEFT 0xD4
#define LOWER_RIGHT 0xBE
#define L_INTERSECT 0xC6
#define R_INTERSECT 0xB5
#define HORIZONTAL 0xCD
#define VERTICAL 0xB3
/* Attribute values */
#define STOPBIT 0x20
#define BLANK 0x0700
/* Keystroke values */
#define BACKSPACE 8
#define ENTER 13
#define ESCAPE 27
#define TAB 9
/* Video functions and interrupts */
#define CURSOR_SIZE 1
#define SET_CURSOR 2
#define VIDEO 0x10
#define SCROLL_UP 6
typedef unsigned int WORD;
typedef struct {
WORD hiNode;
long loNode;
} NETWORK_NODE;