Home
last modified time | relevance | path

Searched refs:rawSocket (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/network/sockets/
DltpClient.c368 int rawSocket, count, value = TIMETOLIVE; in network_listener() local
372 rawSocket = socket(PF_INET, SOCK_RAW, protocol->p_proto); in network_listener()
375 if (rawSocket < 0) { in network_listener()
388 recvfrom(rawSocket, packet, sizeof(packet), 0, in network_listener()
404 close(rawSocket); in network_listener()
487 int i, rawSocket, count = 1; in ping_network() local
493 rawSocket = socket(PF_INET, SOCK_RAW, protocol->p_proto); in ping_network()
495 if (rawSocket < 0) { in ping_network()
496 printf("Error: cannot open RAW socket %d\n", rawSocket); in ping_network()
500 if (setsockopt(rawSocket, SOL_IP, IP_TTL, &value, sizeof(value)) != 0) { in ping_network()
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/io/
DRealConnection.java75 private Socket rawSocket; field in RealConnection
113 rawSocket = proxy.type() == Proxy.Type.DIRECT || proxy.type() == Proxy.Type.HTTP in connect()
119 Util.closeQuietly(rawSocket); in connect()
121 rawSocket = null; in connect()
143 rawSocket.setSoTimeout(readTimeout); in connectSocket()
145 Platform.get().connectSocket(rawSocket, route.getSocketAddress(), connectTimeout); in connectSocket()
149 source = Okio.buffer(Okio.source(rawSocket)); in connectSocket()
150 sink = Okio.buffer(Okio.sink(rawSocket)); in connectSocket()
156 socket = rawSocket; in connectSocket()
186 rawSocket, address.getUriHost(), address.getUriPort(), true /* autoClose */); in connectTls()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/io/
DRealConnection.java71 private Socket rawSocket; field in RealConnection
109 rawSocket = proxy.type() == Proxy.Type.DIRECT || proxy.type() == Proxy.Type.HTTP in connect()
115 Util.closeQuietly(rawSocket); in connect()
117 rawSocket = null; in connect()
139 rawSocket.setSoTimeout(readTimeout); in connectSocket()
141 Platform.get().connectSocket(rawSocket, route.getSocketAddress(), connectTimeout); in connectSocket()
145 source = Okio.buffer(Okio.source(rawSocket)); in connectSocket()
146 sink = Okio.buffer(Okio.sink(rawSocket)); in connectSocket()
152 socket = rawSocket; in connectSocket()
182 rawSocket, address.getUriHost(), address.getUriPort(), true /* autoClose */); in connectTls()
[all …]