Class NamedPipeSocket
java.lang.Object
java.net.Socket
org.springframework.boot.buildpack.platform.socket.NamedPipeSocket
- All Implemented Interfaces:
Closeable
,AutoCloseable
A
Socket
implementation for named pipes.- Since:
- 2.3.0
- Author:
- Phillip Webb, Scott Frederick
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
connect
(SocketAddress endpoint) void
connect
(SocketAddress endpoint, int timeout) static NamedPipeSocket
Return a newNamedPipeSocket
for the given path.Methods inherited from class java.net.Socket
bind, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions, toString
-
Method Details
-
connect
- Overrides:
connect
in classSocket
- Throws:
IOException
-
connect
- Overrides:
connect
in classSocket
- Throws:
IOException
-
getInputStream
- Overrides:
getInputStream
in classSocket
-
getOutputStream
- Overrides:
getOutputStream
in classSocket
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classSocket
- Throws:
IOException
-
get
Return a newNamedPipeSocket
for the given path.- Parameters:
path
- the path to the domain socket- Returns:
- a
NamedPipeSocket
instance - Throws:
IOException
- if the socket cannot be opened
-