Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Session = Session {
- sessionSockets :: !(Chan Socket)
- sessionSocketCount :: !Int
- sessionRequestId :: !(TVar RequestId)
- sessionAesSalt :: !(TVar AesSalt)
- sessionTimeoutMicroseconds :: !Int
- sessionMaxTries :: !Int
- sessionKeyCache :: !(IORef (Map (AuthType, ByteString, EngineId) ByteString))
- data Config = Config {}
- data Destination = Destination {
- destinationHost :: !IPv4
- destinationPort :: !Word16
- data Credentials
- newtype CredentialsV2 = CredentialsV2 {}
- data CredentialsV3 = CredentialsV3 {}
- data Context = Context {}
- data PerHostV3 = PerHostV3 {}
- data SnmpException
- = SnmpExceptionNotAllBytesSent !Int !Int
- | SnmpExceptionTimeout
- | SnmpExceptionTimeoutV3 !MessageV3
- | SnmpExceptionPduError !ErrorStatus !ErrorIndex
- | SnmpExceptionMultipleBindings !Int
- | SnmpExceptionMismatchedBinding !ObjectIdentifier !ObjectIdentifier
- | SnmpExceptionUnspecified
- | SnmpExceptionNoSuchObject !ObjectIdentifier
- | SnmpExceptionNoSuchInstance !ObjectIdentifier
- | SnmpExceptionEndOfMibView
- | SnmpExceptionMissedResponse !RequestId !RequestId
- | SnmpExceptionNonPduResponseV2 !MessageV2
- | SnmpExceptionNonPduResponseV3 !MessageV3
- | SnmpExceptionDecoding !String
- | SnmpExceptionSocketClosed
- | SnmpExceptionAuthenticationFailure !ByteString !ByteString
- | SnmpExceptionBadEngineId !MessageV3 !MessageV3
- | SnmpExceptionDecryptionFailure
- openSession :: Config -> IO Session
- closeSession :: Session -> IO ()
- get :: Context -> ObjectIdentifier -> IO ObjectSyntax
- get' :: Context -> ObjectIdentifier -> IO (Either SnmpException ObjectSyntax)
- getBulkStep :: Context -> Int -> ObjectIdentifier -> IO (Vector (ObjectIdentifier, ObjectSyntax))
- getBulkStep' :: Context -> Int -> ObjectIdentifier -> IO (Either SnmpException (Vector (ObjectIdentifier, ObjectSyntax)))
- getBulkChildren :: Context -> Int -> ObjectIdentifier -> IO (Vector (ObjectIdentifier, ObjectSyntax))
- getBulkChildren' :: Context -> Int -> ObjectIdentifier -> IO (Either SnmpException (Vector (ObjectIdentifier, ObjectSyntax)))
Documentation
Session | |
|
data Destination Source #
Instances
Eq Destination Source # | |
Defined in Snmp.Client (==) :: Destination -> Destination -> Bool # (/=) :: Destination -> Destination -> Bool # | |
Show Destination Source # | |
Defined in Snmp.Client showsPrec :: Int -> Destination -> ShowS # show :: Destination -> String # showList :: [Destination] -> ShowS # |
data Credentials Source #
Instances
Eq Credentials Source # | |
Defined in Snmp.Client (==) :: Credentials -> Credentials -> Bool # (/=) :: Credentials -> Credentials -> Bool # | |
Show Credentials Source # | |
Defined in Snmp.Client showsPrec :: Int -> Credentials -> ShowS # show :: Credentials -> String # showList :: [Credentials] -> ShowS # |
newtype CredentialsV2 Source #
Instances
Eq CredentialsV2 Source # | |
Defined in Snmp.Client (==) :: CredentialsV2 -> CredentialsV2 -> Bool # (/=) :: CredentialsV2 -> CredentialsV2 -> Bool # | |
Show CredentialsV2 Source # | |
Defined in Snmp.Client showsPrec :: Int -> CredentialsV2 -> ShowS # show :: CredentialsV2 -> String # showList :: [CredentialsV2] -> ShowS # |
data CredentialsV3 Source #
Instances
Eq CredentialsV3 Source # | |
Defined in Snmp.Client (==) :: CredentialsV3 -> CredentialsV3 -> Bool # (/=) :: CredentialsV3 -> CredentialsV3 -> Bool # | |
Show CredentialsV3 Source # | |
Defined in Snmp.Client showsPrec :: Int -> CredentialsV3 -> ShowS # show :: CredentialsV3 -> String # showList :: [CredentialsV3] -> ShowS # |
data SnmpException Source #
Instances
Eq SnmpException Source # | |
Defined in Snmp.Client (==) :: SnmpException -> SnmpException -> Bool # (/=) :: SnmpException -> SnmpException -> Bool # | |
Show SnmpException Source # | |
Defined in Snmp.Client showsPrec :: Int -> SnmpException -> ShowS # show :: SnmpException -> String # showList :: [SnmpException] -> ShowS # | |
Exception SnmpException Source # | |
Defined in Snmp.Client |
openSession :: Config -> IO Session Source #
Only one connection can be open at a time on a given port.
closeSession :: Session -> IO () Source #
get :: Context -> ObjectIdentifier -> IO ObjectSyntax Source #
get' :: Context -> ObjectIdentifier -> IO (Either SnmpException ObjectSyntax) Source #
getBulkStep :: Context -> Int -> ObjectIdentifier -> IO (Vector (ObjectIdentifier, ObjectSyntax)) Source #
getBulkStep' :: Context -> Int -> ObjectIdentifier -> IO (Either SnmpException (Vector (ObjectIdentifier, ObjectSyntax))) Source #
getBulkChildren :: Context -> Int -> ObjectIdentifier -> IO (Vector (ObjectIdentifier, ObjectSyntax)) Source #
getBulkChildren' :: Context -> Int -> ObjectIdentifier -> IO (Either SnmpException (Vector (ObjectIdentifier, ObjectSyntax))) Source #