applying common functions in protocol std functions to server.c
Merge branch 'master' of https://github.com/isiloron/shiny-bear