Przemek,

What is the different between this and the functions we have in 
contrib/hbtpathy?

>    OS2 builds:
>         - discard card is not supported

Is this the character to place when erroneous data is received?

I don't have original OS/2 headers, but in my (VERY) old OS/2 program I had 
this working:

typedef struct
{
    WORD        write_tmo  ;    /* Write timeout in 10 ms ( 0 - 10, 1 - 20 ) */
    WORD        read_tmo   ;    /* Read  timeout in 10 ms ( 0 - 10, 1 - 20 ) */
    BYTE        flag1      ;
    BYTE        flag2      ;
    BYTE        flag3      ;
    BYTE        err_rep    ;
    BYTE        brk_rep    ;
    BYTE        xon_char   ;
    BYTE        xoff_char  ;
} DCBINFO ;

DCBINFO dcb      ;      /* Device control block information */


            /* ... after port is opened */

            if ( !(nErr = DOSDEVIOCTL ((BYTE far*) &dcb, NULL, 0x73, 1, 
pSio->shandle)))
            {
                dcb.read_tmo  = zcom_readtmo  ; /* 10 ms  */
                dcb.write_tmo = zcom_writetmo ; /* 10 ms  */
                dcb.flag1     = 0   ;
                dcb.flag2     = 4|8 ;        /* Error repl | 0-stripp   */
                dcb.flag3     = 2   ;        /* Timeout proceccing bits */
                dcb.err_rep   = 'X';        /* Error replace char */
                dcb.brk_rep   = 0  ;        /* Break replace char */
                if ( !(nErr = DOSDEVIOCTL (NULL, (BYTE far*) &dcb, 0x53, 1, 
pSio->shandle)))
               {
                    /* set baud and other staff ... */

               }
            }


  Chen.
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to