common/thrift.git
18 years agoBring Thrift test code up to date
Mark Slee [Thu, 26 Oct 2006 04:56:18 +0000 (04:56 +0000)] 
Bring Thrift test code up to date

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664852 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- Change thrift logging macros to have a T_ prefix
Aditya Agarwal [Thu, 26 Oct 2006 03:31:34 +0000 (03:31 +0000)] 
-- Change thrift logging macros to have a T_ prefix

Summary:
-- don't want to cause naming conflicts with other packages/dirs

Reviewed By: Mark Slee

Test Plan: Compiled

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664851 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix bum Java indentation/scoping for async methods
Mark Slee [Thu, 26 Oct 2006 02:52:47 +0000 (02:52 +0000)] 
Fix bum Java indentation/scoping for async methods

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664850 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix python server bugs and go to new protocol wraps transport model
Mark Slee [Wed, 25 Oct 2006 21:39:01 +0000 (21:39 +0000)] 
Fix python server bugs and go to new protocol wraps transport model

Reviewed By: ccheever

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664849 13f79535-47bb-0310-9956-ffa450edef68

18 years agoNew python operating model code-gen
Mark Slee [Wed, 25 Oct 2006 21:38:39 +0000 (21:38 +0000)] 
New python operating model code-gen

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664848 13f79535-47bb-0310-9956-ffa450edef68

18 years agoProtocol wraps transport code gen for Thrift Java
Mark Slee [Wed, 25 Oct 2006 20:54:10 +0000 (20:54 +0000)] 
Protocol wraps transport code gen for Thrift Java

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664847 13f79535-47bb-0310-9956-ffa450edef68

18 years agoNew protocol wrapping transport model for Thrift Java
Mark Slee [Wed, 25 Oct 2006 20:53:37 +0000 (20:53 +0000)] 
New protocol wrapping transport model for Thrift Java

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664846 13f79535-47bb-0310-9956-ffa450edef68

18 years agoClean up Java Thrift transport code
Mark Slee [Wed, 25 Oct 2006 19:58:36 +0000 (19:58 +0000)] 
Clean up Java Thrift transport code

Summary: More robust error checking

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664845 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTypo in thrift readme
Mark Slee [Wed, 25 Oct 2006 19:58:06 +0000 (19:58 +0000)] 
Typo in thrift readme

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664844 13f79535-47bb-0310-9956-ffa450edef68

18 years agoGive options for one-way or two-way buffering in PHP Thrift transports
Mark Slee [Wed, 25 Oct 2006 19:54:20 +0000 (19:54 +0000)] 
Give options for one-way or two-way buffering in PHP Thrift transports

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664843 13f79535-47bb-0310-9956-ffa450edef68

18 years agoImprove python thrift transport, readAll, buffering, framing
Mark Slee [Wed, 25 Oct 2006 19:53:36 +0000 (19:53 +0000)] 
Improve python thrift transport, readAll, buffering, framing

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664842 13f79535-47bb-0310-9956-ffa450edef68

18 years agoStresstest onto new Thrift C++ model
Mark Slee [Wed, 25 Oct 2006 19:52:10 +0000 (19:52 +0000)] 
Stresstest onto new Thrift C++ model

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664841 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUpdate thrift compiler for new syntax, generate new form of C++ code
Mark Slee [Wed, 25 Oct 2006 19:03:57 +0000 (19:03 +0000)] 
Update thrift compiler for new syntax, generate new form of C++ code

Reviewed By: wayne, he loves less warnings

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664840 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix broken thrift test code for new model
Mark Slee [Wed, 25 Oct 2006 19:03:32 +0000 (19:03 +0000)] 
Fix broken thrift test code for new model

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664839 13f79535-47bb-0310-9956-ffa450edef68

18 years agoChange Thrift c++ to new protocol wrapping transport model
Mark Slee [Wed, 25 Oct 2006 19:02:49 +0000 (19:02 +0000)] 
Change Thrift c++ to new protocol wrapping transport model

Summary: Also cleaned up excessive .h/.cpp files into Utils files

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664838 13f79535-47bb-0310-9956-ffa450edef68

