Add missing linux_tcp header in examples

The examples for implementing the AMQP::TcpHandler class do not include the linux_tcp header, causing the TcpHandler class to not be found. Unless it was mistakenly not included in amqpcpp.h, the examples should reflect the requirement that it be included when TcpHandler is used.
This commit is contained in:
Chris Downs 2018-03-28 12:53:48 -05:00 committed by GitHub
parent 49491e177a
commit 3e4a8defc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -309,6 +309,7 @@ the main event loop:
````c++
#include <amqpcpp.h>
#include <amqpcpp/linux_tcp.h>
class MyTcpHandler : public AMQP::TcpHandler
{
@ -458,6 +459,7 @@ object:
````c++
#include <amqpcpp.h>
#include <amqpcpp/linux_tcp.h>
class MyTcpHandler : public AMQP::TcpHandler
{