date and time created 87/06/11 15:28:38 by minshall
[unix-history] / usr / src / usr.bin / tn3270 / api / api_exch.h
/*
* This file describes the structures passed back and forth
* between the API client and API server on a Unix-based
* tn3270 implementation.
*/
#define EXCH_CONNECT 23 /* Connect request [client->server] */
#define EXCH_SEND_AUTH 44 /* Send auth (password) [server->client] */
/*
* struct storeage_desc
* char prompt[]
* struct storeage_desc
* char seed[]
*/
#define EXCH_AUTH 65 /* Authorization [client->server] */
/*
* struct storeage_desc
* char authenticator[]
*/
#define EXCH_CONNECTED 78 /* You are now connected [server->client] */
#define EXCH_REJECTED 93 /* Too bad [server->client] */
/*
* struct storeage_desc
* char message[]
*/
#define EXCH_REQUEST 19 /* A request [client->server] */
/* struct regs,
* struct sregs,
* struct storage_desc
* char bytes[]
*/
#define EXCH_GIMME 20 /* I need client storage [server->client] */
/*
* struct storage_desc
*/
#define EXCH_HEREIS 49 /* Here is some storage [BOTH WAYS] */
/*
* struct storage_desc
* char bytes[]
*/
#define EXCH_REPLY 87 /* End of discussion */
/*
* struct regs,
* struct sregs,
*/
#define EXCH_TYPE_REGS 13
#define EXCH_TYPE_SREGS 27
#define EXCH_TYPE_STORE_DESC 33
#define EXCH_TYPE_BYTES 67
/*
* each structure that comes over looks like:
*
* char type of following
* short (2 bytes) length of following (network byte order)
* following
*/
struct storage_descriptor {
long location; /* In network byte order */
short length; /* In network byte order */
};