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 Socketprivate final InputStreamprivate final OutputStream -
Constructor Summary
ConstructorsConstructorDescriptionTdsTlsSocket(Socket delegate) Constructs a TdsTlsSocket around an underlying socket. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanvoidsetKeepAlive(boolean keepAlive) voidsetSoTimeout(int timeout) voidsetTcpNoDelay(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSocket- Throws:
IOException
-
getInputStream
- Overrides:
getInputStreamin classSocket- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStreamin classSocket- Throws:
IOException
-
isConnected
public boolean isConnected()- Overrides:
isConnectedin classSocket
-
setSoTimeout
- Overrides:
setSoTimeoutin classSocket- Throws:
SocketException
-
setKeepAlive
- Overrides:
setKeepAlivein classSocket- Throws:
SocketException
-
setTcpNoDelay
- Overrides:
setTcpNoDelayin classSocket- Throws:
SocketException
-