18 years agoChange Thrift .cc files to be .cpp files
Mark Slee [Wed, 25 Oct 2006 01:36:44 +0000 (01:36 +0000)] 
Change Thrift .cc files to be .cpp files

Summary: CPP R00lz, CC Drewlz

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664837 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAllow optional framing of input/output in FramedTransport
Mark Slee [Wed, 25 Oct 2006 01:29:37 +0000 (01:29 +0000)] 
Allow optional framing of input/output in FramedTransport

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664836 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFraming option for non blocking server
Mark Slee [Wed, 25 Oct 2006 01:28:17 +0000 (01:28 +0000)] 
Framing option for non blocking server

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664835 13f79535-47bb-0310-9956-ffa450edef68

18 years agoself.clients instead of self.client
Mark Slee [Tue, 24 Oct 2006 18:55:36 +0000 (18:55 +0000)] 
self.clients instead of self.client

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664834 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMissing self argument in server method
Mark Slee [Tue, 24 Oct 2006 18:54:06 +0000 (18:54 +0000)] 
Missing self argument in server method

Reviewed By: ccheever

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664833 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPython threadpool server for Thrift
Mark Slee [Tue, 24 Oct 2006 18:49:45 +0000 (18:49 +0000)] 
Python threadpool server for Thrift

Summary: Fixed number of threads that work from a shared queue

Reviewed By: cheever

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664832 13f79535-47bb-0310-9956-ffa450edef68

18 years agoChange thrift stress test to .cpp file extension
Mark Slee [Thu, 12 Oct 2006 04:05:23 +0000 (04:05 +0000)] 
Change thrift stress test to .cpp file extension

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664831 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRename test files to .cpp instead of .cc
Mark Slee [Thu, 12 Oct 2006 04:04:11 +0000 (04:04 +0000)] 
Rename test files to .cpp instead of .cc

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664830 13f79535-47bb-0310-9956-ffa450edef68

18 years agoGenerate .cpp files instead of .cc in Thrift
Mark Slee [Thu, 12 Oct 2006 03:58:49 +0000 (03:58 +0000)] 
Generate .cpp files instead of .cc in Thrift

Reviewed By: aditya

Notes: Be consistent on cpp, dunno why ever chose cc

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664829 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAllow the specification of custom container types in Thrift IDL files
Mark Slee [Thu, 12 Oct 2006 02:47:27 +0000 (02:47 +0000)] 
Allow the specification of custom container types in Thrift IDL files

Summary: If you want your map to be a hash_map instead of an stl::map, we now have a directive in Thrift to let you do that.

Instead of:
map<i32,i32>

You can do:
map[cpp:hash_map<int32_t,int32_t>]<i32,i32>

This tells the Thrift compiler to explicitly use whatever type was specified in the brackets when generating C++ code, instead of the implied Thrift type.

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664828 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- Thrift testing changes
Aditya Agarwal [Wed, 11 Oct 2006 02:50:15 +0000 (02:50 +0000)] 
-- Thrift testing changes

Summary:
-- Modified StressTest.thrift to work (it was out of date..) and added tests for TBufferedFileWriter
-- Modified Makefiles to use the correct lib directory

Reviewed By: Slee

Test Plan: This is the test.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664827 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- Thrift Log File
Aditya Agarwal [Wed, 11 Oct 2006 02:48:43 +0000 (02:48 +0000)] 
-- Thrift Log File

Summary:
-- This is the thrifty version of Pillar's batch_writer
-- Cleaned up a lot of the code in batch writer and made it conform to Thrift's strict coding standards
-- Added TBufferedRouterTransport.h/cc to actually route messsages via readEnd() to the file writer. It's
   not quite as easy to route the messages in Thrift as it was in Pillar

Reviewed By: Slee

Test Plan: Tested by making sure that the file was recording data

Notes:
-- The real correctness test will be when I finish writing TLogFileTransport (pillar_logfile.cpp).

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664826 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- Adding TLogging.h
Aditya Agarwal [Wed, 11 Oct 2006 02:43:25 +0000 (02:43 +0000)] 
-- Adding TLogging.h

Summary:
-- This should have been part of the previous commit

