Switch from sendmsg to send

Fixed also a bug sending multipart messages