You write an Open Server application by using calls to Server-Library and CS-Library routines to set up structures, listen for connection requests from clients and other servers, process client requests, and clean up memory. A gateway application also includes calls to Client-Library routines.
An Open Server application program is compiled in the same way as any other C language program. On most UNIX platforms, you need to include these libraries when you compile and link your program (file names or extensions may vary by platform):
libsrv.a
libcs.a
libcomn.a
libtcl.a
libintl.a
libblk.a – if you are using bulk copy routines
libct.a – if you are using a gateway
The library files are located in the $SYBASE/lib directory.