Former-commit-id:133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly06a8b51d6d
[formerly9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:377dcd10b9
[formerly3360eb6c5f
] Former-commit-id:8e80217e59
31 lines
588 B
C
31 lines
588 B
C
// +++ Name: testmode.H
|
|
//Purpose: This is a general header file for most of the test mode programs.
|
|
// ---*************************************************************************
|
|
|
|
#ifndef _TEST_MODE_H_
|
|
#define _TEST_MODE_H_
|
|
|
|
#include "sockhelp.H"
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
#define BF_SIZE 128
|
|
struct sockdata_t
|
|
{
|
|
char msg[BF_SIZE];
|
|
char sender[BF_SIZE];
|
|
};
|
|
|
|
#define TEST_MODE 11
|
|
#define PRACTICE_MODE 12
|
|
#define PANIC_MODE 13
|
|
#define OPERATION_MODE 15
|
|
#define EXIT_MODE 16
|
|
|
|
#define DEFAULT_PORT_NUM "1234"
|
|
|
|
#define FAIL 0
|
|
#define PASS 1
|
|
#endif
|
|
|