first working version of camera-server.c, accepts length first followed by data buffer of length length