public interface ISocketProvider
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreateReader(SocketChannel _socket) Method to create aIMessageReaderimplementation.createWriter(SocketChannel _socket) Method to create aIMessageWriterimplementation.booleanIndicate if reader/writer supports file descriptor passing.voidsetFileDescriptorSupport(boolean _support) Called to indicate if the currentAbstractTransportimplementation supports file descriptor passing.
-
Methodendetails
-
createReader
Method to create aIMessageReaderimplementation.- Parameter:
_socket- socket to use for reading- Gibt zurück:
- MessageReader
- Löst aus:
IOException- if reader could not be created
-
createWriter
Method to create aIMessageWriterimplementation.- Parameter:
_socket- socket to write to- Gibt zurück:
- MessageWriter
- Löst aus:
IOException- if write could not be created
-
setFileDescriptorSupport
void setFileDescriptorSupport(boolean _support) Called to indicate if the currentAbstractTransportimplementation supports file descriptor passing.- Parameter:
_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.- Gibt zurück:
- true if file descriptors are supported by this provider, false otherwise
-