websocket server written in c