Classe TSNMPSend

Unit

Declaração

type TSNMPSend = class(TSynaClient)

Descrição

Implementation of SNMP protocol.

Note: Are you missing properties for specify server address and port? Look to parent TSynaClient too!

Hierarquia

Visão Geral

Campos

Protected FSock: TUDPBlockSocket;
Protected FBuffer: AnsiString;
Protected FHostIP: AnsiString;
Protected FQuery: TSNMPRec;
Protected FReply: TSNMPRec;

Métodos

Protected function InternalSendSnmp(const Value: TSNMPRec): Boolean;
Protected function InternalRecvSnmp(const Value: TSNMPRec): Boolean;
Protected function InternalSendRequest(const QValue, RValue: TSNMPRec): Boolean;
Protected function GetV3EngineID: AnsiString;
Protected function GetV3Sync: TV3Sync;
Public constructor Create;
Public destructor Destroy; override;
Public function SendRequest: Boolean;
Public function SendTrap: Boolean;
Public function RecvTrap: Boolean;
Public function DoIt: Boolean;

Propriedades

Published property Buffer: AnsiString read FBuffer write FBuffer;
Published property HostIP: AnsiString read FHostIP;
Published property Query: TSNMPRec read FQuery;
Published property Reply: TSNMPRec read FReply;
Published property Sock: TUDPBlockSocket read FSock;

Descrição

Campos

Protected FSock: TUDPBlockSocket;
 
Protected FBuffer: AnsiString;
 
Protected FHostIP: AnsiString;
 
Protected FQuery: TSNMPRec;
 
Protected FReply: TSNMPRec;
 

Métodos

Protected function InternalSendSnmp(const Value: TSNMPRec): Boolean;
 
Protected function InternalRecvSnmp(const Value: TSNMPRec): Boolean;
 
Protected function InternalSendRequest(const QValue, RValue: TSNMPRec): Boolean;
 
Protected function GetV3EngineID: AnsiString;
 
Protected function GetV3Sync: TV3Sync;
 
Public constructor Create;
 
Public destructor Destroy; override;
 
Public function SendRequest: Boolean;

Connects to a Host and send there query. If in timeout SNMP server send back query, result is True. If is used SNMPv3, then it synchronize self with SNMPv3 agent first. (It is needed for SNMPv3 auhorization!)

Public function SendTrap: Boolean;

Send SNMP packet only, but not waits for reply. Good for sending traps.

Public function RecvTrap: Boolean;

Receive SNMP packet only. Good for receiving traps.

Public function DoIt: Boolean;

Mapped to SendRequest internally. This function is only for backward compatibility.

Propriedades

Published property Buffer: AnsiString read FBuffer write FBuffer;

contains raw binary form of SNMP packet. Good for debugging.

Published property HostIP: AnsiString read FHostIP;

After SNMP operation hold IP address of remote side.

Published property Query: TSNMPRec read FQuery;

Data object contains SNMP query.

Published property Reply: TSNMPRec read FReply;

Data object contains SNMP reply.

Published property Sock: TUDPBlockSocket read FSock;

Socket object used for TCP/IP operation. Good for seting OnStatus hook, etc.


Gerado por PasDoc 0.16.0.