⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 snmp_session.h

📁 -
💻 H
字号:
/* -*- c++ -*- */#ifndef _SNMP_SESSION_H_#define _SNMP_SESSION_H_/********************************************************************** * *           Copyright 1997 by Carnegie Mellon University *  *                       All Rights Reserved *  * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of CMU not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. *  * CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. *  * $Id: snmp_session.h,v 1.2 1998/04/04 01:43:50 kostas Exp $ *  **********************************************************************/struct snmp_session {    int Version;		/* SNMP Version for this session */    u_char *community;		/* community for outgoing requests. */    int community_len;		/* Length of community name. */    int retries;		/* Number of retries before timeout. */    int timeout;		/* Number of uS until first timeout, then exponential backoff */    char *peername;		/* Domain name or dotted IP address of default peer */    u_short remote_port;	/* UDP port number of peer. */    u_short local_port;		/* My UDP port number, 0 for default, picked randomly */    /* This isn't used, but is here so that libraries compiled with this     * in place still work.     */    u_char *(*authenticator) ();    int (*callback) ();		/* Function to interpret incoming data */    /* Pointer to data that the callback function may consider important */    void *callback_magic;};#define RECEIVED_MESSAGE   1#define TIMED_OUT	   2#endif /* _SNMP_SESSION_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -