added BUILD_TCP option to build the linux sockets implementation.
This commit is contained in:
parent
50761bd40d
commit
5701d28b2b
|
|
@ -15,3 +15,5 @@
|
||||||
*.a.*
|
*.a.*
|
||||||
/build
|
/build
|
||||||
/.vscode
|
/.vscode
|
||||||
|
.atom-build.cson
|
||||||
|
.atom-dbg.cson
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ public:
|
||||||
virtual size_t size() const override
|
virtual size_t size() const override
|
||||||
{
|
{
|
||||||
// find out size of the size parameter
|
// find out size of the size parameter
|
||||||
T size((T::Type)_data.size());
|
T size(_data.size());
|
||||||
|
|
||||||
// size of the uint8 or uint32 + the actual string size
|
// size of the uint8 or uint32 + the actual string size
|
||||||
return size.size() + _data.size();
|
return size.size() + _data.size();
|
||||||
|
|
@ -160,7 +160,7 @@ public:
|
||||||
virtual void fill(OutBuffer& buffer) const override
|
virtual void fill(OutBuffer& buffer) const override
|
||||||
{
|
{
|
||||||
// create size
|
// create size
|
||||||
T size((T::Type)_data.size());
|
T size(_data.size());
|
||||||
|
|
||||||
// first, write down the size of the string
|
// first, write down the size of the string
|
||||||
size.fill(buffer);
|
size.fill(buffer);
|
||||||
|
|
@ -210,4 +210,3 @@ typedef StringField<ULong, 'S'> LongString;
|
||||||
* end namespace
|
* end namespace
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,31 @@
|
||||||
/**
|
/**
|
||||||
* Includes.h
|
* Includes.h
|
||||||
*
|
*
|
||||||
* The includes that are necessary to compile the AMQP library
|
* The includes that are necessary to compile the optional TCP part of the AMQP library
|
||||||
* This file also holds includes that may not be necessary for including the library
|
* This file also holds includes that may not be necessary for including the library
|
||||||
*
|
*
|
||||||
* @documentation private
|
* @documentation private
|
||||||
*/
|
*/
|
||||||
|
#include "../includes.h"
|
||||||
|
|
||||||
|
// c and c++ dependencies
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netdb.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <netinet/tcp.h>
|
||||||
|
|
||||||
|
// utility classes
|
||||||
|
#include "../../include/tcpconnection/tcpdefines.h"
|
||||||
|
|
||||||
|
// mid level includes
|
||||||
|
#include "../../include/tcpconnection/tcphandler.h"
|
||||||
|
#include "../../include/tcpconnection/tcpconnection.h"
|
||||||
|
|
||||||
|
// classes that are very commonly used
|
||||||
|
#include "addressinfo.h"
|
||||||
|
|
||||||
|
/*
|
||||||
// c and c++ dependencies
|
// c and c++ dependencies
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
@ -92,5 +111,4 @@
|
||||||
#include "basicframe.h"
|
#include "basicframe.h"
|
||||||
#include "transactionframe.h"
|
#include "transactionframe.h"
|
||||||
#include "addressinfo.h"
|
#include "addressinfo.h"
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue