Lines Matching refs:SOCKS
38 * SOCKS (V4 & V5) TCP socket implementation (RFC 1928).
129 throw new SocketException("Malformed reply from SOCKS server");
163 server, addr, serverPort, "SOCKS5", "SOCKS authentication", null);
265 throw new SocketException("SOCKS V4 requires IPv4 only addresses");
283 throw new SocketException("Reply from SOCKS server has bad length: " + n);
285 throw new SocketException("Reply from SOCKS server has bad version");
293 ex = new SocketException("SOCKS request rejected");
296 ex = new SocketException("SOCKS server couldn't reach destination");
299 ex = new SocketException("SOCKS authentication failed");
302 ex = new SocketException("Reply from SOCKS server contains bad status");
314 * connect to the SOCKS proxy and negotiate the access. If the proxy
395 if (p.type() != Proxy.Type.SOCKS)
408 // Connects to the SOCKS server
428 throw new SocketException("Can't connect to SOCKS proxy:"
432 // Connects to the SOCKS server
445 // SOCKS Protocol version 4 doesn't know how to deal with
453 // This is SOCKS V5
464 // SOCKS Protocol version 4 doesn't know how to deal with
472 throw new SocketException("SOCKS : No acceptable methods");
474 throw new SocketException("SOCKS : authentication failed");
505 throw new SocketException("Reply from SOCKS server has bad length");
517 throw new SocketException("Reply from SOCKS server badly formatted");
521 throw new SocketException("Reply from SOCKS server badly formatted");
528 throw new SocketException("Reply from SOCKS server badly formatted");
532 throw new SocketException("Reply from SOCKS server badly formatted");
539 throw new SocketException("Reply from SOCKS server badly formatted");
543 throw new SocketException("Reply from SOCKS server badly formatted");
546 ex = new SocketException("Reply from SOCKS server contains wrong code");
551 ex = new SocketException("SOCKS server general failure");
554 ex = new SocketException("SOCKS: Connection not allowed by ruleset");
557 ex = new SocketException("SOCKS: Network unreachable");
560 ex = new SocketException("SOCKS: Host unreachable");
563 ex = new SocketException("SOCKS: Connection refused");
566 ex = new SocketException("SOCKS: TTL expired");
569 ex = new SocketException("SOCKS: Command not supported");
572 ex = new SocketException("SOCKS: address type not supported");
587 throw new SocketException("SOCKS V4 requires IPv4 only addresses");
619 throw new SocketException("Reply from SOCKS server has bad length: " + n);
621 throw new SocketException("Reply from SOCKS server has bad version");
629 ex = new SocketException("SOCKS request rejected");
632 ex = new SocketException("SOCKS server couldn't reach destination");
635 ex = new SocketException("SOCKS authentication failed");
638 ex = new SocketException("Reply from SOCKS server contains bad status");
650 * Sends the Bind request to the SOCKS proxy. In the SOCKS protocol, bind
660 // call the SOCKS proxy for a bind!
664 // Connects to the SOCKS server
709 if (p.type() != Proxy.Type.SOCKS)
722 // Connects to the SOCKS server
750 throw new SocketException("Can't connect to SOCKS proxy:"
789 throw new SocketException("SOCKS : No acceptable methods");
791 throw new SocketException("SOCKS : authentication failed");
839 throw new SocketException("Reply from SOCKS server badly formatted");
843 throw new SocketException("Reply from SOCKS server badly formatted");
854 throw new SocketException("Reply from SOCKS server badly formatted");
858 throw new SocketException("Reply from SOCKS server badly formatted");
868 throw new SocketException("Reply from SOCKS server badly formatted");
872 throw new SocketException("Reply from SOCKS server badly formatted");
881 ex = new SocketException("SOCKS server general failure");
884 ex = new SocketException("SOCKS: Bind not allowed by ruleset");
887 ex = new SocketException("SOCKS: Network unreachable");
890 ex = new SocketException("SOCKS: Host unreachable");
893 ex = new SocketException("SOCKS: Connection refused");
896 ex = new SocketException("SOCKS: TTL expired");
899 ex = new SocketException("SOCKS: Command not supported");
902 ex = new SocketException("SOCKS: address type not supported");
931 // Sends the "SOCKS BIND" request.
972 ex = new SocketException("SOCKS server general failure");
975 ex = new SocketException("SOCKS: Accept not allowed by ruleset");
978 ex = new SocketException("SOCKS: Network unreachable");
981 ex = new SocketException("SOCKS: Host unreachable");
984 ex = new SocketException("SOCKS: Connection refused");
987 ex = new SocketException("SOCKS: TTL expired");
990 ex = new SocketException("SOCKS: Command not supported");
993 ex = new SocketException("SOCKS: address type not supported");