|
1.
|
|
|
Banana Protocol Specifications
|
|
|
type: Content of: <html><body><h1>
|
|
|
|
Especificación de protocolo Banana
|
|
Translated and reviewed by
Carlos Alberto Ospina
|
|
|
|
Located in
specifications/banana.xhtml:7 specifications/banana.xhtml:11
|
|
2.
|
|
|
Introduction
|
|
|
type: Content of: <html><body><h2>
|
|
|
|
Introducción
|
|
Translated and reviewed by
Carlos Alberto Ospina
|
|
|
|
Located in
specifications/banana.xhtml:13 howto/options.xhtml:13 howto/application.xhtml:13 howto/tutorial/library.xhtml:11 howto/tutorial/intro.xhtml:11 howto/tutorial/protocol.xhtml:11 howto/tutorial/pb.xhtml:11 howto/tutorial/components.xhtml:11 howto/tutorial/configuration.xhtml:11 howto/tutorial/index.xhtml:11 howto/tutorial/style.xhtml:11 howto/tutorial/web.xhtml:11 howto/tutorial/client.xhtml:11 howto/tutorial/factory.xhtml:13 howto/tutorial/backends.xhtml:11 howto/index.xhtml:16 howto/deferredindepth.xhtml:10 howto/pb-intro.xhtml:10
|
|
3.
|
|
|
Banana is an efficient, extendable protocol for sending and receiving s-expressions. A s-expression in this context is a list composed of byte strings, integers, large integers, floats and/or s-expressions.
|
|
|
type: Content of: <html><body><p>
|
|
|
|
Banana es un extendible y eficiente protocolo para enviar y recibir espresiones-s. Una expresion s en este contexto es una lista compuesta por cadenas de bytes, enteros, enteros largos, flotantes y/o expresiones-s
|
|
Translated and reviewed by
victor tejada yau
|
|
|
|
Located in
specifications/banana.xhtml:16
|
|
4.
|
|
|
Banana Encodings
|
|
|
type: Content of: <html><body><h2>
|
|
|
|
Codificación Banana
|
|
Translated and reviewed by
Carlos Alberto Ospina
|
|
|
|
Located in
specifications/banana.xhtml:21
|
|
5.
|
|
|
The banana protocol is a stream of data composed of elements. Each element has the following general structure - first, the length of element encoded in base-128, least signficant bit first. For example length 4674 will be sent as <code>0x42 0x24</code>. For certain element types the length will be omitted (e.g. float) or have a different meaning (it is the actual value of integer elements).
|
|
|
type: Content of: <html><body><p>
|
|
|
|
El protocolo banana es un protocolo de flujo de datos compuesto por elementos. cada elemento tiene la siguiente estructural - first, la longitud de el elemento es codificado en base 128, por lo menos el primer bit significante. por ejemplo longitud sera enviada como <code>0x42 0x24</code>. para ciertos tipos de elementos la longitud sera omitida (e.g. float) o tiene un different significado (eso es el actual valor de los elementos enteros)
|
|
Translated and reviewed by
victor tejada yau
|
|
|
|
Located in
specifications/banana.xhtml:24
|
|
6.
|
|
|
Following the length is a delimiter byte, which tells us what kind of element this is. Depending on the element type, there will then follow the number of bytes specified in the length. The byte's high-bit will always be set, so that we can differentiate between it and the length (since the length bytes use 128-base, their high bit will never be set).
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
specifications/banana.xhtml:32
|
|
7.
|
|
|
Element Types
|
|
|
type: Content of: <html><body><h2>
|
|
|
|
Tipos de elemento
|
|
Translated and reviewed by
Carlos Alberto Ospina
|
|
|
|
Located in
specifications/banana.xhtml:39
|
|
8.
|
|
|
Given a series of bytes that gave us length N, these are the different delimiter bytes:
|
|
|
type: Content of: <html><body><p>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
specifications/banana.xhtml:42
|
|
9.
|
|
|
List -- 0x80
|
|
|
type: Content of: <html><body><dl><dt>
|
|
|
|
Lista -- 0x80
|
|
Translated and reviewed by
Carlos Alberto Ospina
|
|
|
|
Located in
specifications/banana.xhtml:46
|
|
10.
|
|
|
The following bytes are a list of N elements. Lists may be nested, and a child list counts as only one element to its parent (regardless of how many elements the child list contains).
|
|
|
type: Content of: <html><body><dl><dd>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
specifications/banana.xhtml:48
|