2007-05-16 02:21:06 +00:00
|
|
|
Thrift Perl Software Library
|
|
|
|
|
2009-04-08 00:19:37 +00:00
|
|
|
License
|
|
|
|
=======
|
|
|
|
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
or more contributor license agreements. See the NOTICE file
|
|
|
|
distributed with this work for additional information
|
|
|
|
regarding copyright ownership. The ASF licenses this file
|
|
|
|
to you under the Apache License, Version 2.0 (the
|
|
|
|
"License"); you may not use this file except in compliance
|
|
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
software distributed under the License is distributed on an
|
|
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the License for the
|
|
|
|
specific language governing permissions and limitations
|
|
|
|
under the License.
|
2007-05-16 02:21:06 +00:00
|
|
|
|
|
|
|
Using Thrift with Perl
|
|
|
|
=====================
|
|
|
|
|
|
|
|
Thrift requires Perl >= 5.6.0
|
|
|
|
|
2015-06-24 17:47:24 +00:00
|
|
|
Unexpected exceptions in a service handler are converted to
|
|
|
|
TApplicationException with type INTERNAL ERROR and the string
|
|
|
|
of the exception is delivered as the message.
|
2007-05-16 02:21:06 +00:00
|
|
|
|
2015-06-24 17:47:24 +00:00
|
|
|
On the client side, exceptions are thrown with die, so be sure
|
|
|
|
to wrap eval{} statments around any code that contains exceptions.
|
2007-05-16 02:21:06 +00:00
|
|
|
|
2015-06-24 17:47:24 +00:00
|
|
|
Please see tutoral and test dirs for examples.
|
2007-05-16 02:21:06 +00:00
|
|
|
|
|
|
|
Dependencies
|
|
|
|
============
|
|
|
|
|
2015-06-24 17:47:24 +00:00
|
|
|
Bit::Vector - comes with modern perl installations.
|
2007-09-19 06:49:30 +00:00
|
|
|
Class::Accessor
|
2015-06-24 17:47:24 +00:00
|
|
|
IO::Socket::INET - comes with modern perl installations.
|
|
|
|
IO::Socket::SSL - required if using SSL/TLS.
|
|
|
|
NET::SSLeay
|
|
|
|
Crypt::SSLeay - for make cross
|