src/Thrift.h \
src/TProcessor.h
-include_concurrencydir = $(includedir)/thrift/concurrency
+include_concurrencydir = $(include_thriftdir)/concurrency
include_concurrency_HEADERS = \
src/concurrency/Exception.h \
src/concurrency/Monitor.h \
src/concurrency/ThreadManager.h \
src/concurrency/TimerManager.h
-include_protocoldir = $(includedir)/thrift/protocol
+include_protocoldir = $(include_thriftdir)/protocol
include_protocol_HEADERS = \
src/protocol/TBinaryProtocol.h \
src/protocol/TProtocol.h
-include_transportdir = $(includedir)/thrift/transport
+include_transportdir = $(include_thriftdir)/transport
include_transport_HEADERS = \
src/transport/TBufferedTransport.h \
src/transport/TChunkedTransport.h \
src/transport/TTransport.h \
src/transport/TTransportException.h
-include_serverdir = $(includedir)/thrift/server
+include_serverdir = $(include_thriftdir)/server
include_server_HEADERS = \
src/server/TServer.h \
src/server/TSimpleServer.h \
AC_CHECK_FUNCS([socket])
+AC_CHECK_FUNCS([strtol])
+
+AC_CHECK_FUNCS([strtoul])
+
AC_CHECK_HEADERS([arpa/inet.h])
AC_CHECK_HEADERS([inttypes.h])
AC_TYPE_SIZE_T
+AC_TYPE_INT16_T
+
AC_TYPE_INT32_T
AC_TYPE_INT64_T
#include <assert.h>
#include <stddef.h>
-#include <time.h>
+#include <sys/time.h>
namespace facebook { namespace thrift { namespace concurrency {
public:
-
Task() {}
void run() {
-#include "protocol/TBinaryProtocol.h"
+#include "TBinaryProtocol.h"
+
using std::string;
namespace facebook { namespace thrift { namespace protocol {
#ifndef T_BINARY_PROTOCOL_H
#define T_BINARY_PROTOCOL_H
-#include <protocol/TProtocol.h>
+#include "TProtocol.h"
#include <boost/shared_ptr.hpp>
* the end of a sequence of fields.
*/
enum TType {
- T_STOP = 1,
+ T_STOP = 0,
+ T_BOOL = 1,
T_BYTE = 2,
+ T_U08 = 2,
T_U16 = 3,
T_I16 = 4,
T_U32 = 5,
T_U64 = 7,
T_I64 = 8,
T_STRING = 9,
+ T_UTF7 = 9,
T_STRUCT = 10,
T_MAP = 11,
T_SET = 12,
- T_LIST = 13
+ T_LIST = 13,
+ T_UTF8 = 14,
+ T_UTF16 = 15
};
/**
#ifndef T_BUFFERED_TRANSPORT_H
#define T_BUFFERED_TRANSPORT_H
-#include <transport/TTransport.h>
+#include "TTransport.h"
#include <string>
#include <boost/shared_ptr.hpp>
#ifndef T_CHUNKED_TRANSPORT_H
#define T_CHUNKED_TRANSPORT_H
-#include <transport/TTransport.h>
+#include "TTransport.h"
#include <string>
#include <boost/shared_ptr.hpp>
#ifndef T_NULL_TRANSPORT
#define T_NULL_TRANSPORT
-#include "transport/TTransport.h"
+#include "TTransport.h"
namespace facebook { namespace thrift { namespace transport {
#include <netinet/in.h>
#include <errno.h>
-#include "transport/TSocket.h"
-#include "transport/TServerSocket.h"
+#include "TSocket.h"
+#include "TServerSocket.h"
#include <boost/shared_ptr.hpp>
namespace facebook { namespace thrift { namespace transport {
#ifndef T_SERVER_SOCKET_H
#define T_SERVER_SOCKET_H
-#include <transport/TServerTransport.h>
+#include "TServerTransport.h"
#include <boost/shared_ptr.hpp>
namespace facebook { namespace thrift { namespace transport {
#ifndef T_SERVER_TRANSPORT_H
#define T_SERVER_TRANSPORT_H
-#include "transport/TTransport.h"
-#include "transport/TTransportException.h"
+#include "TTransport.h"
+#include "TTransportException.h"
#include <boost/shared_ptr.hpp>
namespace facebook { namespace thrift { namespace transport {
#include <unistd.h>
#include <errno.h>
-#include "transport/TSocket.h"
-#include "transport/TTransportException.h"
+#include "TSocket.h"
+#include "TTransportException.h"
namespace facebook { namespace thrift { namespace transport {
#include <string>
-#include "transport/TTransport.h"
-#include "transport/TServerSocket.h"
+#include "TTransport.h"
+#include "TServerSocket.h"
namespace facebook { namespace thrift { namespace transport {
#ifndef T_TRANSPORT_H
#define T_TRANSPORT_H
+#include "TTransportException.h"
#include <string>
-#include "transport/TTransportException.h"
namespace facebook { namespace thrift { namespace transport {