sppd_write
if (sppd_write(s, buf, n) < 0) {
if (sppd_write(fd, buf, n) < 0) {
static int sppd_write (int fd, char *buffer, int size);