libssh2-0.2.0.1: FFI bindings to libssh2 SSH2 client library (http://libssh2.org/)

Safe HaskellNone

Network.SSH.Client.LibSSH2.Errors

Contents

Synopsis

Types

data NULL_POINTER Source

Exception to throw when null pointer received from libssh2.

Utilities

class IntResult a whereSource

Methods

intResult :: a -> IntSource

Instances

Functions

getLastError :: Session -> IO (Int, String)Source

Get last error information.

handleInt :: IntResult a => Maybe Session -> IO a -> IO aSource

Throw an exception if negative value passed, or return unchanged value.

handleNullPtr :: Maybe Session -> (Ptr () -> IO a) -> IO (Ptr ()) -> IO aSource

Throw an exception if null pointer passed, or return it casted to right type.

blockedDirections :: Session -> IO [Direction]Source

Get currently blocked directions