Searched defs:sock (Results 1 - 25 of 242) sorted by relevance

12345678910

/external/ipsec-tools/src/racoon/
H A Dgrabmyaddr.h40 int sock; member in struct:myaddrs
/external/qemu/android/protocol/
H A Dattach-ui-impl.c33 int sock; member in struct:AttachUIImpl
H A Dattach-ui-proxy.c39 int sock; member in struct:AttachUIProxy
91 _attachUiProxy.sock = fd;
93 loopIo_init(&_attachUiProxy.io, _attachUiProxy.looper, _attachUiProxy.sock,
109 _attachUiProxy.sock = -1;
H A Duser-events-impl.c52 int sock; member in struct:UserEventsImpl
185 _UserEventsImpl.sock = fd;
189 loopIo_init(&_UserEventsImpl.io, _UserEventsImpl.looper, _UserEventsImpl.sock,
/external/apache-http/src/org/apache/http/conn/
H A DOperatedClientConnection.java121 * @param sock the unconnected socket which is about to
125 void opening(Socket sock, HttpHost target) argument
158 * @param sock the new socket for communicating with the target host,
168 void update(Socket sock, HttpHost target, argument
H A DMultihomePlainSocketFactory.java90 * @param sock socket to connect to any of the given addresses
100 public Socket connectSocket(Socket sock, String host, int port, argument
112 if (sock == null)
113 sock = createSocket();
123 sock.bind(isa);
136 sock.connect(new InetSocketAddress(address, port), timeout);
142 sock = new Socket();
150 return sock;
159 * @param sock the connected socket
165 public final boolean isSecure(Socket sock) argument
[all...]
/external/apache-http/src/org/apache/http/conn/scheme/
H A DSocketFactory.java73 * @param sock the socket to connect, as obtained from
86 * from the <code>sock</code> argument if this factory supports
96 Socket sock,
120 * @param sock the connected socket to check
134 boolean isSecure(Socket sock) argument
95 connectSocket( Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params ) argument
H A DPlainSocketFactory.java84 public Socket connectSocket(Socket sock, String host, int port, argument
96 if (sock == null)
97 sock = createSocket();
107 sock.bind(isa);
119 sock.connect(remoteAddress, timeout);
123 return sock;
133 * @param sock the connected socket
139 public final boolean isSecure(Socket sock) argument
142 if (sock == null) {
148 if (sock
[all...]
/external/dropbear/
H A Dcli-main.c42 int sock; local
63 sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport,
66 if (sock < 0) {
77 cli_session(sock, hostandport);
H A Dtcp-accept.c46 static void tcp_acceptor(struct Listener *listener, int sock) { argument
56 fd = accept(sock, (struct sockaddr*)&addr, &len);
H A Dcli-session.c77 void cli_session(int sock, char* remotehost) { argument
83 common_session_init(sock, remotehost);
297 close(ses.sock);
298 ses.sock = -1;
H A Dcli-tcpfwd.c170 int sock; local
196 sock = connect_remote(iter->connectaddr, portstring, 1, NULL);
197 if (sock < 0) {
198 TRACE(("leave newtcpdirect: sock failed"))
203 ses.maxfd = MAX(ses.maxfd, sock);
207 channel->writefd = sock;
H A Dlistener.c60 int sock; local
67 sock = listener->socks[j];
68 if (FD_ISSET(sock, readfds)) {
69 listener->acceptor(listener, sock);
81 void (*acceptor)(struct Listener* listener, int sock),
79 new_listener(int socks[], unsigned int nsocks, int type, void* typedata, void (*acceptor)(struct Listener* listener, int sock), void (*cleanup)(struct Listener*)) argument
H A Dsvr-agentfwd.c47 static void agentaccept(struct Listener * listener, int sock);
98 static void agentaccept(struct Listener *UNUSED(listener), int sock) { argument
102 fd = accept(sock, NULL, NULL);
H A Dsvr-session.c77 void svr_session(int sock, int childpipe, argument
85 common_session_init(sock, remotehost);
201 close(ses.sock);
202 ses.sock = -1;
H A Dsvr-x11fwd.c40 static void x11accept(struct Listener* listener, int sock);
101 static void x11accept(struct Listener* listener, int sock) { argument
111 fd = accept(sock, (struct sockaddr*)&addr, &len);
/external/openssh/
H A Dmonitor_fdpass.c47 mm_send_fd(int sock, int fd) argument
82 pfd.fd = sock;
84 while ((n = sendmsg(sock, &msg, 0)) == -1 &&
108 mm_receive_fd(int sock) argument
138 pfd.fd = sock;
140 while ((n = recvmsg(sock, &msg, 0)) == -1 &&
/external/apache-http/src/org/apache/http/impl/conn/
H A DDefaultClientConnectionOperator.java140 Socket sock = plain_sf.createSocket();
141 conn.opening(sock, target);
144 Socket connsock = plain_sf.connectSocket(sock,
148 if (sock != connsock) {
149 sock = connsock;
150 conn.opening(sock, target);
163 prepareSocket(sock, context, params);
165 Socket layeredsock = layered_sf.createSocket(sock,
169 if (layeredsock != sock) {
174 conn.openCompleted(sf.isSecure(sock), param
252 prepareSocket(Socket sock, HttpContext context, HttpParams params) argument
[all...]
/external/chromium/net/base/
H A Dnetwork_change_notifier_netlink_linux.cc61 int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); local
62 if (sock < 0) {
67 if (!SetNonBlocking(sock)) {
69 if (close(sock) != 0)
80 int ret = bind(sock, reinterpret_cast<struct sockaddr*>(&local_addr),
84 if (close(sock) != 0)
89 return sock;
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/
H A DSocketConnector.java57 private Socket sock; field in class:SocketConnector
66 this.sock = new Socket(address, port);
67 remoteAddress = sock.getRemoteSocketAddress(); // for info purposes
71 sock.setTcpNoDelay(true);
73 in = sock.getInputStream();
74 out = sock.getOutputStream();
81 if( sock == null )
87 if( sock == null )
89 return sock.isConnected();
96 Socket temp = sock;
[all...]
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/udp/
H A DUdpConnector.java52 private DatagramSocket sock = new DatagramSocket(); field in class:UdpConnector
70 this.sock = new DatagramSocket( localSocketAddress );
74 sock.connect( remoteAddress );
81 if( sock == null )
87 if( sock == null )
89 return sock.isConnected();
95 DatagramSocket temp = sock;
96 sock = null;
120 sock.receive(packet);
140 sock
[all...]
/external/libppp/src/
H A Dtcp.c65 int sock; local
86 sock = socket(PF_INET, SOCK_STREAM, 0);
87 if (sock < 0)
90 if (connect(sock, (struct sockaddr *)&dest, sizeof dest) < 0) {
92 close(sock);
96 return sock;
185 struct sockaddr_in sock; local
186 struct sockaddr *sockp = (struct sockaddr *)&sock;
189 sz = sizeof sock;
191 sz != sizeof(struct sockaddr_in) || sock
[all...]
H A Datm.c172 struct sockaddr_natm sock; local
180 sock.snatm_len = sizeof sock;
181 sock.snatm_family = AF_NATM;
182 strncpy(sock.snatm_if, iface, IFNAMSIZ);
183 sock.snatm_vpi = vpi;
184 sock.snatm_vci = vci;
193 if (connect(p->fd, (struct sockaddr *)&sock, sizeof sock) == 0)
/external/openssh/openbsd-compat/
H A Dport-tun.c122 int fd = -1, sock, flag; local
171 if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) == -1)
174 if (ioctl(sock, SIOCGIFFLAGS, &ifr) == -1)
178 if (ioctl(sock, SIOCSIFFLAGS, &ifr) == -1)
182 close(sock);
188 if (sock >= 0)
189 close(sock);
/external/qemu/block/
H A Dnbd.c37 int sock; member in struct:BDRVNBDState
47 int sock; local
60 sock = unix_socket_outgoing(unixpath);
79 sock = tcp_socket_outgoing(hostname, port);
82 if (sock == -1)
85 ret = nbd_receive_negotiate(sock, &size, &blocksize);
89 s->sock = sock;
108 if (nbd_send_request(s->sock, &request) == -1)
111 if (nbd_receive_reply(s->sock,
[all...]

Completed in 560 milliseconds

12345678910