if (ssh_state == SSH_STATE_CLOSED) { if (s) { sk_close(s); s = NULL; } return 0; }
static int ssh_receive(Socket s, int urgent, char *data, int len) {    if (!len) {	/* Connection has closed. */	sk_close(s);	s = NULL;	return 0;    }    ssh_gotdata (data, len);    return 1;}