Reviewed By: Slee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664825 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- Thrift fixes
Aditya Agarwal [Wed, 11 Oct 2006 02:42:49 +0000 (02:42 +0000)] 
-- Thrift fixes

Summary:
-- Made read buffering work (the buffer wasn't actually being used)
-- TServer now extends TRunnable (useful for testing)
-- Adding TLogging (the DEBUG and ERROR macros that we all know and love)

Reviewed By: Slee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664824 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTest code updates
Mark Slee [Tue, 10 Oct 2006 01:57:32 +0000 (01:57 +0000)] 
Test code updates

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664823 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift compiler code cleanup, comments, php inline generation, etc
Mark Slee [Tue, 10 Oct 2006 01:42:59 +0000 (01:42 +0000)] 
Thrift compiler code cleanup, comments, php inline generation, etc

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664822 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPHP Thrift improvements, Binary code skipping, etc
Mark Slee [Tue, 10 Oct 2006 01:42:29 +0000 (01:42 +0000)] 
PHP Thrift improvements, Binary code skipping, etc

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664821 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift Java HTTP client
Mark Slee [Tue, 10 Oct 2006 01:38:25 +0000 (01:38 +0000)] 
Thrift Java HTTP client

 line, and those below, will be ignored--

A    java/src/transport/THttpClient.java

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664820 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPython framed thrift transports
Mark Slee [Tue, 10 Oct 2006 01:38:05 +0000 (01:38 +0000)] 
Python framed thrift transports

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664819 13f79535-47bb-0310-9956-ffa450edef68

18 years agoC++ Thrift coding style changes
Mark Slee [Tue, 10 Oct 2006 01:37:40 +0000 (01:37 +0000)] 
C++ Thrift coding style changes

Summary: Make underscore for class members consistent

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664818 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPython remote printing fix
Mark Slee [Fri, 6 Oct 2006 22:43:29 +0000 (22:43 +0000)] 
Python remote printing fix

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664817 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPython generator to make __str__ and __repr__ methods for generated structs
Mark Slee [Wed, 4 Oct 2006 21:51:05 +0000 (21:51 +0000)] 
Python generator to make __str__ and __repr__ methods for generated structs

Summary: Also generate a nice command line -remote utility like pillar

Reviewed By: ccheever

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664816 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBetter randomization in socketpoool
Mark Slee [Wed, 4 Oct 2006 19:02:03 +0000 (19:02 +0000)] 
Better randomization in socketpoool

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664815 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSuppress php errors in TSocket
Mark Slee [Wed, 4 Oct 2006 16:49:07 +0000 (16:49 +0000)] 
Suppress php errors in TSocket

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664814 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift missing python threading import
Mark Slee [Mon, 2 Oct 2006 17:53:20 +0000 (17:53 +0000)] 
Thrift missing python threading import

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664813 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPython basic threaded server
Mark Slee [Mon, 2 Oct 2006 17:50:08 +0000 (17:50 +0000)] 
Python basic threaded server

Reviewed By: ccheever-pillar

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664812 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPrefix php names with service_ to avoid naming conflicts and use False not false...
Mark Slee [Fri, 29 Sep 2006 21:33:55 +0000 (21:33 +0000)] 
Prefix php names with service_ to avoid naming conflicts and use False not false in python

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664811 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBetter socket timeout and options support for Thrift C++
Mark Slee [Fri, 29 Sep 2006 00:12:30 +0000 (00:12 +0000)] 
Better socket timeout and options support for Thrift C++

Summary: Also compile without degugging symbols for the linked library

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664810 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCheck for empty buf on socket read
Mark Slee [Thu, 28 Sep 2006 03:19:03 +0000 (03:19 +0000)] 
Check for empty buf on socket read

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664809 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUse vector<> instead of list<> in Thrift-gen'd C++ code
Mark Slee [Wed, 27 Sep 2006 22:11:45 +0000 (22:11 +0000)] 
Use vector<> instead of list<> in Thrift-gen'd C++ code

Summary: vector kindly provides [] access

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664808 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdd better socket linger, tcp_nodelay and timeout handling to thrift
Mark Slee [Wed, 27 Sep 2006 20:51:11 +0000 (20:51 +0000)] 
Add better socket linger, tcp_nodelay and timeout handling to thrift

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664807 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSet linger off and nodelay true on accepted ServerSockets
Mark Slee [Wed, 27 Sep 2006 20:40:23 +0000 (20:40 +0000)] 
Set linger off and nodelay true on accepted ServerSockets

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664806 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift compiler to tokenize args by " " so you can use script files
Mark Slee [Wed, 27 Sep 2006 18:50:48 +0000 (18:50 +0000)] 
Thrift compiler to tokenize args by " " so you can use script files

Summary: if you do #!/usr/local/bin/thrift --php --cpp it shows up as one arg: "--php --cpp" so you need to tokenize that

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664805 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdd socket and server socket timeout support to thrift java
Mark Slee [Wed, 27 Sep 2006 17:50:32 +0000 (17:50 +0000)] 
Add socket and server socket timeout support to thrift java

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664804 13f79535-47bb-0310-9956-ffa450edef68

18 years agoChange thrift require_once to include_once
Mark Slee [Mon, 25 Sep 2006 21:32:05 +0000 (21:32 +0000)] 
Change thrift require_once to include_once

Summary: As per Lucas' request

Reviewed By: lucas

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664803 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix potential multithreading protocol issue in Thrift Java
Mark Slee [Fri, 22 Sep 2006 16:57:38 +0000 (16:57 +0000)] 
Fix potential multithreading protocol issue in Thrift Java

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664802 13f79535-47bb-0310-9956-ffa450edef68

18 years agoOoops function __construct not just __construct
Mark Slee [Thu, 21 Sep 2006 01:26:28 +0000 (01:26 +0000)] 
Ooops function __construct not just __construct

Reviewed By: lucas

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664801 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix typo, missing underscore in thrift compiler variable
Mark Slee [Wed, 20 Sep 2006 02:41:24 +0000 (02:41 +0000)] 
Fix typo, missing underscore in thrift compiler variable

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664800 13f79535-47bb-0310-9956-ffa450edef68

18 years agoChange run() to serve() in all Thrift server interfaces
Mark Slee [Wed, 20 Sep 2006 01:56:10 +0000 (01:56 +0000)] 
Change run() to serve() in all Thrift server interfaces

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664799 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUse GNU Net implementation of htnoll and ntohll
Mark Slee [Tue, 19 Sep 2006 22:20:18 +0000 (22:20 +0000)] 
Use GNU Net implementation of htnoll and ntohll

Reviewed By: shire

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664798 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: Rename run() to serve() in java interfaces
Mark Slee [Tue, 12 Sep 2006 00:46:08 +0000 (00:46 +0000)] 
Thrift: Rename run() to serve() in java interfaces

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664797 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: Rename chunked to framed transports
Mark Slee [Fri, 8 Sep 2006 03:51:34 +0000 (03:51 +0000)] 
Thrift: Rename chunked to framed transports

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664796 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift PHP TSocketPool client
Mark Slee [Fri, 8 Sep 2006 03:41:50 +0000 (03:41 +0000)] 
Thrift PHP TSocketPool client

Summary: Client that connects to one of an arbitrary pool of servers

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664795 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: generate Processors not Servers
Mark Slee [Thu, 7 Sep 2006 21:31:12 +0000 (21:31 +0000)] 
Thrift: generate Processors not Servers

Summary: Because the gen'd code isn't actually a server

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664794 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: generate python dictionaries and STL maps for server side process function...
Mark Slee [Thu, 7 Sep 2006 21:18:27 +0000 (21:18 +0000)] 
Thrift: generate python dictionaries and STL maps for server side process function lookups

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664793 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift TTransportFactory model for servers
Mark Slee [Thu, 7 Sep 2006 01:26:35 +0000 (01:26 +0000)] 
Thrift TTransportFactory model for servers

Summary: Servers need to create bufferedtransports etc. around the transports they get in a user-definable way. So use a factory pattern to allow the user to supply an object to the server that defines this behavior.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664792 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift multithreaded Java server
Mark Slee [Wed, 6 Sep 2006 20:37:03 +0000 (20:37 +0000)] 
Thrift multithreaded Java server

Summary: Ported the Pillar multithreaded Java server to Thrift

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664791 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- search per-user lib dir first
Aditya Agarwal [Wed, 6 Sep 2006 04:19:47 +0000 (04:19 +0000)] 
-- search per-user lib dir first

Summary:
-- this should fix the library mismatch issue..

From the gcc linking guide:

LIBRARY_PATH
           The value of LIBRARY_PATH is a colon-separated list of directories,
           much like PATH.  When configured as a native compiler, GCC tries
           the directories thus specified when searching for special linker
           files, if it can't find them using GCC_EXEC_PREFIX.  Linking using
           GCC also uses these directories when searching for ordinary
           libraries for the -l option (but directories specified with -L come
           first).

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664790 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: Added support for double type across all languages
Mark Slee [Wed, 6 Sep 2006 02:42:25 +0000 (02:42 +0000)] 
Thrift: Added support for double type across all languages

Summary: Just for completeness cause I'm crazy. Let's never use these!

Notes: Also made thrift grammar support # style comments, so you can do this at the top of your files

#!/usr/local/bin/thrift --cpp

/**
 * This is a thrift def file youc an invoke directly and gen code!
 */

blah

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664789 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- more thrift Makefile changes
Aditya Agarwal [Wed, 6 Sep 2006 00:18:29 +0000 (00:18 +0000)] 
-- more thrift Makefile changes

Reviewed By: Slee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664788 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- added stubs for readEnd() and writeEnd()
Aditya Agarwal [Tue, 5 Sep 2006 22:49:53 +0000 (22:49 +0000)] 
-- added stubs for readEnd() and writeEnd()

Summary:
-- these are hook points that thrift_logger/logfile will integrate with..

Reviewed By: McSlee

Test Plan: Generated thrift code

Notes:
-- Thrift logfiles are soon coming to a netapp near you!

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664787 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- generalize Makefile
Aditya Agarwal [Tue, 5 Sep 2006 22:38:13 +0000 (22:38 +0000)] 
-- generalize Makefile

Summary:
-- dont use /usr/local as the thrift directory now that multiple ppl are developing on dev007

Reviewed By: McSlee

Test Plan: Tested by making and cleaning

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664786 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: Change Java/C++ server generation
Mark Slee [Tue, 5 Sep 2006 22:09:57 +0000 (22:09 +0000)] 
Thrift: Change Java/C++ server generation

Summary: Servers shouldn't implement iface directly, instead should contain an iface object

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664785 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: standardize coding style
Mark Slee [Tue, 5 Sep 2006 21:05:31 +0000 (21:05 +0000)] 
Thrift: standardize coding style

Summary: Standardize indentation, spacing, #defines etc.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664784 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift Python server code generation
Mark Slee [Tue, 5 Sep 2006 17:34:52 +0000 (17:34 +0000)] 
Thrift Python server code generation

Summary: Yep, it's up and running. We now have full client/server support in all of C++ Java PHP and Python. Well, not quite... there's no PHP server, but honestly who wants one? Actually, if we do want one the framework will support writing is as a PHP file that can be served in apache like a web service (i.e. restserver.php would be thriftserver.php). But now that's rambling and nothing to do with this commit.

Notes: cheever, let's chat about porting your multithreaded Pillar Python server over to Thrift

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664783 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdd multiserver generation to C++ Thrift
Mark Slee [Tue, 5 Sep 2006 00:14:21 +0000 (00:14 +0000)] 
Add multiserver generation to C++ Thrift

Summary: Autogen server that can encapsulates multiple server instances

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664782 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift, Make sure gen'd code initializes empty containers in php / python
Mark Slee [Mon, 4 Sep 2006 00:20:24 +0000 (00:20 +0000)] 
Thrift, Make sure gen'd code initializes empty containers in php / python

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664781 13f79535-47bb-0310-9956-ffa450edef68

18 years agoOoops, forgot to svn add the new code gen files
Mark Slee [Mon, 4 Sep 2006 00:06:47 +0000 (00:06 +0000)] 
Ooops, forgot to svn add the new code gen files

Summary: Python generator

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664780 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift and Python: Made to be together
Mark Slee [Mon, 4 Sep 2006 00:04:39 +0000 (00:04 +0000)] 
Thrift and Python: Made to be together

Summary: Python client code generation for Thrift... HOTNESS!

Notes: Servers and asynchronous clients are coming soon...

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664779 13f79535-47bb-0310-9956-ffa450edef68

18 years agoImplementation of the basic Thrift stack in Python
Mark Slee [Sun, 3 Sep 2006 21:13:07 +0000 (21:13 +0000)] 
Implementation of the basic Thrift stack in Python

Summary: Framework, install script, base classes, TSocket, TBinaryProtocol

Notes: Code-gen is coming around the bend...

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664778 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift C++ code generation improvements
Mark Slee [Sat, 2 Sep 2006 23:56:49 +0000 (23:56 +0000)] 
Thrift C++ code generation improvements

Summary: Generate classes instead of structs, and put read/write methods inside the class definition. Separate services into uniquely generated files. Separate types header file from types implementation file (read/write methods)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664777 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMore Thfirt code-gen improvements
Mark Slee [Sat, 2 Sep 2006 21:59:28 +0000 (21:59 +0000)] 
More Thfirt code-gen improvements

Summary: Move read/write struct methods into PHP class definition, make struct read non-static in Java

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664776 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift generation for Java
Mark Slee [Sat, 2 Sep 2006 04:17:07 +0000 (04:17 +0000)] 
Thrift generation for Java

Summary: Java works, benchmark roundtrip at around 3ms, so right in between C++ and PHP

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664775 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPoint Thrift bootrapping code to compiler/py instead of compiler
Mark Slee [Fri, 1 Sep 2006 22:20:32 +0000 (22:20 +0000)] 
Point Thrift bootrapping code to compiler/py instead of compiler

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664774 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift test improvements, tests for both inline and normal PHP code gen
Mark Slee [Fri, 1 Sep 2006 22:19:06 +0000 (22:19 +0000)] 
Thrift test improvements, tests for both inline and normal PHP code gen

Summary: So you can A/B test and see 6ms vs. 4ms response time :)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664773 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift library updates, remove unsigned types
Mark Slee [Fri, 1 Sep 2006 22:18:16 +0000 (22:18 +0000)] 
Thrift library updates, remove unsigned types

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664772 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift compiler improvements, two modes for PHP
Mark Slee [Fri, 1 Sep 2006 22:17:45 +0000 (22:17 +0000)] 
Thrift compiler improvements, two modes for PHP

