version 1.279, 2016/01/13 23:04:47 |
version 1.280, 2016/01/14 16:17:39 |
|
|
#include "sshpty.h" |
#include "sshpty.h" |
#include "match.h" |
#include "match.h" |
#include "msg.h" |
#include "msg.h" |
#include "roaming.h" |
|
#include "ssherr.h" |
#include "ssherr.h" |
#include "hostfile.h" |
#include "hostfile.h" |
|
|
|
|
static void |
static void |
client_process_net_input(fd_set *readset) |
client_process_net_input(fd_set *readset) |
{ |
{ |
int len, cont = 0; |
int len; |
char buf[8192]; |
char buf[8192]; |
|
|
/* |
/* |
|
|
*/ |
*/ |
if (FD_ISSET(connection_in, readset)) { |
if (FD_ISSET(connection_in, readset)) { |
/* Read as much as possible. */ |
/* Read as much as possible. */ |
len = roaming_read(connection_in, buf, sizeof(buf), &cont); |
len = read(connection_in, buf, sizeof(buf)); |
if (len == 0 && cont == 0) { |
if (len == 0) { |
/* |
/* |
* Received EOF. The remote host has closed the |
* Received EOF. The remote host has closed the |
* connection. |
* connection. |