|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.lirc.socket.UnixSocket
A Unix domain socket. The interface is similar to the Socket class from the standard library.
Constructor Summary | |
|
UnixSocket(java.lang.String path)
Creates a new UnixSocket connected to a path. |
protected |
UnixSocket(UnixSocketImpl impl)
Creates a new UnixSocket from a UnixSocketImpl. |
Method Summary | |
void |
close()
Closes this socket |
java.io.InputStream |
getInputStream()
Returns an input stream for this socket. |
java.io.OutputStream |
getOutputStream()
Returns an output stream for this socket. |
void |
shutdownInput()
Disables the input stream for this socket. |
void |
shutdownOutput()
Disables the output stream for this socket. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UnixSocket(java.lang.String path) throws java.io.IOException
path
- The path name of the socket to connect toprotected UnixSocket(UnixSocketImpl impl) throws java.io.IOException
Method Detail |
public void close() throws java.io.IOException
java.io.IOException
- If there is a problem closing the socketpublic java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- if an I/O error occurs when creating the
input stream.public java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
- if an I/O error occurs when creating the
output stream.public void shutdownInput() throws java.io.IOException
java.io.IOException
- if an I/O error occurs when shutting down this
socket.public void shutdownOutput() throws java.io.IOException
java.io.IOException
- if an I/O error occurs when shutting down this
socket.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |