Added a wrapper function for the socket and bind setup.
Made client multiplexed, now works with broadcast.