Works as header file for client and server