Summary: Complete PHP generator and CPP generator to new formats, and offer PHP generator that generates inline code free of any TProtocol abstraction

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664771 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMove Thrift StressTest code into test top-level folder
Mark Slee [Wed, 30 Aug 2006 17:23:52 +0000 (17:23 +0000)] 
Move Thrift StressTest code into test top-level folder

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664770 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMake separate dirs for CPP and Python versions of Thrift compiler
Mark Slee [Wed, 30 Aug 2006 17:09:05 +0000 (17:09 +0000)] 
Make separate dirs for CPP and Python versions of Thrift compiler

Summary: Keep source files in separate dirs to avoid confusion

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664769 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed handling of signed 64bit integers to support 32bit and 64bit architectures
Marc Slemko [Thu, 24 Aug 2006 23:37:36 +0000 (23:37 +0000)] 
Fixed handling of signed 64bit integers to support 32bit and 64bit architectures

Fixed a few bugs with php code generation

Initial stab at setting absolute thrift php require_once paths at configure time in order to guarantee APC caching.  Needswork.  It's hard to get automake to allow post-processing of installed files.

Lightly reviewed by mark slee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664768 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBasic README with build instructions
Marc Slemko [Wed, 23 Aug 2006 22:34:00 +0000 (22:34 +0000)] 
Basic README with build instructions

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664767 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUber configure.ac/Makefile.am and configure.ac/Makefile.am for lib/php and compiler
Marc Slemko [Wed, 23 Aug 2006 22:03:34 +0000 (22:03 +0000)] 
Uber configure.ac/Makefile.am and configure.ac/Makefile.am for lib/php and compiler

