xstrm.c
/*---------------------------------------------------------------------
 * attach - Attach to XStream server specified in connection info
 *---------------------------------------------------------------------*/
Attach to XStream server specified in connection info
Attach to XStream server specified in connection info
static void attach(oci_t * ocip, conn_info_t *conn, boolean outbound)
{
  sword       err;
  printf ("Attach to XStream %s server '%.*s'\n",
          outbound ? "outbound" : "inbound",
          conn->svrnmlen, conn->svrnm);
  if (outbound)
  {
    OCICALL(ocip,
            OCIXStreamOutAttach(ocip->svcp, ocip->errp, conn->svrnm,
                              (ub2)conn->svrnmlen, (ub1 *)0, 0, OCI_DEFAULT));
  }
  else
  {
    OCICALL(ocip,
            OCIXStreamInAttach(ocip->svcp, ocip->errp, conn->svrnm,
                               (ub2)conn->svrnmlen,
                               (oratext *)"From_XOUT", 9,
                               (ub1 *)0, 0, OCI_DEFAULT));
  }
  ocip->attached = TRUE;
  ocip->outbound = outbound;
}
static void attach ( oci_t * ocip , conn_info_t * conn , boolean outbound ) { sword err ; printf ( " \n " , outbound ? " " : " " , conn -> svrnmlen , conn -> svrnm ) ; if ( outbound ) { OCICALL ( ocip , OCIXStreamOutAttach ( ocip -> svcp , ocip -> errp , conn -> svrnm , ( ub2 ) conn -> svrnmlen , ( ub1 * ) 0 , 0 , OCI_DEFAULT ) ) ; } else { OCICALL ( ocip , OCIXStreamInAttach ( ocip -> svcp , ocip -> errp , conn -> svrnm , ( ub2 ) conn -> svrnmlen , ( oratext * ) " " , 9 , ( ub1 * ) 0 , 0 , OCI_DEFAULT ) ) ; } ocip -> attached = TRUE ; ocip -> outbound = outbound ; }
attach - Attach to XStream server specified in connection info
attach - Attach to XStream server specified in connection info