version 1.11, 2003/09/26 04:41:48 |
version 1.12, 2004/03/02 21:04:42 |
|
|
#if 0 |
#if 0 |
static char sccsid[] = "@(#)invite.c 8.1 (Berkeley) 6/6/93"; |
static char sccsid[] = "@(#)invite.c 8.1 (Berkeley) 6/6/93"; |
#endif |
#endif |
static char rcsid[] = "$OpenBSD$"; |
static const char rcsid[] = "$OpenBSD$"; |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#include "talk.h" |
#include "talk.h" |
|
|
struct itimerval itimer; |
struct itimerval itimer; |
CTL_RESPONSE response; |
CTL_RESPONSE response; |
struct sockaddr rp; |
struct sockaddr rp; |
int rplen = sizeof(struct sockaddr); |
socklen_t rplen = sizeof(struct sockaddr); |
struct hostent *rphost; |
struct hostent *rphost; |
char rname[STRING_LENGTH]; |
char rname[STRING_LENGTH]; |
|
|
|
|
message("Waiting for your party to respond"); |
message("Waiting for your party to respond"); |
signal(SIGALRM, re_invite); |
signal(SIGALRM, re_invite); |
(void) setjmp(invitebuf); |
(void) setjmp(invitebuf); |
while ((new_sockt = accept(sockt, &rp, &rplen)) < 0) { |
while ((new_sockt = accept(sockt, &rp, &rplen)) == -1) { |
if (errno == EINTR || errno == ECONNABORTED) |
if (errno == EINTR || errno == ECONNABORTED) |
continue; |
continue; |
quit("Unable to connect with your party", 1); |
quit("Unable to connect with your party", 1); |