1: /*
   2:  * Copyright (c) 1983 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)ctl.h	5.1 (Berkeley) 6/6/85
   7:  */
   8: 
   9: /*
  10:  * ctl.h describes the structure that
  11:  * talk and talkd pass back and forth.
  12:  */
  13: 
  14: #include <sys/types.h>
  15: #include <sys/socket.h>
  16: #include <netinet/in.h>
  17: #include <netdb.h>
  18: 
  19: #define NAME_SIZE   9
  20: #define TTY_SIZE    16
  21: #define HOST_NAME_LENGTH 256
  22: 
  23: #define MAX_LIFE    60  /* max time daemon saves invitations */
  24: /* RING_WAIT should be 10's of seconds less than MAX_LIFE */
  25: #define RING_WAIT   30  /* time to wait before refreshing invitation */
  26: 
  27: /* type values */
  28: #define LEAVE_INVITE    0
  29: #define LOOK_UP     1
  30: #define DELETE      2
  31: #define ANNOUNCE    3
  32: 
  33: /* answer values */
  34: #define SUCCESS     0
  35: #define NOT_HERE    1
  36: #define FAILED      2
  37: #define MACHINE_UNKNOWN 3
  38: #define PERMISSION_DENIED 4
  39: #define UNKNOWN_REQUEST 5
  40: 
  41: typedef struct ctl_response {
  42:     char    type;
  43:     char    answer;
  44:     int id_num;
  45:     struct  sockaddr_in addr;
  46: } CTL_RESPONSE;
  47: 
  48: typedef struct ctl_msg {
  49:     char    type;
  50:     char    l_name[NAME_SIZE];
  51:     char    r_name[NAME_SIZE];
  52:     int id_num;
  53:     int pid;
  54:     char    r_tty[TTY_SIZE];
  55:     struct  sockaddr_in addr;
  56:     struct  sockaddr_in ctl_addr;
  57: } CTL_MSG;

Defined struct's

ctl_msg defined in line 48; never used
ctl_response defined in line 41; never used

Defined typedef's

Defined macros

ANNOUNCE defined in line 31; used 1 times
DELETE defined in line 30; used 4 times
FAILED defined in line 36; used 5 times
HOST_NAME_LENGTH defined in line 21; used 1 times
LEAVE_INVITE defined in line 28; used 2 times
LOOK_UP defined in line 29; used 1 times
MACHINE_UNKNOWN defined in line 37; used 1 times
MAX_LIFE defined in line 23; used 2 times
NAME_SIZE defined in line 19; used 6 times
NOT_HERE defined in line 35; used 3 times
PERMISSION_DENIED defined in line 38; used 4 times
RING_WAIT defined in line 25; used 1 times
TTY_SIZE defined in line 20; used 3 times
UNKNOWN_REQUEST defined in line 39; used 1 times

Usage of this include

Last modified: 1986-03-16
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 909
Valid CSS Valid XHTML 1.0 Strict