summaryrefslogtreecommitdiff
path: root/tutorial
Commit message (Collapse)AuthorAgeFilesLines
* THRIFT-387. Add license headers to a bunch of filesDavid Reiss2009-03-3020-2/+359
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@760189 13f79535-47bb-0310-9956-ffa450edef68
* cpp: Eliminate a buffer overflow in the tutorial serverDavid Reiss2009-03-261-2/+2
| | | | | | | Negative numbers can have 11 characters :) git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758529 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-405. php: Create a tutorial serverDavid Reiss2009-03-263-1/+132
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758528 13f79535-47bb-0310-9956-ffa450edef68
* Fix the arguments in tutorial/READMEDavid Reiss2009-03-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758525 13f79535-47bb-0310-9956-ffa450edef68
* Update tutorial/README now that Thrift files don't support shebangDavid Reiss2009-03-251-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758453 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-136. s/async/oneway/ in the Thrift IDLDavid Reiss2009-03-241-1/+1
| | | | | | | | | 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
* THRIFT-136. s/async/oneway/ in commentsDavid Reiss2009-03-241-2/+2
| | | | | | | This is an internal-only change. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757990 13f79535-47bb-0310-9956-ffa450edef68
* Make .thrift files non-executable since we removed the shebangsDavid Reiss2009-03-142-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@753610 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-325. Remove a bunch of uses of the old command line formatDavid Reiss2009-02-172-4/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745242 13f79535-47bb-0310-9956-ffa450edef68
* Make the PHP generator use non-hardcoded namespaces.David Reiss2009-02-171-1/+1
| | | | | | | | | | | - 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
* THRIFT-299. doc: binary type isn't documented nor demonstrated in the tutorialBryan Duxbury2009-02-011-0/+1
| | | | | | The existence of the "binary" type is now documented in the relevant places. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739702 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-270: change cpp namespaces from facebook::thrift to apache::thriftT Jake Luciani2009-01-312-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739644 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-284. python: Update tutorial files to use reprDavid Reiss2009-01-242-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@737424 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-34 Java libraries should be namespaced under org.apache.thrift, not ↵Bryan Duxbury2009-01-152-13/+13
| | | | | | | | | | 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
* THRIFT-193: Patch for proper namespace support in perl compilerT Jake Luciani2008-12-231-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@728863 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-85. Include an example of an optional field in tutorial.thriftDavid Reiss2008-07-241-1/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@679501 13f79535-47bb-0310-9956-ffa450edef68
* Update the tutorial files to stop using deprecated namesKevin Clark2008-06-182-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668935 13f79535-47bb-0310-9956-ffa450edef68
* Fix the shebangs for the tutorial thrift filesKevin Clark2008-06-182-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668932 13f79535-47bb-0310-9956-ffa450edef68
* Ensure the ruby tutorial uses the current library instead of the installed oneKevin Clark2008-06-182-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668925 13f79535-47bb-0310-9956-ffa450edef68
* rb: Add more classes/modules to the Thrift namespace. Provide backwards ↵Kevin Clark2008-06-181-4/+4
| | | | | | compatable mappings. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668904 13f79535-47bb-0310-9956-ffa450edef68
* Rename "alterl" to "erl".David Reiss2008-06-114-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666481 13f79535-47bb-0310-9956-ffa450edef68
* Remove all of the old Erlang stuff in preparation for renaming alterl.David Reiss2008-06-115-196/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666480 13f79535-47bb-0310-9956-ffa450edef68
* Oops - dont' use server.config anymore for alterl tutorialDavid Reiss2008-06-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666459 13f79535-47bb-0310-9956-ffa450edef68
* New tutorial for alterl bindings - include working client + serverDavid Reiss2008-06-114-0/+137
| | | | | | | | | | | Test plan: ./client.sh server:start(). client:t(). git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666458 13f79535-47bb-0310-9956-ffa450edef68
* Make the Perl generator use non-hardcoded namespaces.David Reiss2008-03-272-2/+2
| | | | | | | | | | | - Make the Perl generator use program->get_namespace("perl") instead of program->get_perl_package() - Eliminate the explicit "perl_package" in t_program. - Deprecate the perl_package token. - Update example .thrift files and syntax files. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665624 13f79535-47bb-0310-9956-ffa450edef68
* Make the Smalltalk generator use non-hardcoded namespaces.David Reiss2008-03-271-1/+1
| | | | | | | | | | | | | | - Make the Smalltalk generator use program->get_namespace("smalltalk.*") instead of program->get_smalltalk_{category|prefix}() - Eliminate the explicit "smalltalk_{category|prefix}" in t_program. - Deprecate the smalltalk_{category|prefix} tokens. - Update example .thrift files and syntax files. This was a little more complex than the others. We now convert "." to "-" in Smalltalk categories, because we no longer lex them as tok_st_identifier. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665601 13f79535-47bb-0310-9956-ffa450edef68
* Make the Java generator use non-hardcoded namespaces.David Reiss2008-02-272-2/+2
| | | | | | | | | | | - Make the Java generator use program->get_namespace("java") instead of program->get_java_namespace() - Eliminate the explicit "java_namespace" in t_program. - Deprecate the java_namespace token. - Update example .thrift files and syntax files. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665514 13f79535-47bb-0310-9956-ffa450edef68
* Make the C++ generator use non-hardcoded namespaces.David Reiss2008-02-272-2/+2
| | | | | | | | | | | - Make the C++ generator use program->get_namespace("cpp") instead of program->get_cpp_namespace() - Eliminate the explicit "cpp_namespace" in t_program. - Deprecate the cpp_namespace token. - Update example .thrift files and syntax files. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665513 13f79535-47bb-0310-9956-ffa450edef68
* Make "make clean" rules a bit more standard.David Reiss2008-02-241-1/+1
| | | | | | | | | | | | | | Summary: make-generic is some sort of internal undocumented thing. make-local is what is supposed to be used for this stuff. Also use $(RM) instead of "rm -f". Reviewed By: marc Test Plan: make clean git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665498 13f79535-47bb-0310-9956-ffa450edef68
* Thrift: Whitespace cleanup.David Reiss2008-02-067-24/+24
| | | | | | | | | | | | | | | | | Summary: - Expanded tabs to spaces where spaces were the norm. - Deleted almost all trailing whitespace. - Added newlines to the ends of a few files. - Ran dos2unix on one file or two. Reviewed By: mcslee Test Plan: git diff -b Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665467 13f79535-47bb-0310-9956-ffa450edef68
* [thrift] flesh out thrift Erlang tutorial clientChristopher Piro2008-01-152-53/+59
| | | | | | | | | | | | | Summary: Added examples for all examples except inheritance and application exception handling (divide by zero); looks like both are currently broken. Weak. Reviewed By: eletuchy Test Plan: works just like RubyClient.rb (modulo the commented out bits) Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665428 13f79535-47bb-0310-9956-ffa450edef68
* [thrift] preliminary tthrift tutorial client for ErlangChristopher Piro2008-01-151-0/+68
| | | | | | | | | | | | | Summary: we haven't had a client tutorial for the longest time -- added one that basically works. will iron the bugs out in due order. Reviewed By: eletuchy Test Plan: works when launched like server.sh Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665427 13f79535-47bb-0310-9956-ffa450edef68
* [thrift] add a configuration file to the Erlang server tutorialChristopher Piro2008-01-152-1/+29
| | | | | | | | | | | | | | | Summary: Logger configuration (and all Thrift config in Erlang) now uses application:get_env/2 via thrift:config/2. Defaults can be provided on the erl command line with ``-config <filename>''. It may also be helpful to cascade config files; {key, value} pairs provided in subsequent files will override previous ones -- e.g. in our applications we use ``-config base.config -config cpiro.config''. server.config was added as an example and server.sh was updated to invoke erl with ``-config server.config''. Reviewed By: eletuchy Test Plan: the tutorial server now outputs a reasonable set of messages Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665426 13f79535-47bb-0310-9956-ffa450edef68
* [thrift] update thrift_logger bits in Erlang server tutorialChristopher Piro2008-01-151-7/+1
| | | | | | | | | | | | | Summary: thrift_logger changed a while back but the tutorial didn't keep up. fixed. Reviewed By: eletuchy Test Plan: compiles now :p Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665425 13f79535-47bb-0310-9956-ffa450edef68
* Remove bogus Iface inclusion from Ruby tutorialMark Slee2008-01-071-3/+1
| | | | | | | | | | | Reviewed By: mcslee Test Plan: The Ruby tutorial is runnable with this fix Other Notes: Submitted by Eric Wong git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665413 13f79535-47bb-0310-9956-ffa450edef68
* Merging in some Smalltalk changes from Patrick CollisonMark Slee2007-11-211-0/+1
| | | | | | | | | Reviewed By: mcslee Test Plan: Rebuild Thrift compiler git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665361 13f79535-47bb-0310-9956-ffa450edef68
* made tutorial.thrift executablepkeyani2007-10-101-0/+0
| | | | | | | | | | | | | | | | | | | | | Summary: made tutorial.thrift executable Trac Bug: # Blame Rev: Reviewed By: mcslee Test Plan: tested locally Revert Plan: revertable Notes: EImportant: git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665298 13f79535-47bb-0310-9956-ffa450edef68
* OO perl accessors for Thrift objectsMark Slee2007-09-191-8/+8
| | | | | | | | | | | Summary: Submitted by Jake Luciani Reviewed By: cpiro Test Plan: Supplied in test/tutorial code git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665276 13f79535-47bb-0310-9956-ffa450edef68
* [thrift] spruce up Erlang binding for tonight's releaseChristopher Piro2007-09-184-52/+21
| | | | | | | | | | | | Summary: * got rid of most of the otp_base jonx ... save that for a future release unfortunately * cleaned up the tutorial server, added -erl to tutorial.thrift's shebang * made better README and TODO Test Plan: checked out a copy, read my directions, built and ran the tutorial, and pretended that it didn't blow git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665273 13f79535-47bb-0310-9956-ffa450edef68
* Merging Jake Luciani's latest perl code gen fixesMark Slee2007-08-163-2/+4
| | | | | | | | | Reviewed By: dreiss Test Plan: Watch for any weirdness on Thrift code gen, perl specific git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665206 13f79535-47bb-0310-9956-ffa450edef68
* [thrift] improved error logging and handling for Erlang bindingsChristopher Piro2007-08-011-10/+21
| | | | | | | | | | | | | | | | | | | Summary: * custom, extensible error logger -- show only relevant stuff * clean up of errors in developer-supplied handler module now gives sane error messages and doesn't crash whole server (introduces tApplicationException_HANDLER_ERROR) * more precise catch in tErlProcessor (exits gracefully only if transport closes) Reviewed By: iproctor Test Plan: tutorial works Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665186 13f79535-47bb-0310-9956-ffa450edef68
* [thrift] maps, lists, sets, and service inheritance for ErlangChristopher Piro2007-07-252-34/+46
| | | | | | | | | | | Reviewed by: cpiro Test Plan: tested wit tutorial/tutorial.thrift Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665175 13f79535-47bb-0310-9956-ffa450edef68
* [thrift] highly concurrent Erlang goodnessChristopher Piro2007-07-182-68/+66
| | | | | | | | | | | | | | Summary: * shim to use object-oriented code as gen_servers * high(er) performance Erlang-style server and transport * sane packaging based on otp-base, i.e. Makefiles and real structure Test Plan: tutorial server offers the same (subset of) functionality as previous version Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665164 13f79535-47bb-0310-9956-ffa450edef68
* [thrift] preliminary Erlang support (initial import)Christopher Piro2007-06-292-0/+117
| | | | | | | | | | | | | | | | Summary: * missing {list,map,set}s, inheritance is spotty * loose source code, plus everything is one process (application / gen_server behavior is forthcoming) * codegen is a mess, need t_fp_generator Test Plan: * codegen invoked without -erl generates identical code for test/ * calculatorHandler plus 'thrift -erl -r tutorial.thrift' more or less works Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665146 13f79535-47bb-0310-9956-ffa450edef68
* typo in tutorial/rb/RubyServer.rbChristopher Piro2007-06-281-1/+1
| | | | | | | | | | | Reviewed By: mcslee Test Plan: Revert Plan: git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665145 13f79535-47bb-0310-9956-ffa450edef68
* Perl tutorial codeMark Slee2007-05-163-2/+65
| | | | | | | | | Summary: Jake Luciani Reviewed By: mcslee git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665116 13f79535-47bb-0310-9956-ffa450edef68
* sprintf fix on C++ tutorial serverMark Slee2007-04-111-1/+3
| | | | | | | | | Reviewed By: danli Test Plan: hello git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665097 13f79535-47bb-0310-9956-ffa450edef68
* Forgot to add Java tutorials to thriftMark Slee2007-04-105-0/+199
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665090 13f79535-47bb-0310-9956-ffa450edef68
* Various Thrift fixes, including Application Exception support in Ruby, ↵Mark Slee2007-03-144-101/+118
| | | | | | | | | better errror messages across languages, etc. Reviewed By: thrift git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665058 13f79535-47bb-0310-9956-ffa450edef68
* Thrift TutorialMark Slee2007-03-0711-0/+705
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665051 13f79535-47bb-0310-9956-ffa450edef68