Home
last modified time | relevance | path

Searched refs:newsock (Results 1 – 12 of 12) sorted by relevance

/external/openssh/
Dsshd.c1094 server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s) argument
1198 *newsock = accept(listen_socks[i],
1200 if (*newsock == -1) {
1209 if (unset_nonblock(*newsock) == -1) {
1210 close(*newsock);
1214 char *laddr = get_local_ipaddr(*newsock);
1215 char *raddr = get_peer_ipaddr(*newsock);
1220 raddr, get_peer_port(*newsock),
1221 laddr, get_local_port(*newsock));
1225 (void)write(*newsock, msg, strlen(msg));
[all …]
Dchannels.c1655 int r, newsock, oerrno, remote_port; in channel_post_x11_listener() local
1664 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen); in channel_post_x11_listener()
1672 if (newsock == -1) { in channel_post_x11_listener()
1680 set_nodelay(newsock); in channel_post_x11_listener()
1681 remote_ipaddr = get_peer_ipaddr(newsock); in channel_post_x11_listener()
1682 remote_port = get_peer_port(newsock); in channel_post_x11_listener()
1687 SSH_CHANNEL_OPENING, newsock, newsock, -1, in channel_post_x11_listener()
1786 int newsock, nextstate; in channel_post_port_listener() local
1814 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen); in channel_post_port_listener()
1815 if (newsock == -1) { in channel_post_port_listener()
[all …]
/external/nist-sip/java/gov/nist/javax/sip/stack/
DTCPMessageProcessor.java133 Socket newsock = sock.accept(); in run() local
140 incomingTcpMessageChannels.add(new TCPMessageChannel(newsock, sipStack, this)); in run()
DTLSMessageProcessor.java147 Socket newsock = sock.accept(); in run() local
156 incomingTlsMessageChannels.add(new TLSMessageChannel(newsock, sipStack, this)); in run()
/external/python/cpython2/Lib/
Dssl.py894 newsock, addr = socket.accept(self)
895 newsock = self.context.wrap_socket(newsock,
899 return newsock, addr
/external/python/cpython3/Lib/
Dssl.py1354 newsock, addr = super().accept()
1355 newsock = self.context.wrap_socket(newsock,
1359 return newsock, addr
/external/libevent/test/
Dtest-ratelim.c190 echo_listenercb(struct evconnlistener *listener, evutil_socket_t newsock, in echo_listenercb() argument
197 bev = bufferevent_socket_new(base, newsock, flags); in echo_listenercb()
/external/stressapptest/src/
Dworker.cc2098 int newsock = accept(sock_, reinterpret_cast<struct sockaddr *>(&sa), &size); in GetConnection() local
2099 if (newsock < 0) { in GetConnection()
2105 *pnewsock = newsock; in GetConnection()
2266 bool NetworkListenThread::SpawnSlave(int newsock, int threadid) { in SpawnSlave() argument
2271 child_worker->thread.SetSock(newsock); in SpawnSlave()
2320 int newsock = 0; in Work() local
2331 if (GetConnection(&newsock)) { in Work()
2332 SpawnSlave(newsock, threadcount); in Work()
Dworker.h542 virtual bool SpawnSlave(int newsock, int threadid);
/external/python/cpython2/Lib/test/
Dtest_ssl.py2257 newsock, addr = s.accept()
2258 newsock.close()
/external/python/cpython3/Lib/test/
Dtest_socket.py5728 newsock = sock.dup()
5730 with newsock:
5731 self.assertEqual(newsock.get_inheritable(), False)
Dtest_ssl.py3157 newsock, addr = s.accept()
3158 newsock.close()