push up the inital version of trevd server.c

compile with "gcc server.c -o server"