ChamSys MagicQ User Manual User Manual

Page 273

Advertising
background image

MagicQ User Manual

244 / 355

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_ether_fwd++;

return

(TRUE);

}

Advertising
This manual is related to the following products: