The main() function of a custom server can perform any of the following activities:
A custom server main() function can be simple or complex. Depending on your custom server requirements, you can create the main() function yourself or use a system-generated main() function. How to code the main() function is explained in more detail in Creating the main() function.