version 1.3, 1996/06/26 05:40:24 |
version 1.4, 1998/04/28 22:13:29 |
|
|
static char rcsid[] = "$OpenBSD$"; |
static char rcsid[] = "$OpenBSD$"; |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#include <sys/types.h> |
#include "talk.h" |
#include <sys/socket.h> |
|
#include <netinet/in.h> |
|
#include <protocols/talkd.h> |
|
#include <errno.h> |
#include <errno.h> |
|
#include <unistd.h> |
#include "talk_ctl.h" |
#include "talk_ctl.h" |
#include "talk.h" |
|
|
|
/* |
/* |
* See if the local daemon has an invitation for us. |
* See if the local daemon has an invitation for us. |
*/ |
*/ |
|
int |
check_local() |
check_local() |
{ |
{ |
CTL_RESPONSE response; |
CTL_RESPONSE response; |
|
|
/* |
/* |
* Look for an invitation on 'machine' |
* Look for an invitation on 'machine' |
*/ |
*/ |
|
int |
look_for_invite(rp) |
look_for_invite(rp) |
CTL_RESPONSE *rp; |
CTL_RESPONSE *rp; |
{ |
{ |
struct in_addr machine_addr; |
|
|
|
current_state = "Checking for invitation on caller's machine"; |
current_state = "Checking for invitation on caller's machine"; |
ctl_transact(his_machine_addr, msg, LOOK_UP, rp); |
ctl_transact(his_machine_addr, msg, LOOK_UP, rp); |
/* the switch is for later options, such as multiple invitations */ |
/* the switch is for later options, such as multiple invitations */ |