Lines Matching defs:socket
240 private void sendLine(Socket socket, String line) throws IOException {
241 OutputStream os = socket.getOutputStream();
249 * Reads from socket until an empty line is read which indicates the end of HTTP headers.
251 * @param socket socket to read from.
252 * @throws IOException if an exception took place during the socket read.
254 private void skipToRequestBody(Socket socket) throws IOException {
255 while (getLine(socket.getInputStream()).length() != 0);
261 * @param src socket to read HTTP headers from.The socket current position should point
263 * @param dst socket to write the augmented request to.
267 * @throws IOException if an exception took place during socket reads or writes.
287 * @param src source socket that contains original request headers.
288 * @param dst destination socket to send the filtered headers to.
337 Socket socket = serverSocket.accept();
339 if (socket.getInetAddress().isLoopbackAddress()) {
340 ProxyConnection parser = new ProxyConnection(socket);
344 socket.close();