The SnmpMgrOpen function initializes communications sockets and data structures, allowing communications with the specified agent.
LPSNMP_MGR_SESSION SnmpMgrOpen(
|
LPSTR lpAgentAddress, |
// name and address of target SNMP agent |
|
LPSTR lpAgentCommunity, |
// community for target SNMP agent |
|
INT nTimeOut, |
// communication time-out in milliseconds |
|
INT nRetries |
// communication time-out or retry count |
|
); |
If the function succeeds, the return value is a pointer to an LPSNMP_MGR_SESSION structure. This structure is used internally and the programmer should not alter it.
If the function fails, the return value is NULL. To get extended error information, call GetLastError. GetLastError may return the SNMP_MEM_ALLOC_ERROR error code, which indicates a memory allocation error.
This function may also return Windows Sockets error codes.
The name and address of the SNMP target, or the string pointed to by the lpAgentAddress parameter, should conform to one of the following forms:
|
Name/Address |
Form (example) |
|
IP Address |
157.57.8.160 |
|
IP Hostname |
merlin.microsoft.com |
|
Ethernet Address |
00aa00bbccdd |
|
IPX Address |
00006112.00aa00bbccdd |
Names can be provided for agents only if TCP/IP is loaded and the names are TCP/IP host names. NetBIOS names cannot be supplied for IPX hosts.
See also:
| file: /Techref/os/win/api/win32/func/src/f86_4.htm, 4KB, , updated: 2000/4/7 12:19, local time: 2012/5/24 17:53,
38.107.179.234:LOG IN |
| ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/tecHREF/os/win/api/win32/func/src/f86_4.htm"> SnmpMgrOpen</A> |
| Did you find what you needed? |
|
Ubicom SX18 thru SX52, PIC 16c5X compatibile, 50 to 75 MIPS microcontrollers! |
Robotics nuts!Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow! |
.