Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion On callbacks
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Antti Mäkelä  
View profile  
 More options Sep 11 2009, 6:04 pm
From: Antti Mäkelä <zar...@gmail.com>
Date: Fri, 11 Sep 2009 15:04:16 -0700 (PDT)
Local: Fri, Sep 11 2009 6:04 pm
Subject: Re: On callbacks
On Sep 11, 12:10 am, <crai...@ee.washington.edu> wrote:

> So,

>   MakeCallback (&CwndTracer)

> Needs to hook a function that takes two uint32_t, the first being the old
> value and the second being the new value;  which it does:

>   void CwndTracer (uint32_t oldval, uint32_t newval);

  What if I connect WITH context? Context is passed as a string,
right?

I'm getting error as

got=ns3::FunctorCallbackImpl<void (*)(std::string, bool, bool), void,
std::string, bool, bool, ns3::empty, ns3::empty, ns3::empty,
ns3::empty, ns3::empty, ns3::empty>
expected=ns3::CallbackImpl<void, std::string, bool, ns3::empty,
ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty,
ns3::empty>*

when trying to connect my TracedValue<bool> to a function with func
(std::string, bool, bool). If the function is just (std::string, bool)
it works (and seems to be getting only the new values). I'm setting
the TracedValue with () though, not with =.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.