The sample programs are located in the $SYBASE/$SYBASE_OCS/sample/srvlibrary directory, which includes:
Source code for the sample programs.
The makefile provided to build the samples. Use them as a starting point for your own Server-Library applications.
The samples header file, ossample.h.
A srv_connect event handler.
Error handlers.
The README file containing instructions for building, executing, and testing the samples.