X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/d024bcc4d35bc104a64072b0d398725914b97b93..d43d1075666c90460941d74f5a568d29707cd540:/usr/src/usr.bin/tn3270/api/api_exch.h diff --git a/usr/src/usr.bin/tn3270/api/api_exch.h b/usr/src/usr.bin/tn3270/api/api_exch.h index 8200b9f072..c3d3e403ca 100644 --- a/usr/src/usr.bin/tn3270/api/api_exch.h +++ b/usr/src/usr.bin/tn3270/api/api_exch.h @@ -1,8 +1,26 @@ +/* + * Copyright (c) 1988 Regents of the University of California. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * @(#)api_exch.h 4.1 (Berkeley) %G% + */ + /* * This file describes the structures passed back and forth * between the API client and API server on a Unix-based * tn3270 implementation. - * */ /* @@ -40,8 +58,9 @@ #define EXCH_EXCH_TYPE 3 /* The following is a type */ struct exch_exch { + char + opcode; /* COMMAND, TURNAROUND, or TYPE */ unsigned char - opcode, /* COMMAND, TURNAROUND, or TYPE */ my_sequence, /* 0-ff, initially zero */ your_sequence, /* 0-ff, initially zero */ command_or_type; /* Application level command or type */ @@ -55,23 +74,27 @@ struct exch_exch { */ #define EXCH_CMD_ASSOCIATE 0 /* Connect [client->server] */ + /* + * struct storage_desc + * char key[] + */ #define EXCH_CMD_DISASSOCIATE 1 /* Disconnect [client->server] */ #define EXCH_CMD_SEND_AUTH 2 /* Send password [server->client] */ /* - * struct storeage_desc + * struct storage_desc * char prompt[] - * struct storeage_desc + * struct storage_desc * char seed[] */ #define EXCH_CMD_AUTH 3 /* Authorization [client->server] */ /* - * struct storeage_desc + * struct storage_desc * char authenticator[] */ #define EXCH_CMD_ASSOCIATED 4 /* Connected [server->client] */ #define EXCH_CMD_REJECTED 5 /* Too bad [server->client] */ /* - * struct storeage_desc + * struct storage_desc * char message[] */