/external/openssh/ |
sshconnect.c | 190 int sock, gaierr; local 200 sock = rresvport_af(&p, ai->ai_family); 202 if (sock < 0) 207 return sock; 209 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); 210 if (sock < 0) { 214 fcntl(sock, F_SETFD, FD_CLOEXEC); 218 return sock; 229 close(sock); 232 if (bind(sock, res->ai_addr, res->ai_addrlen) < 0) 343 int sock = -1, attempt; local [all...] |
authfd.c | 98 int sock; local 109 sock = socket(AF_UNIX, SOCK_STREAM, 0); 110 if (sock < 0) 114 if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1) { 115 close(sock); 118 if (connect(sock, (struct sockaddr *)&sunaddr, sizeof sunaddr) < 0) { 119 close(sock); 123 return sock; 180 ssh_close_authentication_socket(int sock) 183 close(sock); 198 int sock; local [all...] |
nchan.c | 495 if (c->sock != -1) { 496 if (shutdown(c->sock, SHUT_WR) < 0) 499 c->self, c->sock, strerror(errno)); 513 if (c->sock != -1) { 515 * shutdown(sock, SHUT_READ) may return ENOTCONN if the 519 if (shutdown(c->sock, SHUT_RD) < 0 523 c->self, c->sock, c->istate, c->ostate,
|
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
TCPMessageChannel.java | 110 * new connections. The sock input is the socket that is returned from the accept. Global data 113 * @param sock Socket from which to read and write messages. The socket is already connected 119 protected TCPMessageChannel(Socket sock, SIPTransactionStack sipStack, 126 mySock = sock; 252 Socket sock = this.sipStack.ioHandler.sendBytes(this.messageProcessor.getIpAddress(), local 261 if (sock != mySock && sock != null) { 267 mySock = sock; 310 Socket sock = this.sipStack.ioHandler.sendBytes(this.messageProcessor.getIpAddress(), local 312 if (sock != mySock && sock != null) [all...] |
UDPMessageChannel.java | 391 ((UDPMessageProcessor)this.messageProcessor).sock.send(keepalive); 705 DatagramSocket sock; local 713 sock = ((UDPMessageProcessor) messageProcessor).sock; 718 // sock = new DatagramSocket(0,sipStack.stackInetAddress); 721 sock = new DatagramSocket(); 724 sock.send(reply); 726 sock.close(); 769 DatagramSocket sock; local 771 sock = ((UDPMessageProcessor) messageProcessor).sock [all...] |
/bionic/libc/netbsd/resolv/ |
res_send.c | 160 static int connect_with_timeout(int sock, const struct sockaddr *nsap, 162 static int retrying_select(const int sock, fd_set *readset, fd_set *writeset, 915 connect_with_timeout(int sock, const struct sockaddr *nsap, socklen_t salen, int sec) 921 origflags = fcntl(sock, F_GETFL, 0); 922 fcntl(sock, F_SETFL, origflags | O_NONBLOCK); 924 res = connect(sock, nsap, salen); 935 " %d send_vc\n", sock); 938 res = retrying_select(sock, &rset, &wset, &finish); 944 fcntl(sock, F_SETFL, origflags); 947 " %d connect_with_timeout returning %s\n", sock, res) [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/ |
eap_sim_db.c | 66 int sock; member in struct:eap_sim_db_data 278 static void eap_sim_db_receive(int sock, void *eloop_ctx, void *sock_ctx) 284 res = recv(sock, buf, sizeof(buf), 0); 338 data->sock = socket(PF_UNIX, SOCK_DGRAM, 0); 339 if (data->sock < 0) { 349 if (bind(data->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 351 close(data->sock); 352 data->sock = -1; 359 if (connect(data->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 364 close(data->sock); [all...] |
/external/wpa_supplicant_8/src/eap_server/ |
eap_sim_db.c | 61 int sock; member in struct:eap_sim_db_data 273 static void eap_sim_db_receive(int sock, void *eloop_ctx, void *sock_ctx) 279 res = recv(sock, buf, sizeof(buf), 0); 333 data->sock = socket(PF_UNIX, SOCK_DGRAM, 0); 334 if (data->sock < 0) { 344 if (bind(data->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 346 close(data->sock); 347 data->sock = -1; 354 if (connect(data->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 359 close(data->sock); [all...] |
/external/chromium/chrome/browser/ |
process_singleton_linux.cc | 217 int sock = socket(PF_UNIX, SOCK_STREAM, 0); local 218 PCHECK(sock >= 0) << "socket() failed"; 220 int rv = SetNonBlocking(sock); 222 rv = SetCloseOnExec(sock); 225 return sock; 229 void SetupSocket(const std::string& path, int* sock, struct sockaddr_un* addr) { 230 *sock = SetupSocketOnly(); 916 int sock; local [all...] |
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/transport/ |
TransportManager.java | 133 private final Socket sock = new Socket(); field in class:TransportManager 238 sock.setTcpNoDelay(state); 243 sock.setSoTimeout(timeout); 274 sock.close(); 307 sock.close(); 357 sock.connect(new InetSocketAddress(addr, port), connectTimeout); 368 sock.connect(new InetSocketAddress(addr, pd.proxyPort), connectTimeout); 403 OutputStream out = sock.getOutputStream(); 411 InputStream in = sock.getInputStream(); 479 ClientServerHello csh = new ClientServerHello(identification, sock.getInputStream(), sock.getOutputStream()) [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
driver_madwifi.c | 55 int sock; member in struct:wpa_driver_madwifi_data 82 if (ioctl(drv->sock, op, &iwr) < 0) { 165 if (ioctl(drv->sock, IEEE80211_IOCTL_SETPARAM, &iwr) < 0) { 185 if (ioctl(drv->sock, IEEE80211_IOCTL_SETOPTIE, &iwr) < 0) { 441 if (ioctl(drv->sock, SIOCSIWSCAN, &iwr) < 0) { 527 drv->sock = socket(PF_INET, SOCK_DGRAM, 0); 528 if (drv->sock < 0) 546 close(drv->sock); 578 close(drv->sock);
|
driver_atmel.c | 54 int sock; member in struct:wpa_driver_atmel_data 112 if (ioctl(drv->sock, ATMEL_WPA_IOCTL, &iwr) < 0) { 135 if (ioctl(drv->sock, ATMEL_WPA_IOCTL_PARAM, &iwr) < 0) { 469 drv->sock = socket(PF_INET, SOCK_DGRAM, 0); 470 if (drv->sock < 0) { 484 close(drv->sock);
|
/external/kernel-headers/original/linux/sunrpc/ |
xprt.h | 123 struct socket * sock; /* BSD socket layer */ member in struct:rpc_xprt 124 struct sock * inet; /* INET layer */ 205 void (*old_data_ready)(struct sock *, int); 206 void (*old_state_change)(struct sock *); 207 void (*old_write_space)(struct sock *);
|
/external/mdnsresponder/mDNSShared/ |
PlatformCommon.c | 44 int sock = socket(AF_INET, SOCK_DGRAM, 0); local 46 if (sock == -1) return; 71 if ((connect(sock, &addr.s, inner_len)) < 0) 74 if ((getsockname(sock, &addr.s, &len)) < 0) 81 close(sock);
|
dnsextd.c | 115 TCPSocket *sock; // socket connected to client member in struct:__anon9652 238 mDNSlocal mStatus AddSourceToEventLoop( DaemonInfo * self, TCPSocket *sock, EventCallback callback, void *context ) 257 newSource->sock = sock; 258 newSource->fd = mDNSPlatformTCPGetFD( sock ); 270 mDNSlocal mStatus RemoveSourceFromEventLoop( DaemonInfo * self, TCPSocket *sock ) 277 if ( source->sock == sock ) 305 TCPSocket *sock = mDNSPlatformTCPSocket( NULL, 0, &port ); local 306 if ( !sock ) { LogErr("ConnectToServer", "socket"); return NULL; 910 TCPSocket *sock = NULL; local 1342 TCPSocket *sock = ConnectToServer(d); local 1514 TCPSocket * sock = NULL; local 1742 TCPSocket *sock = NULL; local [all...] |
/external/ppp/pppd/plugins/rp-pppoe/ |
plugin.c | 190 int sock; local 197 sock = socket(AF_INET, SOCK_DGRAM, 0); 198 if (sock < 0) { 204 if (ioctl(sock, SIOCSIFMTU, &ifr) < 0) { 208 (void) close (sock);
|
/external/qemu/android/protocol/ |
fb-updates-impl.c | 60 int sock; member in struct:FrameBufferImpl 116 ret = socket_recv(fbi->sock, fbi->reader_buffer + fbi->reader_offset, 218 fbi->sock = core_connection_get_socket(fbi->core_connection); 221 loopIo_init(fbi->io, looper, fbi->sock, 228 SyncSocket* sk = syncsocket_init(fbi->sock);
|
fb-updates-proxy.c | 53 int sock; member in struct:ProxyFramebuffer 256 proxyFb_create(int sock, const char* protocol) 264 ret->sock = sock; 276 loopIo_init(&ret->io, ret->looper, sock, _proxyFb_io_fun, ret);
|
/external/wpa_supplicant_8/src/drivers/ |
driver_bsd.c | 59 int sock; /* open socket for 802.11 ioctls */ member in struct:bsd_driver_data 87 if (ioctl(drv->sock, SIOCS80211, &ireq) < 0) { 108 if (ioctl(drv->sock, SIOCG80211, ireq) < 0) { 149 if (ioctl(drv->sock, SIOCG80211NWID, &ifr) < 0 || 172 return ioctl(drv->sock, SIOCS80211NWID, &ifr); 187 if (ioctl(drv->sock, SIOCGIFMEDIA, &ifmr) < 0) { 206 if (ioctl(drv->sock, SIOCSIFMEDIA, &ifr) < 0) { 269 if (ioctl(drv->sock, SIOCGIFFLAGS, &ifr) < 0) { 279 if (ioctl(drv->sock, SIOCSIFFLAGS, &ifr) < 0) { 576 return ioctl(drv->sock, SIOCS80211CHANNEL, &creq) [all...] |
/external/dropbear/ |
svr-agentfwd.c | 47 static void agentaccept(struct Listener * listener, int sock); 98 static void agentaccept(struct Listener *UNUSED(listener), int sock) { 102 fd = accept(sock, NULL, NULL);
|
svr-x11fwd.c | 40 static void x11accept(struct Listener* listener, int sock); 101 static void x11accept(struct Listener* listener, int sock) { 111 fd = accept(sock, (struct sockaddr*)&addr, &len);
|
/frameworks/base/tests/CoreTests/android/core/ |
SocketTest.java | 122 Socket sock = serverSock.accept(); local 123 sock.getInputStream().read(); 124 sock.close(); 190 // Socket sock = new Socket(); 194 // sock.connect(new InetSocketAddress(NON_EXISTING_ADDRESS, 80), timeout); 204 // sock.close();
|
/external/ipsec-tools/src/racoon/ |
session.c | 218 if (FD_ISSET(p->sock, &rfds)) 219 isakmp_handler(p->sock); 306 if (p->sock >= FD_SETSIZE) { 310 FD_SET(p->sock, &mask0); 311 nfds = (nfds > p->sock ? nfds : p->sock);
|
/external/kernel-headers/original/linux/ |
filter.h | 144 struct sock; 147 extern int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk);
|
/external/qemu/proxy/ |
proxy_common.c | 541 int sock; local 549 sock = socket_create(addr.family, SOCKET_STREAM); 550 if (sock < 0) { 555 socket_set_nonblock(sock); 558 if (socket_connect(sock, &addr) == 0) { 561 socket_close(sock); 567 iolooper_add_write(looper, sock); 572 socket_close(sock);
|