Unix and Linux Discussions Tagged with community |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
5,985 |
What is on Your Mind? |
|
|
|
0 |
5,908 |
What is on Your Mind? |
|
|
|
1 |
10,044 |
AIX |
|
|
|
0 |
8,483 |
What is on Your Mind? |
|
|
|
0 |
4,106 |
AIX |
|
|
|
0 |
2,413 |
AIX |
|
|
|
0 |
1,659 |
Solaris BigAdmin RSS |
|
|
|
0 |
941 |
UNIX and Linux RSS News |
|
|
|
0 |
1,126 |
UNIX and Linux RSS News |
|
|
|
0 |
747 |
Software Releases - RSS News |
|
|
|
0 |
603 |
Software Releases - RSS News |
|
|
|
0 |
1,747 |
Solaris BigAdmin RSS |
|
|
|
0 |
1,356 |
UNIX and Linux RSS News |
|
|
|
0 |
1,309 |
UNIX and Linux RSS News |
|
|
|
0 |
1,019 |
UNIX and Linux RSS News |
|
|
|
0 |
932 |
UNIX and Linux RSS News |
|
|
|
0 |
876 |
UNIX and Linux RSS News |
|
|
|
0 |
1,726 |
Software Releases - RSS News |
|
|
|
0 |
781 |
Software Releases - RSS News |
|
|
|
0 |
1,448 |
UNIX and Linux RSS News |
|
|
|
0 |
861 |
UNIX and Linux RSS News |
|
|
|
0 |
818 |
Software Releases - RSS News |
|
|
|
0 |
1,629 |
Software Releases - RSS News |
|
|
|
0 |
1,530 |
Software Releases - RSS News |
|
|
|
0 |
679 |
Software Releases - RSS News |
|
|
|
0 |
1,494 |
Complex Event Processing RSS News |
|
|
|
0 |
982 |
Software Releases - RSS News |
|
|
|
0 |
961 |
UNIX and Linux RSS News |
|
|
|
0 |
1,735 |
Software Releases - RSS News |
|
|
|
0 |
998 |
UNIX and Linux RSS News |
|
|
|
0 |
1,494 |
UNIX and Linux RSS News |
|
|
|
0 |
1,006 |
UNIX and Linux RSS News |
|
|
|
0 |
2,165 |
Complex Event Processing RSS News |
|
|
|
0 |
1,107 |
UNIX and Linux RSS News |
|
|
|
4 |
72,054 |
IP Networking |
|
|
|
2 |
6,263 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
4,880 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
3 |
5,494 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
4,981 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,890 |
Post Here to Contact Site Administrators and Moderators |
snmpsession(3) Library Functions Manual snmpsession(3)
NAME
snmpsession - snmpkit functions dealing with a particular snmpsession.
SYNOPSIS
#include <snmpkit.h>
SNMPSESSION *sk_new_session(char *host, void *(start_routine)(SNMPSESSION*), const char *community);
DESCRIPTION
A snmpsession is an opaque data structure which specifies a
The new_snmpsession() creates a new session. The SNMPSOCK should have previously created by the application using, new_snmpsock(). The
host should will be looked up using gethostbyname() and the community string is something like a password in SNMP lingo but it doesn't have
a username associated with it and it is transmitted in clear text within the packets. In most cases, there are a couple of community
strings. One is only allowed to read and the other is allowed to both read and write. The default read-only community name is "public". If
set the community name to NULL, the community name will default to public.
The new_snmpsession_quick() function is very similar to the new_snmpsession() function except the community name always defaults to "pub-
lic".
The delete_snmpsock() function is the opposite of the new_snmpsession() function. It frees all memory and resources currently being used by
the SNMPSESSION structure.
RETURN VALUE
The new_snmpsock() and the new_snmpsock_quick() both return a pointer to the newly created snmpsock or NULL if there was an error.
AUTHOR
Ben Woodard <ben@users.sourceforge.net>
BUGS
The library can possibly throw different kinds of C++ exceptions that won't be caught by the glue code and therefore it can cause your pro-
gram to crash inexplicably.
SEE ALSO
libsnmpkit(3), snmpsock(3), snmpstructfiller(3), snmptable(3), gethostbyname(3)
GNU snmpkit 0.4 November 2000 snmpsession(3)