Package org.mandas.docker.client.npipe
Class NamedPipeSocket
java.lang.Object
java.net.Socket
org.mandas.docker.client.npipe.NamedPipeSocket
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoidbind(SocketAddress bindpoint) voidclose()voidconnect(SocketAddress endpoint) voidconnect(SocketAddress endpoint, int timeout) booleanintintgetPort()intbooleanintintintbooleanisBound()booleanisClosed()booleanbooleanbooleanvoidsendUrgentData(int data) voidsetKeepAlive(boolean on) voidsetPerformancePreferences(int connectionTime, int latency, int bandwidth) voidsetReceiveBufferSize(int size) voidsetReuseAddress(boolean on) voidsetSendBufferSize(int size) voidsetSoTimeout(int timeout) voidsetTrafficClass(int tc) voidvoidtoString()Methods inherited from class java.net.Socket
getOOBInline, getOption, getSoLinger, getTcpNoDelay, setOOBInline, setOption, setSocketImplFactory, setSoLinger, setTcpNoDelay, supportedOptions
-
Method Details
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
bind
- Overrides:
bindin classSocket- Throws:
IOException
-
getInetAddress
- Overrides:
getInetAddressin classSocket
-
getLocalAddress
- Overrides:
getLocalAddressin classSocket
-
getPort
public int getPort() -
getLocalPort
public int getLocalPort()- Overrides:
getLocalPortin classSocket
-
getRemoteSocketAddress
- Overrides:
getRemoteSocketAddressin classSocket
-
getLocalSocketAddress
- Overrides:
getLocalSocketAddressin classSocket
-
getChannel
- Overrides:
getChannelin classSocket
-
getInputStream
- Overrides:
getInputStreamin classSocket- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStreamin classSocket- Throws:
IOException
-
sendUrgentData
- Overrides:
sendUrgentDatain classSocket- Throws:
IOException
-
setSoTimeout
public void setSoTimeout(int timeout) - Overrides:
setSoTimeoutin classSocket
-
getSoTimeout
- Overrides:
getSoTimeoutin classSocket- Throws:
SocketException
-
setSendBufferSize
- Overrides:
setSendBufferSizein classSocket- Throws:
SocketException
-
getSendBufferSize
- Overrides:
getSendBufferSizein classSocket- Throws:
SocketException
-
setReceiveBufferSize
- Overrides:
setReceiveBufferSizein classSocket- Throws:
SocketException
-
getReceiveBufferSize
- Overrides:
getReceiveBufferSizein classSocket- Throws:
SocketException
-
setKeepAlive
- Overrides:
setKeepAlivein classSocket- Throws:
SocketException
-
getKeepAlive
- Overrides:
getKeepAlivein classSocket- Throws:
SocketException
-
setTrafficClass
- Overrides:
setTrafficClassin classSocket- Throws:
SocketException
-
getTrafficClass
- Overrides:
getTrafficClassin classSocket- Throws:
SocketException
-
setReuseAddress
- Overrides:
setReuseAddressin classSocket- Throws:
SocketException
-
getReuseAddress
- Overrides:
getReuseAddressin classSocket- Throws:
SocketException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSocket- Throws:
IOException
-
shutdownInput
- Overrides:
shutdownInputin classSocket- Throws:
IOException
-
shutdownOutput
- Overrides:
shutdownOutputin classSocket- Throws:
IOException
-
toString
-
isConnected
public boolean isConnected()- Overrides:
isConnectedin classSocket
-
isBound
public boolean isBound() -
isClosed
public boolean isClosed() -
isInputShutdown
public boolean isInputShutdown()- Overrides:
isInputShutdownin classSocket
-
isOutputShutdown
public boolean isOutputShutdown()- Overrides:
isOutputShutdownin classSocket
-
setPerformancePreferences
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth) - Overrides:
setPerformancePreferencesin classSocket
-