Package com.mysql.cj.protocol
Class SocksProxySocketFactory
java.lang.Object
com.mysql.cj.protocol.StandardSocketFactory
com.mysql.cj.protocol.SocksProxySocketFactory
- All Implemented Interfaces:
SocketFactory
,SocketMetadata
public class SocksProxySocketFactory extends StandardSocketFactory
A socket factory used to create sockets connecting through a SOCKS proxy. The socket still supports all the same TCP features as the "standard" socket.
-
Field Summary
Fields inherited from class com.mysql.cj.protocol.StandardSocketFactory
host, loginTimeoutCheckTimestamp, loginTimeoutCountdown, port, rawSocket, socketTimeoutBackup, sslSocket
-
Constructor Summary
Constructors Constructor Description SocksProxySocketFactory()
-
Method Summary
Modifier and Type Method Description protected java.net.Socket
createSocket(PropertySet props)
Create the raw socket.Methods inherited from class com.mysql.cj.protocol.StandardSocketFactory
afterHandshake, beforeHandshake, connect, getRealTimeout, performTlsHandshake, resetLoginTimeCountdown
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mysql.cj.protocol.SocketMetadata
isLocallyConnected, isLocallyConnected
-
Constructor Details
-
SocksProxySocketFactory
public SocksProxySocketFactory()
-
-
Method Details
-
createSocket
Description copied from class:StandardSocketFactory
Create the raw socket.- Overrides:
createSocket
in classStandardSocketFactory
- Parameters:
props
- properties available to affect behaviour during socket creation.- Returns:
- socket
-