Implementation of a cash register using Berkeley Sockets