public class UnixDomainSocketClient extends UnixDomainSocket
UnixDomainSocket.UnixDomainSocketInputStream, UnixDomainSocket.UnixDomainSocketOutputStream, UnixDomainSocket.UnixDomainSocketReadThread
in, nativeSocketFileHandle, out, socketFile, socketType
Constructor and Description |
---|
UnixDomainSocketClient(java.lang.String socketFile,
int socketType)
Creates a Unix domain socket and connects it to the server specified by
the socket file.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream()
Returns an input stream for this socket.
|
close, getOutputStream, getTimeout, nativeAccept, nativeClose, nativeCloseInput, nativeCloseOutput, nativeCreate, nativeListen, nativeOpen, nativeRead, nativeUnlink, nativeWrite, setTimeout, unlink
public UnixDomainSocketClient(java.lang.String socketFile, int socketType) throws java.io.IOException
socketFile
- Name of the socket filejava.io.IOException
- If unable to construct the socketpublic java.io.InputStream getInputStream()
getInputStream
in class UnixDomainSocket
java.lang.UnsupportedOperationException
- if getInputStream
is invoked for an
UnixDomainSocketClient
of type
JUDS.SOCK_DGRAM
.