Progressing client support

--HG--
extra : convert_revision : 48946be1cef774d1c33b0f78689962b18720c627
This commit is contained in:
Matt Johnston
2004-07-27 16:30:46 +00:00
parent 052bf7df93
commit a76b1ba068
28 changed files with 601 additions and 178 deletions

View File

@@ -73,7 +73,7 @@ void write_packet() {
}
if (written == 0) {
session_remoteclosed();
ses.remoteclosed();
}
if (written == len) {
@@ -122,7 +122,7 @@ void read_packet() {
len = read(ses.sock, buf_getptr(ses.readbuf, maxlen), maxlen);
if (len == 0) {
session_remoteclosed();
ses.remoteclosed();
}
if (len < 0) {
@@ -171,7 +171,7 @@ static void read_packet_init() {
len = read(ses.sock, buf_getwriteptr(ses.readbuf, maxlen),
maxlen);
if (len == 0) {
session_remoteclosed();
ses.remoteclosed();
}
if (len < 0) {
if (errno == EINTR) {