version 1.7, 1998/12/20 23:54:08 |
version 1.8, 1999/03/03 20:43:30 |
|
|
? CWERASE : tty.c_cc[VWERASE]; |
? CWERASE : tty.c_cc[VWERASE]; |
cc = write(sockt, buf, sizeof(buf)); |
cc = write(sockt, buf, sizeof(buf)); |
if (cc != sizeof(buf) ) |
if (cc != sizeof(buf) ) |
p_error("Lost the connection"); |
quit("Lost the connection", 1); |
cc = read(sockt, buf, sizeof(buf)); |
cc = read(sockt, buf, sizeof(buf)); |
if (cc != sizeof(buf) ) |
if (cc != sizeof(buf) ) |
p_error("Lost the connection"); |
quit("Lost the connection", 1); |
his_win.cerase = buf[0]; |
his_win.cerase = buf[0]; |
his_win.kill = buf[1]; |
his_win.kill = buf[1]; |
his_win.werase = buf[2]; |
his_win.werase = buf[2]; |
|
|
int dummy; |
int dummy; |
{ |
{ |
|
|
message("Connection closing. Exiting"); |
quit("Connection closing. Exiting", 0); |
quit(); |
|
} |
} |
|
|
/* |
/* |
* All done talking...hang up the phone and reset terminal thingy's |
* All done talking...hang up the phone and reset terminal thingy's |
*/ |
*/ |
void |
void |
quit() |
quit(warning, do_perror) |
|
char *warning; |
|
int do_perror; |
{ |
{ |
|
|
if (curses_initialized) { |
if (curses_initialized) { |
|
|
} |
} |
if (invitation_waiting) |
if (invitation_waiting) |
send_delete(); |
send_delete(); |
|
if (warning) { |
|
if (do_perror) |
|
warn(warning); |
|
else |
|
warnx(warning); |
|
} |
exit(0); |
exit(0); |
} |
} |