The sample programs are located in $SYBASE/$SYBASE_OCS/sample/srvlibrary, which includes:
Source code for the sample programs.
The makefile provided to build the samples. Use the samples 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.