Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: an API for SQL*NET

Re: an API for SQL*NET

From: Carlos Orozco <carlosorozco_at_technologist.com>
Date: 1997/09/05
Message-ID: <341046F5.39443CE3@technologist.com>

Yes there is- is it the tnslib - heres the header file for C apps /*
  $Header: /netrcs/RCS/oracle/network/tns/defs/RCS/tnsapi.h,v 1.4 1995/09/12 19:35:07 yzheng Exp $
*/

/* Copyright (c) 1995 by Oracle Corporation. All rights reserved. */

/*

NAME
  tnsapi.h

DESCRIPTION
  SQL*Net Open API functions.

FUNCTIONS

  tnsopen()    -   open a TNS handle
  tnsclose()   -   close a TNS handle
  tnssend()    -   send data over TNS handle
  tnsrecv()    -   receive data over TNS handle

NOTES
  These functions provides transparent access to the underlying session   implementation SQL*NET.

*/

#ifndef TNSAPI
#define TNSAPI

enum tnsapiopcode {
/* TNS API operations */
  TNSAPIOOPEN,
  TNSAPIOCLOSE,
  TNSAPIOSEND,
  TNSAPIORECV
};

/* TNS API error codes */
/* More will be added as actual coding and testing starts */
/* DISABLE check_naming */
/* DISABLE check_str_mem */

enum tnsapierrcode {
  TNSAPIEBASE = 20000,   SDFAIL_TNSAPIE = TNSAPIEBASE+2,
/*

  RECVFAIL_TNSAPIE = TNSAPIEBASE+3,
/*

  INVSVROP_TNSAPIE = TNSAPIEBASE+4,

/*

  INVCLIOP_TNSAPIE = TNSAPIEBASE+5,

/*

  HDLUNINI_TNSAPIE = TNSAPIEBASE+6,

/*

  INHFAIL_TNSAPIE = TNSAPIEBASE+7,

/*

  ACPTFAIL_TNSAPIE = TNSAPIEBASE+8,

/*

  NULHDL_TNSAPIE = TNSAPIEBASE+9,

/*

  INVOP_TNSAPIE = TNSAPIEBASE+10,

/*

  MALFAIL_TNSAPIE = TNSAPIEBASE+11,

/*

  NLINIFAIL_TNSAPIE = TNSAPIEBASE+12,

/*

  NMTOOLONG_TNSAPIE = TNSAPIEBASE+13,

/*

  CONFAIL_TNSAPIE = TNSAPIEBASE+14,

/*

  LSNFAIL_TNSAPIE = TNSAPIEBASE+15,

/*

  ANSFAIL_TNSAPIE = TNSAPIEBASE+16,

/*

  NMRESFAIL_TNSAPIE = TNSAPIEBASE+17,

/*

  TNSAPIE_ERROR = TNSAPIEBASE+20

/*

};
/* ENABLE check_str_mem */

int tnsopen(/*_ void **handlep, const char *name _*/);

/*

int tnsclose(/*_ void **handlep _*/);

/*

int tnssend(/*_ void *handle, const void *data, size_t *length _*/);

/*

int tnsrecv(/*_ void *handle, void *data, size_t *length _*/);

/*
/*

/* ENABLE check_naming */

#endif /* TNSAPI */

you'll find the lib under network\lib\tnsapi.lib

hope this helps. Received on Fri Sep 05 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US