Commit Graph

127 Commits

Author SHA1 Message Date
jfarrell
985a910b1b THRIFT-2134: mingw-cross-compile script failing with strip errors
Client: build
Patch: jfarrell

Updates the mingw build script to use the -o option when striping.
2013-08-17 15:44:19 -04:00
jfarrell
9753cde10d Thrift-2057:Vagrant fails on php tests
Client: build
Patch: Jake Farrell

Removes phpunit package and installs phpunit from pear
2013-06-21 14:53:39 -05:00
jfarrell
b6f23e89cd Thrift-2052: Vagrant machine image defaults to only 384MB RAM
Client: build
Patch: Justin Porterfield

Updates min ram to 1G and sets num cpus to 2
2013-06-21 13:36:18 -05:00
jfarrell
69b02aa85b Thrift-2051:Vagrant fails to build erlang
Client: build
    Patch: Justin Porterfield

    Removes erlang client lib build from Vagrantfile
2013-06-20 15:40:48 -05:00
Jake Farrell
765bbfb551 Thrift-1733: Fix RPM build issues on RHEL6
Client: contrib
Patch: Kirby Files

Updating thrift.spec for RHEL6 compatability.
2013-06-08 21:25:48 -04:00
Carl Yeksigian
1ed799156d THRIFT-1985: Add a Vagrantfile to build and test Apache Thrift fully reproducable
Moved the Vagrantfile to the contrib/ directory to prevent polluting the top level directory
2013-06-04 04:56:00 -04:00
Jens Geyer
111d8f2615 Add jensg to dev list 2013-06-03 16:49:55 +02:00
Carl Yeksigian
350860fca3 Add carl to developer list 2013-06-01 22:48:52 -04:00
Jake Farrell
64924b8781 Thrift-1984: namespace collision in python
Client: py
Patch: Jake Farrell

Updates fb303 to to be package thrift_fb303.
2013-05-29 23:15:37 -04:00
Jake Farrell
60723b88ff Thrift-1715: Allow excluding libraries in fb303 configure
Client: fb303
Patch: Harsh J

Updated patch to allow for excluding all avaliable lang libraries using the
--without-<lib> configure flag. Configure output added to notify user of
result

Building C++ Library ......... : yes
Building Java Library ........ : yes
Building Python Library ...... : yes
Building PHP Library ......... : yes
2013-03-23 22:38:48 -04:00
Roger Meier
565517a16c subversion, thanks and good bye
;-r
2013-03-22 21:08:39 +01:00
Roger Meier
a17265d615 THRIFT-1825 Debian Packaging: cpp libs no longer included since 0.8
Initial Patch: Marco Matarazzo
Folder move and deletion of contrib/create-debian-packages.sh by roger ;-r
2013-01-08 23:12:28 +01:00
Roger Meier
d996739bff remove dead link 2012-12-28 00:20:21 +01:00
Jake Farrell
6fcecd45a7 Updating Thrift trunk version to 1.0.0-dev
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1397293 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 20:34:25 +00:00
Jake Farrell
9429a12462 Thrift-1717: fix deb build in jenkins
Client: build
Patch: Jake Farrell

Fixing debian changelog to allow deb build to be automated again within jenkins.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1395835 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 01:21:45 +00:00
Roger Meier
27647d5b18 THRIFT-1558 Named Pipe and Anonymous Pipe transport for Windows
remove redundant thrift-sample.sln

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1354405 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 10:17:57 +00:00
Roger Meier
122803bade THRIFT-1558 Named Pipe and Anonymous Pipe transport for Windows
Patch: Peace
add pipe crossplatform example to contrib

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1351477 13f79535-47bb-0310-9956-ffa450edef68
2012-06-18 20:23:58 +00:00
Jake Farrell
f5bae90076 Thrift-1326:on some platforms, #include <stdint.h> is necessary to be included in Thrift.h
Client: contrib/fb303
Patch: Jake Farrell

