Modified sock.send() to support memoryview objects.