Modified TProtocol.h et al to take collection size as unsigned int.  This removes need to cast STL's default size_t to signed int and is more correct, since collection sizes cannot be < 0 by definition

Moved compiler/Makefile to compiler/cpp.mk so it doesn't get trashed by automake

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664766 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift php generator in python.
Marc Slemko [Wed, 23 Aug 2006 02:15:31 +0000 (02:15 +0000)] 
Thrift php generator in python.
Cleaned up parser and cpp generator

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664765 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPrint out results of stress test
Marc Slemko [Thu, 17 Aug 2006 02:59:05 +0000 (02:59 +0000)] 
Print out results of stress test

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664764 13f79535-47bb-0310-9956-ffa450edef68

18 years agostraggler
Marc Slemko [Thu, 17 Aug 2006 01:23:12 +0000 (01:23 +0000)] 
straggler

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664763 13f79535-47bb-0310-9956-ffa450edef68

18 years agostraggler
Marc Slemko [Thu, 17 Aug 2006 01:21:20 +0000 (01:21 +0000)] 
straggler

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664762 13f79535-47bb-0310-9956-ffa450edef68

18 years agothrift.py => /usr/local/bin/thrift
Marc Slemko [Thu, 17 Aug 2006 01:13:44 +0000 (01:13 +0000)] 
thrift.py => /usr/local/bin/thrift

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664761 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPython installer for thrift idl compiler
Marc Slemko [Thu, 17 Aug 2006 01:12:11 +0000 (01:12 +0000)] 
Python installer for thrift idl compiler

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664760 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded stress test for thrift benchmarks
Marc Slemko [Thu, 17 Aug 2006 01:11:13 +0000 (01:11 +0000)] 
Added stress test for thrift benchmarks

