sendDPIpacket()--Send a DPI Packet to the SNMP Agent


  Syntax
 #include <qtossapi.h>

 int  sendDPIpacket( void *dpimsg_p, int length );   


  Service Program Name: QTOSSAPI

  Default Public Authority: *USE

  Threadsafe: No

The sendDPIpacket() function sends a copy of a Distributed Protocol Interface (DPI®) packet to the SNMP agent (on the same system as the subagent).


Authorities and Locks

None.


Parameters

dpimsg_p
(Input) A pointer to the serialized DPI packet.

length
(Input) The length in bytes of the DPI packet to be sent.

Return Value

The return values are defined in the <qtossapi.h> file.

For more information, see the Simple Network Management Protocol (SNMP) SupportLink to PDF manual.


Usage Notes

The sendDPIpacket() function sends a copy of a DPI packet that was sent to the SNMP agent.


Related Information


Example

Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.

  #include  <qtossapi.h>
  unsigned  char *pack_p;
  int       rc;

  pack_p = mkDPIopen("1.3.6.1.2.3.4.5",
                "Sample DPI sub-agent"
                0L,2L, DPI_NATIVE_CSET,
                0,(char *)0);
  if (pack_p) {

     /* Send packet to the agent. */
     rc = sendDPIpacket( pack_p, DPI_PACKET_LEN(pack_p) );

  }


API introduced: V3R6

[ Back to top | UNIX-Type APIs | APIs by category ]