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:
parent
49491e177a
commit
3e4a8defc3
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue