Add AsynSrv_OpenNew
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
#ifndef _rs232c_def_
|
||||
#define _rs232c_def_
|
||||
/*------------------------------------------------ RS232C_DEF.H Ident V02F
|
||||
/*------------------------------------------------ RS232C_DEF.H Ident V02G
|
||||
** Definitions for the RS-232-C Server Protocol
|
||||
**
|
||||
** On UNIX systems, this file is located in /public/lib/include
|
||||
** On VMS systems, this file is a module in mad_lib:sinq_c.tlb
|
||||
*/
|
||||
#define RS__MAX_CLIENTS 3
|
||||
#define RS__MAX_ASYNCH 10 /* Asynch "ports" 0 - 9 will be allowed */
|
||||
|
||||
#define RS__PROTOCOL_ID "V01A"
|
||||
#define RS__PROTOCOL_ID_V01B "V01B"
|
||||
|
||||
@@ -37,6 +34,16 @@
|
||||
** cmnds 356 The command buffer. This is a concatenated list of
|
||||
** commands with the structure described below.
|
||||
**
|
||||
** Special Cases of msg_size
|
||||
** -------------------------
|
||||
** "-001" ==> the client is just about to close his connection.
|
||||
** "-002" ==> this is a request to the server for him to turn on tracing.
|
||||
** The reply should be simply an echo of the 4 bytes "-002".
|
||||
** "-003" ==> this is a request to the server for him to turn off tracing.
|
||||
** The reply should be simply an echo of the 4 bytes "-003".
|
||||
** "-004" ==> this is a request to the server for him to flush his buffers.
|
||||
** The reply should be simply an echo of the 4 bytes "-004".
|
||||
**
|
||||
** Structure of a command item in the cmnds buffer.
|
||||
**
|
||||
** a) RS__PROTOCOL_ID = "V01A"
|
||||
@@ -101,7 +108,7 @@
|
||||
** of 4).
|
||||
** msg_id 4 Message ident (this is a copy of the msg_id field
|
||||
** in the message from Client to Server).
|
||||
** s_pcol_lvl 4 Server-Protocol-Level (should be "V01A").
|
||||
** s_pcol_lvl 4 Server-Protocol-Level (should be "V01A" or "V01B").
|
||||
** n_rply 4 Number of replies following. If < 0, an error has
|
||||
** been detected and sub_status may give additional
|
||||
** information.
|
||||
@@ -141,7 +148,7 @@
|
||||
** reply as received with the terminating character
|
||||
** replaced by '\0'.
|
||||
**
|
||||
** An example of a reply item might be: "0008\r12.345\0"
|
||||
** An example of a reply item might be: "0009\r12.3456\0"
|
||||
**--------------------------------------------------------------------------*/
|
||||
struct RS__RespStruct {
|
||||
char msg_size[4];
|
||||
|
||||
Reference in New Issue
Block a user