xorp

fea_rawpkt6_client_xif.hh

00001 /*
00002  * obj/i686-pc-linux-gnu/xrl/interfaces/fea_rawpkt6_client_xif.hh
00003  * vim:set sts=4 ts=8 ft=cpp:
00004  *
00005  * Copyright (c) 2001-2010 XORP, Inc and Others
00006  * See the XORP LICENSE.lgpl file for licensing, conditions, and warranties
00007  * on use.
00008  *
00009  * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED
00010  *
00011  * Generated by 'clnt-gen'.
00012  */
00013 
00014 #ifndef __XRL_INTERFACES_FEA_RAWPKT6_CLIENT_XIF_HH__
00015 #define __XRL_INTERFACES_FEA_RAWPKT6_CLIENT_XIF_HH__
00016 
00017 #undef XORP_LIBRARY_NAME
00018 #define XORP_LIBRARY_NAME "XifFeaRawpkt6Client"
00019 
00020 #include "libxorp/xlog.h"
00021 #include "libxorp/callback.hh"
00022 
00023 #include "libxipc/xrl.hh"
00024 #include "libxipc/xrl_error.hh"
00025 #include "libxipc/xrl_sender.hh"
00026 
00027 //#include <memory>
00028 
00029 class XrlRawPacket6ClientV0p1Client {
00030 public:
00031     XrlRawPacket6ClientV0p1Client(XrlSender* s) : _sender(s) {}
00032     virtual ~XrlRawPacket6ClientV0p1Client() {}
00033 
00034     typedef XorpCallback1<void, const XrlError&>::RefPtr RecvCB;
00072     bool send_recv(
00073     const char* dst_xrl_target_name,
00074     const string&   if_name,
00075     const string&   vif_name,
00076     const IPv6& src_address,
00077     const IPv6& dst_address,
00078     const uint32_t& ip_protocol,
00079     const int32_t&  ip_ttl,
00080     const int32_t&  ip_tos,
00081     const bool& ip_router_alert,
00082     const bool& ip_internet_control,
00083     const XrlAtomList&  ext_headers_type,
00084     const XrlAtomList&  ext_headers_payload,
00085     const vector<uint8_t>&  payload,
00086     const RecvCB&   cb
00087     );
00088 
00089 protected:
00090     XrlSender* _sender;
00091 
00092 private:
00093     static void unmarshall_recv(
00094     const XrlError& e,
00095     XrlArgs*    a,
00096     RecvCB      cb
00097     );
00098 
00099 private:
00100     /* Declare cached Xrl pointers */
00101     auto_ptr<Xrl> ap_xrl_recv;
00102 };
00103 
00104 #endif /* __XRL_INTERFACES_FEA_RAWPKT6_CLIENT_XIF_HH__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations