Lines Matching full:newsock
1317 int newsock;
1325 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen);
1331 if (newsock < 0) {
1335 set_nodelay(newsock);
1336 remote_ipaddr = get_peer_ipaddr(newsock);
1337 remote_port = get_peer_port(newsock);
1342 SSH_CHANNEL_OPENING, newsock, newsock, -1,
1450 int newsock, nextstate;
1473 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen);
1474 if (newsock < 0) {
1478 set_nodelay(newsock);
1479 nc = channel_new(rtype, nextstate, newsock, newsock, -1,
1500 int newsock;
1506 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen);
1507 if (newsock < 0) {
1512 SSH_CHANNEL_OPENING, newsock, newsock, -1,
1894 int newsock;
1908 if ((newsock = accept(c->sock, (struct sockaddr*)&addr,
1914 if (getpeereid(newsock, &euid, &egid) < 0) {
1917 close(newsock);
1923 close(newsock);
1927 newsock, newsock, -1, c->local_window_max,