tfSetSnmpPort
Table of Contents >> SNMP Programmer's Reference
| #include <trapi.h> |
| int tfSetSnmpPort | (ttUser16Bit portNumber); |
Function Description
This function lets the user set the port number on which SNMP agent receives SNMP requests. The user can call this function only prior to starting the agent to overwrite the default.
Parameters
- portNumber
- The port number to set to.
Returns
- TM_ENOERROR
- Success.
- TM_PORT_TOOLARGE
- Failure, port_number value is larger than 65535
- TM_ALLOCATION_ERROR
- Failure to allocate memory for the agent global variables.
- TM_AGENT_RUNNING
- Failure, agent is already running