| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 1 | Thrift Perl Software Library |
| 2 | |
| Bryan Duxbury | def30a6 | 2009-04-08 00:19:37 +0000 | [diff] [blame] | 3 | License |
| 4 | ======= |
| 5 | |
| 6 | Licensed to the Apache Software Foundation (ASF) under one |
| 7 | or more contributor license agreements. See the NOTICE file |
| 8 | distributed with this work for additional information |
| 9 | regarding copyright ownership. The ASF licenses this file |
| 10 | to you under the Apache License, Version 2.0 (the |
| 11 | "License"); you may not use this file except in compliance |
| 12 | with the License. You may obtain a copy of the License at |
| 13 | |
| 14 | http://www.apache.org/licenses/LICENSE-2.0 |
| 15 | |
| 16 | Unless required by applicable law or agreed to in writing, |
| 17 | software distributed under the License is distributed on an |
| 18 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 19 | KIND, either express or implied. See the License for the |
| 20 | specific language governing permissions and limitations |
| 21 | under the License. |
| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 22 | |
| 23 | Using Thrift with Perl |
| 24 | ===================== |
| 25 | |
| 26 | Thrift requires Perl >= 5.6.0 |
| 27 | |
| Jim King | f5f1b35 | 2015-06-24 13:47:24 -0400 | [diff] [blame] | 28 | Unexpected exceptions in a service handler are converted to |
| 29 | TApplicationException with type INTERNAL ERROR and the string |
| 30 | of the exception is delivered as the message. |
| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 31 | |
| Jim King | f5f1b35 | 2015-06-24 13:47:24 -0400 | [diff] [blame] | 32 | On the client side, exceptions are thrown with die, so be sure |
| 33 | to wrap eval{} statments around any code that contains exceptions. |
| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 34 | |
| Jim King | f5f1b35 | 2015-06-24 13:47:24 -0400 | [diff] [blame] | 35 | Please see tutoral and test dirs for examples. |
| Mark Slee | 254ce20 | 2007-05-16 02:21:06 +0000 | [diff] [blame] | 36 | |
| 37 | Dependencies |
| 38 | ============ |
| 39 | |
| Jim King | f5f1b35 | 2015-06-24 13:47:24 -0400 | [diff] [blame] | 40 | Bit::Vector - comes with modern perl installations. |
| Mark Slee | 8266443 | 2007-09-19 06:49:30 +0000 | [diff] [blame] | 41 | Class::Accessor |
| Jim King | f5f1b35 | 2015-06-24 13:47:24 -0400 | [diff] [blame] | 42 | IO::Socket::INET - comes with modern perl installations. |
| 43 | IO::Socket::SSL - required if using SSL/TLS. |
| 44 | NET::SSLeay |
| 45 | Crypt::SSLeay - for make cross |