Modified TServer - made it a subclass of concurrency::Runnable to allow servers to be handed directly to concurreny::ThreadFactory when creating server threads.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664759 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCleaned up test code for thrift exception throwing
Marc Slemko [Tue, 15 Aug 2006 22:34:04 +0000 (22:34 +0000)] 
Cleaned up test code for thrift exception throwing

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664758 13f79535-47bb-0310-9956-ffa450edef68

18 years agoModified C++ code-gen to create default constructors for all non-string primitives...
Marc Slemko [Tue, 15 Aug 2006 21:29:39 +0000 (21:29 +0000)] 
Modified C++ code-gen to create default constructors for all non-string primitives so that auto variable instances of structs aren't populated with
garbage.  This matters because, given thrift's loosey-goosey argument and result lists, structs may only be sparsely filled.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664757 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded namespace declaration
Marc Slemko [Tue, 15 Aug 2006 00:21:45 +0000 (00:21 +0000)] 
Added namespace declaration

    Added namespace declaration to thrift grammar

    Modified C++ code generator to produce equivalent C++ namespace for thrift namespace if specified

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664756 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded namespace declaration
Marc Slemko [Tue, 15 Aug 2006 00:21:31 +0000 (00:21 +0000)] 
Added namespace declaration

    Added namespace declaration to thrift grammar

    Modified C++ code generator to produce equivalent C++ namespace for thrift namespace if specified

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664755 13f79535-47bb-0310-9956-ffa450edef68

18 years agoYou scream, I scream, We all scream for exceptions
Marc Slemko [Mon, 14 Aug 2006 23:30:37 +0000 (23:30 +0000)] 
You scream, I scream, We all scream for exceptions

    Added exception defintions and specifiers to thrift grammar

    Modified C++ code generator to to catch and serialize exceptions on the server side and unmarshall and throw them on the client side.

Modified grammar to require ","  after each service function declaration to keep it consistent with struct declaration syntax

    This checkin officially breaks the old parser

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664754 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed a few typos - test client and server samples now working with new code generation
Marc Slemko [Sat, 12 Aug 2006 00:32:53 +0000 (00:32 +0000)] 
Fixed a few typos - test client and server samples now working with new code generation

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664753 13f79535-47bb-0310-9956-ffa450edef68