version 1.5, 1998/04/28 22:13:27 |
version 1.6, 1998/08/18 04:02:15 |
|
|
/* |
/* |
* There wasn't an invitation waiting, so send a request containing |
* There wasn't an invitation waiting, so send a request containing |
* our sockt address to the remote talk daemon so it can invite |
* our sockt address to the remote talk daemon so it can invite |
* him |
* him |
*/ |
*/ |
|
|
/* |
/* |
* The msg.id's for the invitations |
* The msg.id's for the invitations |
* on the local and remote machines. |
* on the local and remote machines. |
* These are used to delete the |
* These are used to delete the |
* invitations. |
* invitations. |
*/ |
*/ |
int local_id, remote_id; |
int local_id, remote_id; |
|
|
if (sendto(ctl_sockt, &msg, sizeof (msg), 0, |
if (sendto(ctl_sockt, &msg, sizeof (msg), 0, |
(struct sockaddr *)&daemon_addr, |
(struct sockaddr *)&daemon_addr, |
sizeof (daemon_addr)) != sizeof(msg)) |
sizeof (daemon_addr)) != sizeof(msg)) |
perror("send_delete (remote)"); |
warn("send_delete (remote)"); |
msg.id_num = htonl(local_id); |
msg.id_num = htonl(local_id); |
daemon_addr.sin_addr = my_machine_addr; |
daemon_addr.sin_addr = my_machine_addr; |
if (sendto(ctl_sockt, &msg, sizeof (msg), 0, |
if (sendto(ctl_sockt, &msg, sizeof (msg), 0, |
(struct sockaddr *)&daemon_addr, |
(struct sockaddr *)&daemon_addr, |
sizeof (daemon_addr)) != sizeof (msg)) |
sizeof (daemon_addr)) != sizeof (msg)) |
perror("send_delete (local)"); |
warn("send_delete (local)"); |
} |
} |