download faxproto.h
Language: C
Copyright: Copyright 1987-96, Bit Bucket Software Co.
LOC: 50
Project Info
BinkleyTerm XE(btxe)
Server: SourceForge
Type: cvs
...e\b\btxe\btxe\btnt\sources\
   Addr.cpp
   Addr.h
   aglcrc.cpp
   aglcrc.h
   asyn_lnx.cpp
   asyn_os2.cpp
   asyn_w32.cpp
   async.h
   asyos2v1.h
   b_banner.cpp
   b_bbs.cpp
   b_faxrcv.cpp
   b_flofil.cpp
   b_frproc.cpp
   b_help.cpp
   b_initva.cpp
   b_logs.cpp
   b_passwo.cpp
   b_proto.cpp
   b_rspfil.cpp
   b_sbinit.cpp
   b_script.cpp
   b_search.cpp
   b_sessio.cpp
   b_spawn.cpp
   b_term.cpp
   b_termov.cpp
   b_today.cpp
   b_wazoo.cpp
   b_whack.cpp
   b_wzsend.cpp
   banner.cpp
   banner.h
   BasicString.h
   bbs_ctra.cpp
   bbs_data.cpp
   bbs_incl.h
   bbs_io.cpp
   bink.h
   bink_asm.cpp
   binkdlg.cpp
   binkpipe.h
   box.h
   brec.cpp
   bsend.cpp
   bt.cpp
   btconfig.cpp
   btutil.cpp
   buffer.h
   cache.cpp
   cache.h
   callback.cpp
   callerid.cpp
   callwin.cpp
   callwin.h
   capi.cpp
   cfosline.cpp
   chat.cpp
   com.h
   com_dos.h
   com_lnx.h
   com_os2.h
   com_w32.h
   common.cpp
   cpuload.cpp
   css.cpp
   css.h
   data.cpp
   debug.cpp
   debug.h
   defines.h
   dosfuncs.cpp
   emsi.cpp
   emxmxcom.cpp
   evtparse.cpp
   evtsetup.cpp
   exceptio.cpp
   exceptio.h
   Exceptions.cpp
   Exceptions.h
   externs.h
   faxproto.h
   fcfgread.cpp
   fidomail.h
   file_all.cpp
   file_dos.cpp
   file_io.h
   file_lnx.cpp
   file_os2.cpp
   file_w32.cpp
   foffsets.h
   fossil.cpp
   freepoll.cpp
   ftsc.cpp
   gethcomm.h
   heap.cpp
   history.cpp
   history.h
   hydra.cpp
   hydra.h
   includes.cpp
   includes.h
   janus.cpp
   janus.h
   keybd.h
   keyfncs.h
   keymap.cpp
   langload.cpp
   language.h
   lngmagic.h
   m7rec.cpp
   m7send.cpp
   mailer.cpp
   mailovly.cpp
   mailroot.cpp
   maxcomm.h
   maxmcp.cpp
   maxmcp.h
   maxprm.cpp
   mdm_proc.cpp
   misc.cpp
   msgs.h
   Node.cpp
   Node.h
   NodeList.cpp
   NodeList.h
   nodeproc.cpp
   os2_pm.cpp
   outbound.cpp
   pipe.cpp
   pktmsgs.cpp
   pktmsgs.h
   protcomm.cpp
   prototyp.h
   recvbark.cpp
   recvsync.cpp
   sbuf.cpp
   sbuf.h
   sched.cpp
   sched.h
   script2.cpp
   SelfTest.cpp
   SelfTest.h
   sendbark.cpp
   sendsync.cpp
   squish.cpp
   squish.h
   srif.cpp
   statetbl.cpp
   stats.cpp
   stdafx.cpp
   stdafx.h
   timer.cpp
   timer.h
   times.cpp
   types.h
   v7debug.cpp
   version.cpp
   version7.cpp
   version7.h
   vfos_dos.cpp
   vfos_lnx.cpp
   vfos_os2.cpp
   vfos_qnx.cpp
   vfos_w32.cpp
   vfossil.h
   video.h
   vt100.cpp
   vt100.h
   xfer.h
   xmrec.cpp
   xmsend.cpp
   xstring.h
   yoohoo.cpp
   zmodem.cpp
   zmodem.h

/*---------------------------------------------------------------------------*
 *
 *                               BinkleyTerm
 *
 *              (C) Copyright 1987-96, Bit Bucket Software Co.
 *     For license and contact information see /doc/orig_260/license.260.
 *
 *           This version was modified by the BinkleyTerm XE Team.
 *        For contact information see /doc/team.lst and /doc/join.us.
 *  For a complete list of changes see /doc/xe_user.doc and /doc/xe_hist.doc.
 *
 * Filename    : $Source: /cvsroot/btxe/btnt/sources/faxproto.h,v $
 * Revision    : $Revision: 1.1 $
 * Tagname     : $Name:  $
 * Last updated: $Date: 2005/01/01 15:18:12 $
 * State       : $State: Exp $
 * Orig. Author: Michael Buenter
 *
 * Description : Fax definitions for BinkleyTerm
 *
 *---------------------------------------------------------------------------*/

/* Constants for Class 2 commands */

/* exit codes  */

#define FAXSENT     0
#define FAXINSYNC   0
#define FAXNOSYNC   1
#define FAXNODIAL   2
#define FAXBUSY     3
#define FAXHANG     4
#define FAXERROR    5

/* My own page reception codes */

#define PAGE_GOOD           0
#define ANOTHER_DOCUMENT    1
#define END_OF_DOCUMENT     2
#define PAGE_HANGUP         4
#define PAGE_ERROR          5

/********************************************************/
/* Class 2 session parameters                           */

/* Set desired transmission params with +FDT=DF,VR,WD,LN
 * DF = Data Format :   0  1-d huffman
 *                      *1 2-d modified Read
 *                      *2 2-d uncompressed mode
 *                      *3 2-d modified modified Read
 *
 * VR = Vertical Res :  0 Normal, 98 lpi
 *                      1 Fine, 196 lpi
 *
 * WD = width :         0  1728 pixels in 215 mm
 *                      *1 2048 pixels in 255 mm
 *
 * LN = page length :   0 A4, 297 mm
 *                      1 B4, 364 mm
 *                      2  Unlimited
 *
 * EC = error correction :      0 disable ECM
 *
 * BF = binary file transfer :  0 disable BFT
 *
 * ST = scan time/line :        VR = normal     VR = fine
 *                         0    0 ms            0 ms
 *
 */

/* data format */

#define DF_1DHUFFMAN    0
#define DF_2DMREAD      1
#define DF_2DUNCOMP     2
#define DF_2DMMREAD     3

/* vertical resolution */

#define VR_NORMAL       0
#define VR_FINE         1

/* width */

#define WD_1728         0
#define WD_2048         1

/* page length */

#define LN_A4           0
#define LN_B4           1
#define LN_UNLIMITED    2

/* Baud rate */

#define BR_2400         0
#define BR_4800         1
#define BR_7200         2
#define BR_9600         3

/* A T.30 DIS frame, as sent by the remote fax machine */

struct T30Params
{
  int vr;
  /* VR = Vertical Res :             */
  /*     0 Normal, 98 lpi            */
  /*     1 Fine, 196 lpi             */

  int br;
  /* BR = Bit Rate :    br * 2400BPS */

  int wd;
  /* Page Width :                    */
  /*     0 1728 pixels in 215 mm     */
  /*     1 2048 pixels in 255 mm     */
  /*     2 2432 pixels in 303 mm     */

  int ln;
  /* Page Length :                   */
  /*     0 A4, 297 mm                */
  /*     1 B4, 364 mm                */
  /*     2 unlimited                 */

  int df;
  /* Data compression format :       */
  /*     0 1-D modified Huffman      */
  /*     1 2-D modified ReAd         */
  /*     2 2-D unompressed mode (?)  */

  int ec;
  /* Error Correction :              */
  /*     0 disable ECM               */
  /*     1 enable ECM 64 bytes/frame */
  /*     2 enable CM 256B/frame      */

  int bf;
  /* Binary File Transfer            */
  /*     0 disable BFT               */
  /*     1 enable BFT                */

  int st;
  /* Scan Time (ms) :                */
  /*     VR   Normal  Fine           */
  /*     0    0       0 ms           */
  /*     1    5       5              */
  /*     2    10      5              */
  /*     3    10      10             */
  /*     4    20      10             */
  /*     5    20      20             */
  /*     6    40      20             */
  /*     7    40      40             */
};

struct faxmodem_response
{
  char remote_id[50];           /* +FCSI remote id      */
  int hangup_code;              /* +FHNG code           */
  int post_page_response_code;  /* +FPTS code           */
  int post_page_message_code;   /* +FET code            */
  int fcon;                     /* Boolean; TRUE if +FCON  seen */
  int connect;                  /* Boolean; TRUE if CONNECT msg seen */
  int ok;                       /* Boolean; TRUE if OK seen */
  int error;                    /* Boolean; TRUE if ERROR or NO CARRIER seen */

  /* Session params; parsed from +FDCS */

  struct T30Params T30;
};

/* $Id: faxproto.h,v 1.1 2005/01/01 15:18:12 vildanov Exp $ */

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us