Lines Matching defs:k_data
310 struct k_data { /* The Kermit data structure */ struct
311 UCHAR * version; /* Version number of Kermit module */
312 short remote; /* 0 = local, 1 = remote */
313 short xfermode; /* 0 = automatic, 1 = manual */
314 short binary; /* 0 = text, 1 = binary */
315 short state; /* Kermit protocol state */
316 short what; /* Action (send or receive) */
317 short s_first; /* Enocode at beginning of file */
318 short s_next; /* Encode lookahead byte */
319 short s_seq; /* Sequence number sent */
320 short r_seq; /* Sequence number received */
321 short s_type; /* Packet type sent */
322 short r_type; /* Packet type received */
323 short s_soh; /* Packet start sent */
324 short r_soh; /* Packet start received */
325 short s_eom; /* Packet end sent */
326 short r_eom; /* Packet end received */
327 int size; /* Current size of output pkt data */
328 int osize; /* Previous output packet data size */
329 int r_timo; /* Receive and send timers */
330 int s_timo; /* ... */
331 int r_maxlen; /* maximum packet length to receive */
332 int s_maxlen; /* maximum packet length to send */
333 short window; /* maximum window slots */
334 short wslots; /* current window slots */
335 short parity; /* 0 = none, nonzero = some */
336 short retry; /* retry limit */
337 short cancel; /* Cancellation */
338 short ikeep; /* Keep incompletely received files */
339 char s_ctlq; /* control-prefix out */
340 char r_ctlq; /* control-prefix in */
341 char ebq; /* 8-bit prefix */
342 char ebqflg; /* 8-bit prefixing negotiated */
343 char rptq; /* Repeat-count prefix */
344 int s_rpt; /* Current repeat count */
345 short rptflg; /* flag for repeat counts negotiated */
346 short bct; /* Block-check type 1..3 */
347 unsigned short capas; /* Capability bits */
349 USHORT crcta[16]; /* CRC generation table A */
350 USHORT crctb[16]; /* CRC generation table B */
352 UCHAR s_remain[6]; /* Send data leftovers */
353 UCHAR ipktbuf[P_PKTLEN+8][P_WSLOTS]; /* Buffers for incoming packets */
354 struct packet ipktinfo[P_WSLOTS]; /* Incoming packet info */
378 int (*rxd)(struct k_data *, UCHAR *, int); /* Comms read function */ argument
379 int (*txd)(struct k_data *, UCHAR *, int); /* and comms write function */ argument
380 int (*ixd)(struct k_data *); /* and comms info function */ argument
381 int (*openf)(struct k_data *,UCHAR *,int); /* open-file function */ argument
382 ULONG (*finfo)(struct k_data *,UCHAR *,UCHAR *,int,short *,short); argument
383 int (*readf)(struct k_data *); /* read-file function */ argument
384 int (*writef)(struct k_data *,UCHAR *, int); /* write-file function */ argument
385 int (*closef)(struct k_data *,UCHAR,int); /* close-file function */ argument
386 void (*dbf)(int,UCHAR *,UCHAR *,long); /* debug function */
387 UCHAR * zinbuf; /* Input file buffer itself */
388 int zincnt; /* Input buffer position */
389 int zinlen; /* Length of input file buffer */
390 UCHAR * zinptr; /* Pointer to input file buffer */
391 int bctf; /* Flag to force type 3 block check */
392 int dummy;