Adding check for needed headers to fb303 configure.ac



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339969 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 04:14:45 +00:00
Jake Farrell
eccbe4d08d THRIFT-1539:Build and distribute the fb303 python libraries along with thrift
Client: contrib/fb303 - py
Patch: Jake Farrell

Updated build file so dist egg will include project headers, will publish with py client lib to pypi as part of release process.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339967 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 03:57:07 +00:00
Jake Farrell
970c86a5f2 Thrift-1607:Incorrect file modes for several source files
Client: build
Patch: Andrew Cox

File modes of some non-script text files (e.g. .xml, .java, .cc) in the source tree include execute permissions (because these files have the svn:executable property).



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339492 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 05:41:09 +00:00
Roger Meier
23c16b7df7 disable c_glib for mingw compiler build
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1332624 13f79535-47bb-0310-9956-ffa450edef68
2012-05-01 12:12:17 +00:00
Roger Meier
49ff8b123a THRIFT-1552 Include paths for c/c++ should be prefixed with 'thrift/'
To ensure there are no include path collisions the C and C++ header
include paths should include 'thrift' as the root leaf. This will
prevent having to place /usr/include/thrift into the compilers include
header search path, which might otherwise result in the compiler
accidentally picking up headers that it shouldn't.

e.g. #include <foo/bar.h> should be #include <thrift/foo/bar.h>

Change-Id: I48f2b0f549bda0fc81e85506ac857adc800b98a1

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325674 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 09:12:31 +00:00
Roger Meier
8516f58b77 THRIFT-1440 debian packaging: minor-ish policy problems
Patch: Paul Cannon
Fix: Descriptions

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1212569 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 18:42:46 +00:00
Roger Meier
38b7d07072 THRIFT-1421 Debian Packages can not be built
Patch: Brandon Arp
Fix: ruby build

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1212324 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 10:36:05 +00:00
Jake Farrell
828789580b Thrift-1421: Debian Packages can not be built
Removing Erlang package from debian rules and control



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1207553 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 20:00:10 +00:00
Jake Farrell
5d85bbcabe Thrift-1421: Debian Packages can not be built
Client: debian
Patch: Jake Farrell

Commenting out erlang from debian build until jsx can be fixed. 



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1199792 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 15:24:25 +00:00
Jake Farrell
c965dda2dd Thrift-1421: Debian Packages can not be built (ruby build fails)
Client: deb
Patch: Jake Farrell

Removing ruby from deb as it is now available as a gem.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198549 13f79535-47bb-0310-9956-ffa450edef68
2011-11-06 20:29:26 +00:00
Jake Farrell
c92b65311c Thrift-1390L Debian package build fix for squeeze
Client: build
Patch: Jake Farrell

Fix debian build deps for libmomo-system-web2.0-cil.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1186602 13f79535-47bb-0310-9956-ffa450edef68
2011-10-20 02:11:02 +00:00
Jake Farrell
7301eced16 THRIFT-1370: Debian packaging should Build-Depend on libglib2.0-dev
Client: build
Patch: Christian Hofstaedtler

The Debian packaging builds the c_glib interface library, but does not name libglib2.0-dev as a Build-Dependency. While this usually won't affect manual builds, this is a problem for automated build environments which will not have libglib2.0-dev installed unless explicitly requested by Build-Depends.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1178823 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 14:59:40 +00:00
Jake Farrell
9c76258564 updating trunk from 0.7.0-dev to 0.8.0-dev
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1157426 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 21:29:36 +00:00
Bryan Duxbury
4e98a258b2 THRIFT-1237. contrib: Java fb303 missing some methods
Added counters to FacebookBase.

Patch: Ionel Corneliu Gog 

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1146484 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 21:17:26 +00:00
Jake Farrell
c023d90e3b Thrift-1174: Publish as3 client implementation via Maven for use by flex-mojos users
Client: as3

Adds the ability to publish the as3 client to maven central repo along side the java and fb303 libs.




