Class AbstractSocketWrapper
java.lang.Object
java.net.Socket
org.eclipse.ecf.provider.filetransfer.events.socket.AbstractSocketWrapper
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(SocketAddress bindpoint) protected voidvoidclose()voidconnect(SocketAddress endpoint) voidconnect(SocketAddress endpoint, int timeout) booleanbooleanintbooleanintgetPort()intbooleanintintintbooleanintinthashCode()booleanisBound()booleanisClosed()booleanbooleanbooleanvoidsendUrgentData(int data) voidsetKeepAlive(boolean on) voidsetOOBInline(boolean on) voidsetReceiveBufferSize(int size) voidsetReuseAddress(boolean on) voidsetSendBufferSize(int size) voidsetSoLinger(boolean on, int linger) voidsetSoTimeout(int timeout) voidsetTcpNoDelay(boolean on) voidsetTrafficClass(int tc) voidvoidtoString()Methods inherited from class java.net.Socket
getChannel, getOption, setOption, setPerformancePreferences, setSocketImplFactory, supportedOptions
-
Constructor Details
-
AbstractSocketWrapper
- Parameters:
socket- for the wrapper
-
-
Method Details
-
checkCancel
- Throws:
IOException- if some problem
-
getSocket
-
bind
- Overrides:
bindin classSocket- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSocket- Throws:
IOException
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
equals
-
getInetAddress
- Overrides:
getInetAddressin classSocket
-
getInputStream
- Overrides:
getInputStreamin classSocket- Throws:
IOException
-
getKeepAlive
- Overrides:
getKeepAlivein classSocket- Throws:
SocketException
-
getLocalAddress
- Overrides:
getLocalAddressin classSocket
-
getLocalPort
public int getLocalPort()- Overrides:
getLocalPortin classSocket
-
getLocalSocketAddress
- Overrides:
getLocalSocketAddressin classSocket
-
getOOBInline
- Overrides:
getOOBInlinein classSocket- Throws:
SocketException
-
getOutputStream
- Overrides:
getOutputStreamin classSocket- Throws:
IOException
-
getPort
public int getPort() -
getReceiveBufferSize
- Overrides:
getReceiveBufferSizein classSocket- Throws:
SocketException
-
getRemoteSocketAddress
- Overrides:
getRemoteSocketAddressin classSocket
-
getReuseAddress
- Overrides:
getReuseAddressin classSocket- Throws:
SocketException
-
getSendBufferSize
- Overrides:
getSendBufferSizein classSocket- Throws:
SocketException
-
getSoLinger
- Overrides:
getSoLingerin classSocket- Throws:
SocketException
-
getSoTimeout
- Overrides:
getSoTimeoutin classSocket- Throws:
SocketException
-
getTcpNoDelay
- Overrides:
getTcpNoDelayin classSocket- Throws:
SocketException
-
getTrafficClass
- Overrides:
getTrafficClassin classSocket- Throws:
SocketException
-
hashCode
public int hashCode() -
isBound
public boolean isBound() -
isClosed
public boolean isClosed() -
isConnected
public boolean isConnected()- Overrides:
isConnectedin classSocket
-
isInputShutdown
public boolean isInputShutdown()- Overrides:
isInputShutdownin classSocket
-
isOutputShutdown
public boolean isOutputShutdown()- Overrides:
isOutputShutdownin classSocket
-
sendUrgentData
- Overrides:
sendUrgentDatain classSocket- Throws:
IOException
-
setKeepAlive
- Overrides:
setKeepAlivein classSocket- Throws:
SocketException
-
setOOBInline
- Overrides:
setOOBInlinein classSocket- Throws:
SocketException
-
setReceiveBufferSize
- Overrides:
setReceiveBufferSizein classSocket- Throws:
SocketException
-
setReuseAddress
- Overrides:
setReuseAddressin classSocket- Throws:
SocketException
-
setSendBufferSize
- Overrides:
setSendBufferSizein classSocket- Throws:
SocketException
-
setSoLinger
- Overrides:
setSoLingerin classSocket- Throws:
SocketException
-
setSoTimeout
- Overrides:
setSoTimeoutin classSocket- Throws:
SocketException
-
setTcpNoDelay
- Overrides:
setTcpNoDelayin classSocket- Throws:
SocketException
-
setTrafficClass
- Overrides:
setTrafficClassin classSocket- Throws:
SocketException
-
shutdownInput
- Overrides:
shutdownInputin classSocket- Throws:
IOException
-
shutdownOutput
- Overrides:
shutdownOutputin classSocket- Throws:
IOException
-
toString
-