MagicQ User Manual
239 / 348
memcpy(&(rem->data),data,size);
my_broadcast_address.s_addr = ip_address | ~subnet_address;
name.sin_family = AF_INET;
name.sin_port = htons (REMOTE_ETHER_PORT);
name.sin_addr.s_addr = dwswap (my_broadcast_address.s_addr);
nbytes = sendto (remote_ether_sock,
message,
size(
sizeof
(remote_ether_message_t)-1),
0,
(
struct
sockaddr *) & name,
sizeof
(name)
);
if
(nbytes>0) remote_et+;
return
(TRUE);
}