/thrift-3.4.0/doc/specs/ |
D | thrift-rpc.md | 18 software distributed under the License is distributed on an 19 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 34 The information here is _mostly_ based on the Java implementation in the Apache thrift library (ver… 61 The pattern is a simple half duplex protocol where the parties alternate in sending a `Message` fol… 62 What these are is described below. 75 The *sequence id* is a simple message id assigned by the client. The server will use the same seque… 77 which is increased for each message. The sequence id simply wraps around when it overflows. 81 When the *multiplexed protocol* is used, the name contains the service name, a colon `:` and the me… 82 multiplexed protocol is not compatible with other protocols. 84 The *message type* indicates what kind of message is sent. Clients send requests with TMessages of … [all …]
|
D | thrift-tconfiguration.md | 20 software distributed under the License is distributed on an 21 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 37 …in which case it should fallback to a default instance automatically. This is to prevent from code… 45 …) message, in bytes. The default value is represented by a constant named DEFAULT_MAX_MESSAGE_SIZE… 49 …is used, this value may interfere with MaxMessageSize. In the case of an conflict, the smaller val… 59 …two options is, that MaxFrameSize exists much longer and it is used only in conjunction with TFram… 61 In order to combine both approaches in the most optimal way when using TFramedTransport, it is reco… 63 …culation purposes it is important to know, that MaxFrameSize excludes the 4 bytes that hold the fr… 67 If any limit is exceeded, an error should be thrown. Additionally, it may be helpful to check large… 71 ## Is this a breaking change or not? [all …]
|
D | thrift-binary-protocol.md | 18 software distributed under the License is distributed on an 19 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 29 The information here is _mostly_ based on the Java implementation in the Apache thrift library (ver… 62 Binary is sent as follows: 73 * `byte length` is the length of the byte array, a signed 32 bit integer encoded in network (big en… 88 Values of `bool` type are first converted to an int8. True is converted to `1`, false to `0`. 96 *Note*: Since the length is fixed, no `byte length` prefix is necessary and the field is always 16 … 112 * `vvvvvvvvvvvvvvv` is the version, an unsigned 15 bit number fixed to `1` (in binary: `000 0000 00… 113 The leading bit is `1`. 114 * `unused` is an ignored byte. [all …]
|
D | thrift.tex | 12 % It is available at <http://www.sigplan.org/authorInformation.htm>. 43 Thrift is a software library and set of code-generation tools developed at 45 backend services. Its primary goal is to enable efficient and reliable 48 that is implemented in each language. Specifically, Thrift allows developers to 53 well as some of the more interesting implementation details. It is not 54 intended to be taken as research, but rather it is an exposition on what we did 90 any advanced introspective run-time type checking. It is also designed to 104 or write their own serialization code. That is, 112 transport is implemented should not matter to the service developer. 120 an XML or binary protocol is immaterial to the application code. [all …]
|
D | thrift-compact-protocol.md | 18 software distributed under the License is distributed on an 19 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 29 The information here is _mostly_ based on the Java implementation in the Apache thrift library (ver… 54 numbers into the positive number space. When we read 0, 1, 2, 3, 4 or 5 from the wire, this is tran… 64 The zigzag int is then encoded as a *var int*, also known as *Unsigned LEB128*. Var ints take 1 to… 69 For example, the integer 50399 is encoded as follows: 82 To encode an `int16` as zigzag int, it is first converted to an `int32` and then encoded as such. T… 91 Binary is sent as follows: 102 * `byte length` is the length of the byte array, using var int encoding (must be >= 0). 114 in 8 bytes in big endian order, the compact protocol encodes it in little endian order - this is du… [all …]
|
D | thrift-sasl-spec.txt | 19 1. The client is configured at instantiation of the transport with a single 22 2. The server is configured with a mapping of underlying security mechanism 31 4. The server receives this message and, if the mechanism name provided is 32 among the set of mechanisms this server transport is configured to accept, 34 If the mechanism name is not one which the server is configured to support, the 38 place via this transport. If the mechanism name is one which the server 49 underlying security mechanism. A challenge is generated by the underlying 50 security mechanism on the server, and this is used as the payload for a message 66 If at any point in time either side is able to interpret the challenge or 67 response sent by the other, but is dissatisfied with the contents thereof, this [all …]
|
D | idl.md | 5 …llows for the definition of [Thrift Types](/docs/types). A Thrift IDL file is processed by the Thr… 9 Here is a description of the Thrift IDL. 19 A header is either a Thrift include, a C++ include, or a namespace declaration. 59 …is supplied, the value is either 0 for the first element, or one greater than the preceding value … 69 …nal to Facebook but serves no purpose in Thrift itself. Use of this feature is strongly discouraged 77 …nal to Facebook but serves no purpose in Thrift itself. Use of this feature is strongly discouraged 87 …face for a set of functionality provided by a Thrift server. The interface is simply a list of fun… 101 There are two explicit requiredness values, and a third one that is applied implicitly if neither … 113 If a required field is missing during read, the expected behaviour is to indicate an unsuccessful r… 121 - Default values: are written when the isset flag is set [all …]
|
/thrift-3.4.0/lib/cpp/ |
D | README.md | 16 software distributed under the License is distributed on an 17 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 34 Thrift is divided into two libraries. 45 /usr/local/lib by default. Make sure this is in your LDPATH. 47 On Linux, the best way to do this is to ensure that /usr/local/lib is in 57 C++11 is required at a minimum. C++03/C++98 are not supported after version 0.12.0. 59 Boost is required to run the C++ unit tests. It is not necessary to link against 112 The thrift port in vcpkg is kept up to date by Microsoft team members 113 and community contributors. The Apache Thrift project is *not* responsible 114 for the vcpkg port. Therefore, if the version is out of date, please [all …]
|
/thrift-3.4.0/doc/licenses/ |
D | lgpl-2.1.txt | 6 Everyone is permitted to copy and distribute verbatim copies 7 of this license document, but changing it is not allowed. 9 [This is the first released version of the Lesser GPL. It also counts 18 free software--to make sure the software is free for all its users. 24 this license or the ordinary General Public License is the better 53 there is no warranty for the free library. Also, if the library is 55 that what they have is not the original version, so that the original 66 Most GNU software, including some libraries, is covered by the 69 is quite different from the ordinary General Public License. We use 73 When a program is linked with a library, whether statically or using [all …]
|
/thrift-3.4.0/lib/perl/ |
D | README.md | 5 Apache Thrift is a software framework for scalable cross-language services development. 8 is used to generate functioning client libraries and server-side handling frameworks. 23 software distributed under the License is distributed on an 24 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 39 of the exception is delivered as the message. 49 implementation that calls serve(). It is acceptable to use 66 This is only required when running tests: 88 The socket classes were refactored in 0.10.0 so that there is one package per 97 ** TApplicationException is now Thrift::TApplicationException 98 ** TException is now Thrift::TException [all …]
|
/thrift-3.4.0/test/cl/ |
D | tests.lisp | 10 ;;;; distributed under the License is distributed on an "AS IS" BASIS, 18 ;;;; this is handled in make-test-client.lisp. 68 (is (null (thrift.test.thrift-test:test-void thrift-cross::*prot*)))) 71 (is (thrift.test.thrift-test:test-bool thrift-cross::*prot* t)) 72 (is (not (thrift.test.thrift-test:test-bool thrift-cross::*prot* nil)))) 75 (is (= (thrift.test.thrift-test:test-byte thrift-cross::*prot* 127) 127)) 76 (is (= (thrift.test.thrift-test:test-byte thrift-cross::*prot* -128) -128)) 77 (is (= (thrift.test.thrift-test:test-byte thrift-cross::*prot* 42) 42)) 78 (is (= (thrift.test.thrift-test:test-byte thrift-cross::*prot* 0) 0)) 79 (is (= (thrift.test.thrift-test:test-i32 thrift-cross::*prot* 0) 0)) [all …]
|
/thrift-3.4.0/lib/d/src/thrift/codegen/ |
D | base.d | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 24 * Many templates can be customized using field meta data, which is read from 26 * and is concatenated with the elements from the optional fieldMetaData 31 * metadata for a field/method has been found and the default behavior is 32 * used instead. If this version is not defined, the templates just silently 39 // TFieldMeta[]-typed values, but the is() expressions seems to always fail. 54 * Thrift struct/service meta data, which is used to store information from 63 /// Detect the requiredness from the field type: if it is nullable, treat 64 /// the field as optional, if it is non-nullable, treat the field as [all …]
|
D | idlgen.d | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 41 * True if the passed type is a Thrift entity (struct, exception, enum, 139 static assert(is(AddBaseServices!(C) == TypeTuple!(A, B, C))); 140 static assert(is(ForAllWithList!(ConfinedTuple!(C, D), AddBaseServices) == 154 // T is not already in the List, so add T and the types it depends on in in AddStructWithDeps() 197 static assert(is(AddStructWithDeps!C == TypeTuple!(A, B, C))); in version() 203 static assert(is(AddStructWithDeps!D == TypeTuple!(D))); in version() 229 static if (is(FullyUnqual!T == bool) || is(FullyUnqual!T == byte) || in CompositeTypeDeps() 230 is(FullyUnqual!T == short) || is(FullyUnqual!T == int) || in CompositeTypeDeps() [all …]
|
/thrift-3.4.0/lib/d/src/thrift/util/ |
D | future.d | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 34 * Represents an operation which is executed asynchronously and the result of 37 * Once a operation is completed, the result of the operation can be fetched 39 * operation succeeded, then its return value is returned, or it failed by 40 * throwing, in which case the exception is rethrown, or it was cancelled 41 * before, then a TCancelledException is thrown. There might be TFuture 45 * result (if it is a reference type, of course) is shared between all 50 * The status the operation is currently in. in TFuture() 63 * Convenience shorthand for waiting until the result is available and then in TFuture() [all …]
|
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/partial/ |
D | Validate.java | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 36 /** Validates that the given reference argument is not null. */ 41 /** Validates that the given integer argument is not zero or negative. */ 46 /** Validates that the given integer argument is not negative. */ 52 * Validates that the expression (that checks a required field is present) is true. 55 checkArgument(isPresent, "'%s' is required.", argName); in checkRequired() 58 /** Validates that the expression (that checks a field is valid) is true. */ 60 checkArgument(isValid, "'%s' is invalid.", argName); in checkValid() 63 /** Validates that the expression (that checks a field is valid) is true. */ [all …]
|
/thrift-3.4.0/test/ |
D | DocTest.thrift | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 23 * Seriously, this is the documentation for this whole program. 38 /** This is how to document a parameter */ 41 /** And this is a doc for a parameter that has no specific value assigned */ 50 /** This is how you would do a typedef doc */ 53 /** And this is where you would document a struct */ 86 /** This is doc for field 1 */ 89 /** And this is doc for field 2 */ 113 /** This is where you would document a Service */ [all …]
|
/thrift-3.4.0/contrib/fb303/ |
D | TClientInfo.h | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 39 * StableVector -- a minimal vector class where growth is automatic and 45 * Locking is only done when a level is added. Access is amortized 54 /// This bound is guaranteed not to be exceeded on 64-bit archs 91 // we need to make sure this is done after levelVect is inserted in expand() 92 // (what we want is effectively a memory barrier here). in expand() 98 * Given an index, determine which level and element of that level is 160 * Constructor; insure that no client address or thrift call name is 166 * A connection has been made; record its address. Since this is the [all …]
|
/thrift-3.4.0/lib/d/src/thrift/transport/ |
D | range.d | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 33 * The case where R is a plain ubyte[] is reasonably optimized, so a possible 38 isInputRange!(Unqual!R) && is(ElementType!R : const(ubyte)) 51 * An input range transport is always open. 62 * Opening is a no-op() for an input range transport. 67 * Closing is a no-op() for a memory buffer. 75 static if (is(typeof(R.init[1 .. 2]) : const(ubyte)[])) { in read() 76 // put() is currently unnecessarily slow if both ranges are sliceable. in read() 89 * Because readAll() is typically a very hot path during deserialization, [all …]
|
/thrift-3.4.0/lib/d/src/thrift/internal/ |
D | codegen.d | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 35 static if (is(T _ == const(U), U)) { in FullyUnqual() 37 } else static if (is(T _ == immutable(U), U)) { in FullyUnqual() 39 } else static if (is(T _ == shared(U), U)) { in FullyUnqual() 41 } else static if (is(T _ == U[], U) && !isSomeString!T) { in FullyUnqual() 43 } else static if (is(T _ == V[K], K, V)) { in FullyUnqual() 58 enum isStruct = is(T == struct); in isStruct() 62 enum isException = is(T : Exception); in isException() 66 enum isEnum = is(T == enum); in isEnum() [all …]
|
/thrift-3.4.0/lib/go/thrift/ |
D | socket_conn.go | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 28 // socketConn is a wrapped net.Conn that tries to do connectivity check. 38 // createSocketConnFromReturn is a language sugar to help create socketConn from 51 // In case conn is already wrapped, 52 // return it as-is and avoid double wrapping. 64 // It's nil safe, and returns false if sc itself is nil, or if the underlying 65 // connection is nil. 73 // IsOpen checks whether the connection is open. 75 // It's nil safe, and returns false if sc itself is nil, or if the underlying [all …]
|
/thrift-3.4.0/lib/ocaml/ |
D | README.md | 17 software distributed under the License is distributed on an 18 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 35 Implementations live in their own files. There is TBinaryProtocol, 45 are initially None. Write is a method, but reading is done by a 46 separate function (since there is no such thing as a static 47 class). The class type is t and is in a module with the name of the 95 E of t that is raised/caught. 114 The client is a class "client" parametrized on input and output 115 protocols. The processor is a class parametrized on a handler. A 116 handler is a class inheriting the iface abstract class. Unlike other
|
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/transport/ |
D | TIOStreamTransport.java | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 31 * This is the most commonly used base transport. It takes an InputStream or an OutputStream or both 65 * @param is Input stream to read from 67 public TIOStreamTransport(TConfiguration config, InputStream is) throws TTransportException { in TIOStreamTransport() argument 69 inputStream_ = is; in TIOStreamTransport() 74 * @param is Input stream to read from 76 public TIOStreamTransport(InputStream is) throws TTransportException { in TIOStreamTransport() argument 78 inputStream_ = is; in TIOStreamTransport() 106 * @param is Input stream to read from [all …]
|
/thrift-3.4.0/contrib/Rebus/ |
D | README.md | 3 Rebus is a .NET service bus, similar to NServiceBus, but more lightweight. 4 It ihas been mainly written by Mogens Heller Grabe and is currently hosted 8 operations it is recommended to do all calls as "oneway void" calls. 24 Csharp is not a supported Apache Thrift target anymore. Instead netstd is the 25 recommended replacement. This code is left "as is" for educational purposes
|
/thrift-3.4.0/lib/haxe/src/org/apache/thrift/helper/ |
D | Int64Map.hx | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 75 return true; // Int64 is not nullable anymore (it never really was) 84 If `key` is null, the result is unspecified. 98 If no such mapping exists, null is returned. 99 If `key` is null, the result is unspecified. 106 If it is important to distinguish these cases, `exists()` should be 125 If `key` is null, the result is unspecified. 153 false otherwise. If `key` is null, the result is unspecified. 171 The order of keys is undefined. [all …]
|
/thrift-3.4.0/lib/cpp/src/thrift/transport/ |
D | TSocket.h | 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 81 * Whether the socket is alive. 83 * @return Is the socket alive? 88 * Checks whether there is more data available in the socket to read. 90 * This call blocks until at least one byte is available or the socket is closed. 107 * Determines whether there is pending data to read or not. 113 * \returns true if there is pending data to read, false otherwise 140 * Get the host that the socket is connected to 147 * Get the port that the socket is connected to [all …]
|