git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1125511 13f79535-47bb-0310-9956-ffa450edef68
2011-05-20 19:04:13 +00:00
Jake Farrell
680114defb Thrift-1109: Deploy fb303 along side libthrift to maven repo
patch: jfarrell
client: contrib fb303 java
depends on: Thrift-363

Adding the ability to publish the fb303 java library as an artifact alongside libthrift to the apache maven repository. 



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1095218 13f79535-47bb-0310-9956-ffa450edef68
2011-04-19 21:15:17 +00:00
Roger Meier
87e4980df0 THRIFT-812 Demo of Thrift over ZeroMQ (C#)
Patch: Nils Huegelmann 


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1095179 13f79535-47bb-0310-9956-ffa450edef68
2011-04-19 19:47:03 +00:00
Roger Meier
f3a51e6b03 THRIFT-1141 Include C (glib) library in default Debian package,
fix libthrift.jar location, updated changelog file



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1091569 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 20:36:12 +00:00
Roger Meier
ba47e8e7d9 THRIFT-1122 do not build any library: added --without-haskell
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1086705 13f79535-47bb-0310-9956-ffa450edef68
2011-03-29 19:59:44 +00:00
Roger Meier
08dc7e85b9 THRIFT-71 Debian packaging for Thrift
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1049288 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 21:38:00 +00:00
Roger Meier
5f9614cf9a THRIFT-916 long long becomes int64_t
Patch: Christian Lavoie



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1037500 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 16:59:05 +00:00
David Reiss
c3b3622158 THRIFT-922. cpp: Add profiling code to help conversion to C++ templates
Add some profiling code to track when potentially unnecessary virtual
calls are made in the thrift C++ serialization and deserialization code.
This can be used to help service implementors determine which places in
their code should be updated to use an appropriate thrift template
class.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005140 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 17:10:10 +00:00
David Reiss
2324871334 THRIFT-928. cpp: Thrift Server Client Stats
Add the ability for Thrift servers to monitor client connections.  It is
activated by #including server/TClientInfo.h and creating 1) a
TClientInfoCallHandler passed to the processor with setEventHandler()
and 2) a TClientInforServerHandler passed to the server with
setServerEventHandler().

The result vector, showing active connections, provides client address
and the thrift call it is executing (or last executed), the time
connected, and the number of calls made since connection.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005139 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 17:10:08 +00:00
David Reiss
5ddabb8e3f THRIFT-923. cpp: Implement a fully nonblocking server and client
There are three major parts of this:
1/ New callback-style interfaces for for a few key Thrift components:
   TAsyncProcessor for servers and TAsyncChannel for clients.
2/ Concrete implementations of TAsyncChannel and a server for
   TAsyncProcessor based on evhttp.
3/ Async-style code generation for C++

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005127 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 17:09:37 +00:00
David Reiss
ca67b89959 contrib/fb303: use pure_enums in C++ for compatibility
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1002000 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28 03:30:17 +00:00
Todd Lipcon
61934780c6 THRIFT-907. java: update fb303 to compile on trunk
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@999520 13f79535-47bb-0310-9956-ffa450edef68
2010-09-21 18:01:43 +00:00
David Reiss
9f3296bca0 THRIFT-812. contrib: Add a demo of using Thrift over ZeroMQ
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991260 13f79535-47bb-0310-9956-ffa450edef68
2010-08-31 16:58:41 +00:00
David Reiss
37b3df2c40 THRIFT-874. Add script to cross-compile the Thrift compiler for Windows
This script cross compiles the Thrift compiler from Ubuntu 10.04 to
Windows using the gcc-mingw32 package.  Run it from a fresh release
tarball.

All of the runtime libraries are disabled.  This is just for building
the compiler.

