reading input sockets in binary. Not done yet