Hi -
I'm making a test to post to Google Analytics. Thanks to the awesome
blocks with samples for Cinder-Protocol/Cinder-Asio, I was able to do
this successfully (working off HTTPClient sample).
If I keep everything in the main class, it works and I see the
results in GA. If I try to subclass the same code (moving headers
over, etc), I can no longer call mClient =
TcpClient::create(io_service()); To get around this, I tried passing
cinder::app::AppBase::io_service() into the class when I create it,
and then using :
- GAPost::GAPost(asio::io_service &io_service){
- mClient
= TcpClient::create( io_service );
Everything compiles, connects, writes, and closes without errors,
but I'm not seeing any of the posts in GA. I think there is
something I'm not understanding related to the io_service. Any
explanations/ideas are appreciated!
Thanks,
Stacey