Change send to use const unsigned char *data