A Transport can exchange bytes with a remote peer.
Associated types
data family TransportOptions tAdditional options that this transport type may use when establishing a connection.
Methods
transportDefaultOptions :: TransportOptions tDefault values for this transport's options.
transportPut :: t -> ByteString -> IO ()Send a ByteString over the transport.
Throws a TransportError if an error occurs.
transportPutWithFds :: t -> ByteString -> [Fd] -> IO ()Send a ByteString and Unix file descriptors over the transport.
Throws a TransportError if an error occurs.
transportGet :: t -> Int -> IO ByteStringReceive a ByteString of the given size from the transport. The transport should block until sufficient bytes are available, and only return fewer than the requested amount if there will not be any more data.
Throws a TransportError if an error occurs.
transportGetWithFds :: t -> Int -> IO (ByteString, [Fd])Receive a ByteString of the given size from the transport, plus any Unix file descriptors that arrive with the byte data. The transport should block until sufficient bytes are available, and only return fewer than the requested amount if there will not be any more data.
Throws a TransportError if an error occurs.
transportClose :: t -> IO ()Close an open transport, and release any associated resources or handles.
Instances2Transport
Transport SomeTransportDefined in dbus-1.4.1 · DBus.SocketTransport SocketTransportDefined in dbus-1.4.1 · DBus.Transport