|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.lirc.socket.UnixSocketImpl
Implementation for both server and client sockets.
Constructor Summary | |
protected |
UnixSocketImpl()
Creates a new UnixSocketImpl |
Method Summary | |
protected UnixSocketImpl |
accept()
Listens for a connection to be made to this socket and accepts it. |
protected void |
bind(java.lang.String myPath)
Binds to a path |
protected void |
close()
Closes this socket |
protected void |
connect(java.lang.String path)
Connects this socket to a path. |
protected static int |
createSocket()
Creates a native socket and returns its file descriptor. |
protected int |
getFd()
Gets the file descriptor for the socket. |
protected org.lirc.socket.UnixSocketInputStream |
getInputStream()
Returns an input stream for this socket. |
protected org.lirc.socket.UnixSocketOutputStream |
getOutputStream()
Returns an output stream for this socket. |
protected void |
listen(int backlog)
Starts listening. |
protected void |
shutdownInput()
Disables the input stream for this socket. |
protected 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 |
protected UnixSocketImpl() throws java.io.IOException
Method Detail |
protected int getFd()
protected static int createSocket() throws java.io.IOException
java.io.IOException
- if an I/O error occurs when creating
the socket.protected void bind(java.lang.String myPath) throws java.io.IOException
myPath
- path to bind to.java.io.IOException
- if an I/O error occurs when binding.protected void listen(int backlog) throws java.io.IOException
backlog
- The maximum length of the queuejava.io.IOException
- if an I/O error occurs.protected UnixSocketImpl accept() throws java.io.IOException
java.io.IOException
- if an I/O error occurs when waiting for a
connection.protected void connect(java.lang.String path) throws java.io.IOException
If
- there is a problem connecting the socketprotected void close() throws java.io.IOException
java.io.IOException
- If there is a problem closing the socketprotected void shutdownInput() throws java.io.IOException
java.io.IOException
- if an I/O error occurs when shutting down this
socket.protected void shutdownOutput() throws java.io.IOException
java.io.IOException
- if an I/O error occurs when shutting down this
socket.protected org.lirc.socket.UnixSocketInputStream getInputStream() throws java.io.IOException
java.io.IOException
- if an I/O error occurs when creating the
input stream.protected org.lirc.socket.UnixSocketOutputStream getOutputStream() throws java.io.IOException
java.io.IOException
- if an I/O error occurs when creating the
output stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |