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

📄 socket6_user_xif.hh

📁 xorp源码hg
💻 HH
字号:
/* * Copyright (c) 2001-2007 International Computer Science Institute * See LICENSE file for licensing, conditions, and warranties on use. * * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED * * Generated by 'clnt-gen'. * * $XORP: xorp/xrl/interfaces/socket6_user_xif.hh,v 1.7 2007/02/16 22:47:44 pavlin Exp $ */#ifndef __XRL_INTERFACES_SOCKET6_USER_XIF_HH__#define __XRL_INTERFACES_SOCKET6_USER_XIF_HH__#undef XORP_LIBRARY_NAME#define XORP_LIBRARY_NAME "XifSocket6User"#include "libxorp/xlog.h"#include "libxorp/callback.hh"#include "libxipc/xrl.hh"#include "libxipc/xrl_error.hh"#include "libxipc/xrl_sender.hh"class XrlSocket6UserV0p1Client {public:    XrlSocket6UserV0p1Client(XrlSender* s) : _sender(s) {}    virtual ~XrlSocket6UserV0p1Client() {}    typedef XorpCallback1<void, const XrlError&>::RefPtr RecvEventCB;    /**     *  Send Xrl intended to:     *     *  Method invoked by target implementing socket6/0.1 when a packet arrives     *  from an IPv6 source.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param sockid the identifier associated with socket where error     *  occurred.     *     *  @param src_host the originating host.     *     *  @param src_port the originating IP port.     *     *  @param data the data received.     */    bool send_recv_event(	const char*	dst_xrl_target_name,	const string&	sockid,	const IPv6&	src_host,	const uint32_t&	src_port,	const vector<uint8_t>&	data,	const RecvEventCB&	cb    );    typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr ConnectEventCB;    /**     *  Send Xrl intended to:     *     *  Method invoked by target implementing socket6/0.1 when a connection     *  request is received from an IPv6 source.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_connect_event(	const char*	dst_xrl_target_name,	const string&	sockid,	const IPv6&	src_host,	const uint32_t&	src_port,	const string&	new_sockid,	const ConnectEventCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr ErrorEventCB;    /**     *  Send Xrl intended to:     *     *  Method invoked by target implementing socket6/0.1 when an error occurs.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     *     *  @param sockid the identifier associated with socket where error     *  occurred.     *     *  @param error a textual description of the error.     *     *  @param fatal indication of whether socket is shutdown because of error.     */    bool send_error_event(	const char*	dst_xrl_target_name,	const string&	sockid,	const string&	error,	const bool&	fatal,	const ErrorEventCB&	cb    );    typedef XorpCallback1<void, const XrlError&>::RefPtr CloseEventCB;    /**     *  Send Xrl intended to:     *     *  Method invoked by target implementing socket6/0.1 when a socket is     *  forcibly closed. This would typically happen when the address the     *  socket is bound to is removed from an interface. This method is not     *  called if the socket is closed through socket/0.1/close.     *     *  @param dst_xrl_target_name the Xrl target name of the destination.     */    bool send_close_event(	const char*	dst_xrl_target_name,	const string&	sockid,	const string&	reason,	const CloseEventCB&	cb    );protected:    XrlSender* _sender;private:    void unmarshall_recv_event(	const XrlError&	e,	XrlArgs*	a,	RecvEventCB		cb    );    void unmarshall_connect_event(	const XrlError&	e,	XrlArgs*	a,	ConnectEventCB		cb    );    void unmarshall_error_event(	const XrlError&	e,	XrlArgs*	a,	ErrorEventCB		cb    );    void unmarshall_close_event(	const XrlError&	e,	XrlArgs*	a,	CloseEventCB		cb    );};#endif /* __XRL_INTERFACES_SOCKET6_USER_XIF_HH__ */

⌨️ 快捷键说明

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