public class SocksSocket extends Socket
Constructor and Description |
---|
SocksSocket(Socks5 proxy) |
SocksSocket(Socks5 proxy,
InetSocketAddress socketAddress) |
SocksSocket(Socks5 proxy,
Socket proxySocket) |
SocksSocket(Socks5 proxy,
Socket proxySocket,
InetSocketAddress socketAddress) |
setSocketImplFactory, toString
public SocksSocket(Socks5 proxy, InetSocketAddress socketAddress) throws IOException
IOException
public SocksSocket(Socks5 proxy) throws IOException
IOException
public SocksSocket(Socks5 proxy, Socket proxySocket, InetSocketAddress socketAddress) throws IOException
IOException
public void connect(SocketAddress endpoint) throws IOException
connect
in class Socket
IOException
public void connect(SocketAddress endpoint, int timeout) throws IOException
connect
in class Socket
IOException
public InputStream getInputStream() throws IOException
getInputStream
in class Socket
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class Socket
IOException
public void bind(SocketAddress bindpoint) throws IOException
bind
in class Socket
IOException
public InetAddress getInetAddress()
getInetAddress
in class Socket
public InetAddress getLocalAddress()
getLocalAddress
in class Socket
public int getLocalPort()
getLocalPort
in class Socket
public SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress
in class Socket
public SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class Socket
public SocketChannel getChannel()
getChannel
in class Socket
public boolean getTcpNoDelay() throws SocketException
getTcpNoDelay
in class Socket
SocketException
public void setTcpNoDelay(boolean on) throws SocketException
setTcpNoDelay
in class Socket
SocketException
public void setSoLinger(boolean on, int linger) throws SocketException
setSoLinger
in class Socket
SocketException
public int getSoLinger() throws SocketException
getSoLinger
in class Socket
SocketException
public void sendUrgentData(int data) throws IOException
sendUrgentData
in class Socket
IOException
public boolean getOOBInline() throws SocketException
getOOBInline
in class Socket
SocketException
public void setOOBInline(boolean on) throws SocketException
setOOBInline
in class Socket
SocketException
public int getSoTimeout() throws SocketException
getSoTimeout
in class Socket
SocketException
public void setSoTimeout(int timeout) throws SocketException
setSoTimeout
in class Socket
SocketException
public int getSendBufferSize() throws SocketException
getSendBufferSize
in class Socket
SocketException
public void setSendBufferSize(int size) throws SocketException
setSendBufferSize
in class Socket
SocketException
public int getReceiveBufferSize() throws SocketException
getReceiveBufferSize
in class Socket
SocketException
public void setReceiveBufferSize(int size) throws SocketException
setReceiveBufferSize
in class Socket
SocketException
public boolean getKeepAlive() throws SocketException
getKeepAlive
in class Socket
SocketException
public void setKeepAlive(boolean on) throws SocketException
setKeepAlive
in class Socket
SocketException
public int getTrafficClass() throws SocketException
getTrafficClass
in class Socket
SocketException
public void setTrafficClass(int tc) throws SocketException
setTrafficClass
in class Socket
SocketException
public boolean getReuseAddress() throws SocketException
getReuseAddress
in class Socket
SocketException
public void setReuseAddress(boolean on) throws SocketException
setReuseAddress
in class Socket
SocketException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Socket
IOException
public void shutdownInput() throws IOException
shutdownInput
in class Socket
IOException
public void shutdownOutput() throws IOException
shutdownOutput
in class Socket
IOException
public boolean isConnected()
isConnected
in class Socket
public boolean isInputShutdown()
isInputShutdown
in class Socket
public boolean isOutputShutdown()
isOutputShutdown
in class Socket
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences
in class Socket
Copyright © 2017. All rights reserved.