Package org.freedesktop.dbus.spi.message
Interface ISocketProvider
-
public interface ISocketProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMessageReadercreateReader(java.nio.channels.SocketChannel _socket)Method to create aIMessageReaderimplementation.IMessageWritercreateWriter(java.nio.channels.SocketChannel _socket)Method to create aIMessageWriterimplementation.booleanisFileDescriptorPassingSupported()Indicate if reader/writer supports file descriptor passing.voidsetFileDescriptorSupport(boolean _support)Called to indicate if the currentAbstractTransportimplementation supports file descriptor passing.
-
-
-
Method Detail
-
createReader
IMessageReader createReader(java.nio.channels.SocketChannel _socket) throws java.io.IOException
Method to create aIMessageReaderimplementation.- Parameters:
_socket- socket to use for reading- Returns:
- MessageReader
- Throws:
java.io.IOException- if reader could not be created
-
createWriter
IMessageWriter createWriter(java.nio.channels.SocketChannel _socket) throws java.io.IOException
Method to create aIMessageWriterimplementation.- Parameters:
_socket- socket to write to- Returns:
- MessageWriter
- Throws:
java.io.IOException- if write could not be created
-
setFileDescriptorSupport
void setFileDescriptorSupport(boolean _support)
Called to indicate if the currentAbstractTransportimplementation supports file descriptor passing.- Parameters:
_support- true if file descriptor passing is supported, false otherwise
-
isFileDescriptorPassingSupported
boolean isFileDescriptorPassingSupported()
Indicate if reader/writer supports file descriptor passing. This is to show if the provider is able to handle file descriptors.- Returns:
- true if file descriptors are supported by this provider, false otherwise
-
-