Package net.sourceforge.jtds.ssl
Class TdsTlsSocket
java.lang.Object
java.net.Socket
net.sourceforge.jtds.ssl.TdsTlsSocket
- All Implemented Interfaces:
Closeable
,AutoCloseable
A socket that mediates between JSSE and the DB server.
- Version:
- $Id: TdsTlsSocket.java,v 1.3.2.1 2009-08-07 14:02:11 ickzon Exp $
- Author:
- Rob Worsnop, Mike Hutchinson
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Socket
private final InputStream
private final OutputStream
-
Constructor Summary
ConstructorsConstructorDescriptionTdsTlsSocket
(Socket delegate) Constructs a TdsTlsSocket around an underlying socket. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
void
setKeepAlive
(boolean keepAlive) void
setSoTimeout
(int timeout) void
setTcpNoDelay
(boolean on) Methods inherited from class java.net.Socket
bind, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions, toString
-
Field Details
-
delegate
-
istm
-
ostm
-
-
Constructor Details
-
TdsTlsSocket
TdsTlsSocket(Socket delegate) throws IOException Constructs a TdsTlsSocket around an underlying socket.- Parameters:
delegate
- the underlying socket- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classSocket
- Throws:
IOException
-
getInputStream
- Overrides:
getInputStream
in classSocket
- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStream
in classSocket
- Throws:
IOException
-
isConnected
public boolean isConnected()- Overrides:
isConnected
in classSocket
-
setSoTimeout
- Overrides:
setSoTimeout
in classSocket
- Throws:
SocketException
-
setKeepAlive
- Overrides:
setKeepAlive
in classSocket
- Throws:
SocketException
-
setTcpNoDelay
- Overrides:
setTcpNoDelay
in classSocket
- Throws:
SocketException
-