public class UnixDomainSocketServer extends UnixDomainSocket
UnixDomainSocket.UnixDomainSocketInputStream, UnixDomainSocket.UnixDomainSocketOutputStream, UnixDomainSocket.UnixDomainSocketReadThread
in, nativeSocketFileHandle, out, socketFile, socketType
Constructor and Description |
---|
UnixDomainSocketServer(java.lang.String socketFile,
int socketType)
Creates a Unix domain socket and connects it to the server specified by
the socket file.
|
UnixDomainSocketServer(java.lang.String pSocketFile,
int pSocketType,
int backlog)
Creates a Unix domain socket and connects it to the server specified by
the socket file.
|
Modifier and Type | Method and Description |
---|---|
UnixDomainSocket |
accept() |
java.io.InputStream |
getInputStream()
with new accept() API this should not be used
this method was kept for compatibility with simplified API
|
java.io.OutputStream |
getOutputStream()
with new accept() API this should not be used
this method was kept for compatibility with simplified API
|
close, getTimeout, nativeAccept, nativeClose, nativeCloseInput, nativeCloseOutput, nativeCreate, nativeListen, nativeOpen, nativeRead, nativeUnlink, nativeWrite, setTimeout, unlink
public UnixDomainSocketServer(java.lang.String socketFile, int socketType) throws java.io.IOException
socketFile
- Name of the socket filesocketType
- Either SOCK_STREAM or SOCK_DGRAMjava.io.IOException
- If unable to construct the socketpublic UnixDomainSocketServer(java.lang.String pSocketFile, int pSocketType, int backlog) throws java.io.IOException
socketFile
- Name of the socket filesocketType
- Either SOCK_STREAM or SOCK_DGRAMbacklog
- maximum number of simultanenous connections pending to be accepted.java.io.IOException
- If unable to construct the socketpublic UnixDomainSocket accept() throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutputStream()
getOutputStream
in class UnixDomainSocket
public java.io.InputStream getInputStream()
getInputStream
in class UnixDomainSocket