OC Updated for version 2.0
Functions
Link Management

Functions

OCerror oc_open (const char *url, OCobject *linkp)
OCerror oc_close (OCobject link)

Function Documentation

OCerror oc_close ( OCobject  link)

This procedure closes a previously opened link and releases all resources associated with that link.

Parameters:
[in]linkThe link object to be closed.
Return values:
OC_NOERRThe link was successfully closed.
OtherErrorOne of the arguments (link, etc.) was invalid.

Definition at line 89 of file oc.c.

References OC_NOERR, OCDEREF, and OCVERIFY.

OCerror oc_open ( const char *  url,
OCobject linkp 
)

This procedure opens a link to some OPeNDAP data server to request a specific url, possibly with constraints. It returns an OClink object.

Parameters:
[in]urlThe url for the OPeNDAP server to which a connection is created and the request is made.
[out]linkpA pointer to a location into which the link object is to be returned.
Return values:
OC_NOERRThe link was successfully created.
OtherErrorOne of the arguments (link, etc.) was invalid.

Definition at line 66 of file oc.c.

References OC_NOERR.