Source: ../../xrl/interfaces/fea_rawpkt_client_xif.hh
|
|
|
|
/*
* Copyright (c) 2001-2004 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/fea_rawpkt_client_xif.hh,v 1.10 2004/06/10 22:42:00 hodson Exp $
*/
#ifndef __XRL_INTERFACES_FEA_RAWPKT_CLIENT_XIF_HH__
#define __XRL_INTERFACES_FEA_RAWPKT_CLIENT_XIF_HH__
#undef XORP_LIBRARY_NAME
#define XORP_LIBRARY_NAME "XifFeaRawpktClient"
#include "libxorp/xlog.h"
#include "libxorp/callback.hh"
#include "libxipc/xrl.hh"
#include "libxipc/xrl_error.hh"
#include "libxipc/xrl_sender.hh"
class XrlRawPacketClientV0p1Client {
public:
XrlRawPacketClientV0p1Client(XrlSender* s) : _sender(s) {}
virtual ~XrlRawPacketClientV0p1Client() {}
typedef XorpCallback1<void, const XrlError&>::RefPtr RecvRaw4CB;
/**
* Send Xrl intended to:
*
* Receive a packet from a raw socket.
*
* @param tgt_name Xrl Target name
*/
bool send_recv_raw4(
const char* target_name,
const string& if_name,
const string& vif_name,
const vector<uint8_t>& packet,
const RecvRaw4CB& cb
);
protected:
XrlSender* _sender;
private:
void unmarshall_recv_raw4(
const XrlError& e,
XrlArgs* a,
RecvRaw4CB cb
);
};
#endif /* __XRL_INTERFACES_FEA_RAWPKT_CLIENT_XIF_HH__ */
Generated by: pavlin on possum.icir.org on Thu Jul 8 23:48:16 2004, using kdoc $.