I set --build and --host to ensure that autoconf knows we are
cross-compiling.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991257 13f79535-47bb-0310-9956-ffa450edef68
2010-08-31 16:51:32 +00:00
David Reiss
b6657f142e THRIFT-781. Install libfb303.so in the correct target lib directory
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@945318 13f79535-47bb-0310-9956-ffa450edef68
2010-05-17 19:13:23 +00:00
David Reiss
62a3fba792 THRIFT-470. fb303: Use a namespace in Perl gen-code
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@769653 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 04:54:24 +00:00
David Reiss
65043d6fbd Flush output at the end of thrift_dump
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762043 13f79535-47bb-0310-9956-ffa450edef68
2009-04-05 06:19:51 +00:00
Bryan Duxbury
5bd7192dc3 THRIFT-393. RPM .spec file has incorrect license
Changed "Thrift Software License" to "Apache license v2.0".

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761056 13f79535-47bb-0310-9956-ffa450edef68
2009-04-01 21:01:56 +00:00
David Reiss
16f5cd177d THRIFT-387. Add license to a bunch of fb303 files
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@760222 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 22:52:51 +00:00
David Reiss
eaaf45c0e0 THRIFT-387. Add license to a few misc files
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@760221 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 22:52:46 +00:00
David Reiss
ea2cba8ba8 THRIFT-387. Add license headers to a bunch of files
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@760189 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 21:35:00 +00:00
David Reiss
3a25cac228 contrib: Update thrift_dump to use the new namespace
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@760182 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 21:22:54 +00:00
David Reiss
cecbed81c8 THRIFT-136. s/async/oneway/ in the Thrift IDL
This is the real change.  The lexer now recognizes "oneway"
and warns on "async".  All example and test IDLs have been
updated, as have the syntax files.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757994 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 20:02:22 +00:00
Bryan Duxbury
261441c0af THRIFT-32. thrift.el doesn't syntax highlight single line comments correctly in xemacs
Even though Todd didn't give me an easy patch to apply, I still figured it out because I just like the guy so much.



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757621 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 00:39:27 +00:00
Bryan Duxbury
13083d6d52 THRIFT-294. Remove @author tags
They're gone. Don't add any new ones!



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@756307 13f79535-47bb-0310-9956-ffa450edef68
2009-03-20 02:19:46 +00:00
David Reiss
554ea6f936 Make the PHP generator use non-hardcoded namespaces.
- Make the PHP generator use program->get_namespace("php")
  instead of program->get_php_namespace()
- Eliminate the explicit "php_namespace" in t_program.
- Deprecate the php_namespace token.
- Update example .thrift files and syntax files.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745241 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 20:28:37 +00:00
David Reiss
92e10d8297 Make the XSD generator use non-hardcoded namespaces.
- Make the XSD generator use program->get_namespace("xsd")
  instead of program->get_xsd_namespace()
- Eliminate the explicit "xsd_namespace" in t_program.
- Deprecate the xsd_namespace token.
- Update example .thrift files and syntax files.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745237 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 20:28:19 +00:00
David Reiss
576dfdcda7 THRIFT-292. Install fb303.thrift in a more sensible location
thrift_home is the Thrift installation we are using.
We shouldn't be trying to install back into it.
Use $(prefix) instead.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741831 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 02:37:00 +00:00
David Reiss
4bec874d82 THRIFT-292. Auto-generate the Python gen-code in build.xml
r739384 deleted the generated Python code from the source tree.
With this change, it will be automatically generated when make is run.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741830 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 02:36:57 +00:00
David Reiss
cd5284c735 THRIFT-292. Auto-generate the Java gen-code in build.xml
r739384 deleted the generated Java code from the source tree.
With this change, it will be automatically generated when ant is run.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741829 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 02:36:54 +00:00
David Reiss
f6dffcdc65 THRIFT-292. Delete aclocal.m4, a generated file
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741828 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 02:36:52 +00:00
David Reiss
858519aac5 THRIFT-292. s/facebook::thrift/apache::thrift/ in contrib/fb303/cpp
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741827 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 02:36:50 +00:00
David Reiss
f4335dfdbe THRIFT-292. Make the #includes in fb303 match the rest of Thrift
Specifically, by removing the "thrift/" prefix.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741826 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 02:36:46 +00:00
David Reiss
0b36a2d9c0 THRIFT-292. Restore fb303/FacebookBase.py
This file was deleted in r739384, but is is not generated code.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741825 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 02:36:43 +00:00
David Reiss
0b7d6fa5ee THRIFT-314. Purge reflection.limited
This was a feature designed to allow a Thrift server to report
information about its interface.  However, the feature has
significant design problems, and is presence is currently causing
confusion without doing any good.  Therefore, it is being removed.
It will always be in source control if and when we are ready to
come back to it.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741824 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 02:36:35 +00:00
Greg Stein
c1eb2a71c3 THRIFT-292
Delete a number of generated artifacts. The build system should produce
these, rather than having them stored in version control.

* contrib/fb303/py/fb303/...: remove generated Python bindings

* contrib/fb303/java/FacebookService.java:
* contrib/fb303/java/fb_status.java:
* contrib/fb303/java/Constants.java:
  - remove generated Java bindings


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739384 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 19:19:45 +00:00
Bryan Duxbury
afa80ea73d THRIFT-34 Java libraries should be namespaced under org.apache.thrift, not com.facebook.thrift
Library classes and tests have been moved to the proper package and directory structure, and references to com.facebook.thrift where replaced with org.apache.thrift throughout the code. The fb303 contrib project still contains com.facebook packages.



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@734855 13f79535-47bb-0310-9956-ffa450edef68
2009-01-15 23:47:51 +00:00
Mark Slee
babaea2f0f THRIFT-183 let non-root issues run fb303 status commands
Reviewed By: mcslee



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@708364 13f79535-47bb-0310-9956-ffa450edef68
2008-10-27 22:45:26 +00:00
David Reiss
7c28b33194 contrib/fb303: Some changes to the build for the Scribe release
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@697294 13f79535-47bb-0310-9956-ffa450edef68
2008-09-20 00:14:01 +00:00
David Reiss
710440f95a Add a working RPM .spec file to contrib.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666501 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 01:19:12 +00:00
David Reiss
218c11f701 Move some top-level files into more sensible directories.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666499 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 01:19:02 +00:00
David Reiss
28f298dd5d Memory-based transport rewrite.
The old implementations of the memory-based transports (TBufferedTransport,
TFramedTransport, and TMemoryBuffer) shared very little code and all worked
a bit differently.  This change unifies them all as subclasses of a single
base (TBufferBase) which handles the fast-path operations (when requests
can be satisfied by the buffer) with inline methods (that will eventually
be made nonvirtual in the template branch) and calls out to pure-virutal
methods to handle full/empty buffers.  All of the buffer-management is now
done in terms of "base and bound" pointers rather than "pos" integers.

These classes were moved to TBufferTransports.{h,cpp}.  The .h is included
in TTransportUtils for backwards compatibility.

Also added a "TShortReadTransport" to assist testing transports.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665676 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 06:17:36 +00:00
David Reiss
0ff213741c Delete a crazy line from fb303's build.xml.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665659 13f79535-47bb-0310-9956-ffa450edef68
2008-04-20 05:28:14 +00:00
David Reiss
99f193766f Remove some .pyc files from fb303.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665654 13f79535-47bb-0310-9956-ffa450edef68
2008-04-11 22:00:00 +00:00
David Reiss
bbdb06eb24 Add thrift_dump.cpp to contrib.
thrift_dump is a simple program for converting data from TBinaryProtocol to
TDebugProtocol.  Throw it in contrib because it is pretty primitve.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665645 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 05:07:14 +00:00
pwyckoff
99b000b484 add fb303 to thrift contrib
Summary: Add clean version of fb303 to thrift contrib readying for open sourcing scribe

Reviewed By: dreiss

Test Plan: bootstrap.sh, make, make install on a fresh machine and then try compiling and running scribe open source version.

Revert: OK

TracCamp Project: Thrift

DiffCamp Revision: 10841


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665634 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 19:30:55 +00:00