Fixed the formatting, used SocketError to get socket error numbers, and fixed excption types for recv_into and recvfrom_into