| e9285240 |
obexd: Folder listing support. |
Vinicius Costa Gomes |
13 years ago |
2 files, +167, -20 |
| 97544994 |
obexd: Extract time from header |
Claudio Takahasi |
13 years ago |
2 files, +52, -0 |
| 1c55fb8d |
obexd: Transfer interface must be registered for OPP only(NULL target) |
Claudio Takahasi |
13 years ago |
1 file, +1, -2 |
| 6984ba9a |
obexd: Include initial source |
Marcel Holtmann |
13 years ago |
12 files, +2478, -0 |
| 855f220d |
build: Add gobex sources and tools |
Marcel Holtmann |
13 years ago |
3 files, +51, -0 |
| 36803c24 |
gobex: tools: Fix using BT_IO_TYPE in test-client and test-server |
Luiz Augusto von Dentz |
13 years ago |
2 files, +61, -64 |
| c5cab062 |
gobex: Fix build on 32 bits systems
GUINT_TO_POINTER does not cast properly in older version of GLib (< 2.31)
causing the following errors:
cc1: warnings being treated as errors
gobex/gobex-apparam.c: In function ‘g_obex_apparam_set_bytes’:
gobex/gobex-apparam.c:176:38: error: cast to pointer from integer of
different size
gobex/gobex-apparam.c: In function ‘g_obex_apparam_get_uint8’:
gobex/gobex-apparam.c:243:43: error: cast to pointer from integer of
different size
gobex/gobex-apparam.c: In function ‘g_obex_apparam_get_uint16’:
gobex/gobex-apparam.c:261:43: error: cast to pointer from integer of
different size
gobex/gobex-apparam.c: In function ‘g_obex_apparam_get_uint32’:
gobex/gobex-apparam.c:282:43: error: cast to pointer from integer of
different size
gobex/gobex-apparam.c: In function ‘g_obex_apparam_get_uint64’:
gobex/gobex-apparam.c:303:43: error: cast to pointer from integer of
different size
gobex/gobex-apparam.c: In function ‘g_obex_apparam_get_string’:
gobex/gobex-apparam.c:324:43: error: cast to pointer from integer of
different size
gobex/gobex-apparam.c: In function ‘g_obex_apparam_get_bytes’:
gobex/gobex-apparam.c:342:43: error: cast to pointer from integer of
different size
make[1]: *** [gobex/gobex-apparam.o] Error 1
make: *** [all] Error 2 |
Luiz Augusto von Dentz |
13 years ago |
1 file, +17, -8 |
| 696fad18 |
gobex: Add debug option to apparam
This adds "apparam" to the debug options of GOBEX_DEBUG |
Luiz Augusto von Dentz |
13 years ago |
3 files, +52, -9 |
| 63d1b60c |
gobex: Integrate GObexApparam with GObexHeader
This introduce 2 new convenient functions: g_obex_header_get_apparam
which parses and decode an header into GObexApparam and
gobex_header_new_apparam that encode GObexApparam into GObexHeader. |
Luiz Augusto von Dentz |
13 years ago |
2 files, +28, -0 |
| 2476a6cb |
gobex: Add unit tests for GObexApparam API |
Luiz Augusto von Dentz |
13 years ago |
1 file, +422, -0 |
| 32ffe8f9 |
gobex: Introduce GObexApparam API
GObexApparam abstract the handling of application parameter tags, it
can be used to read/parse application parameter header data using
g_obex_apparam_get_* functions or to generate the data using
g_obex_apparam_set_*. |
Luiz Augusto von Dentz |
13 years ago |
2 files, +373, -0 |
| 4621a357 |
gobex: Fix not printing debug messages when GOBEX_DEBUG is set
g_debug doesn't print anything if domain is not present in
G_MESSAGES_DEBUG. |
Luiz Augusto von Dentz |
13 years ago |
2 files, +6, -4 |
| a3bb0a6d |
gobex: Change UTF name to standard |
Neal Peacock |
13 years ago |
1 file, +1, -1 |
| 55626b77 |
gobex: Fix dead assignments in gobex-header.c
Values stored are never read. |
Szymon Janc |
13 years ago |
1 file, +5, -5 |
| 77a7ad6a |
gobex: tools: Fix test-client error message put/get typo |
Michał Poczwardowski |
13 years ago |
1 file, +1, -1 |
| 9095deb8 |
gobex: Add callback and userdata parameter to g_obex_cancel_transfer()
If callback is provided in g_obex_cancel_transfer() current complete
callback will be replaced by the new one and user will be informed
when abort completes. |
Jaganath Kanakkassery |
13 years ago |
3 files, +21, -5 |
| cd8a24b9 |
gobex: build: Remove glib-helper.h support |
Marcel Holtmann |
13 years ago |
2 files, +0, -3 |
| 52b33544 |
gobex: Fix unit test for PUT request followed by ABORT
gobex was actually used to respond not to request so the test is
renamed to test_stream_put_rsp_abort and a new test is created using
g_obex_put_req to initiate the request and g_obex_cancel_transfer to
abort it. |
Luiz Augusto von Dentz |
13 years ago |
2 files, +66, -5 |
| 75e50f78 |
gobex: Use ENOSYS to correspond to OBEX not implemented
ENOSYS correspond to function not implemented which is exactly what the
OBEX error code means.
Also since EINVAL means invalid argument that now map to OBEX bad request |
Luiz Augusto von Dentz |
13 years ago |
1 file, +2, -1 |
| 45df7c0f |
gobex: fix callback remove when canceling transfer
This code path could lead to situations where the callback is later
used, making the daemon crash. |
Mikel Astiz |
13 years ago |
1 file, +3, -0 |
| 889a1a14 |
gobex: Remove g_idle_add to exit main loop in test_stream_put_req_abort()
A callback is provided in g_obex_cancel_transfer() which will be called
when abort completes which exists the mail loop as well |
Jaganath Kanakkassery |
13 years ago |
1 file, +3, -7 |
| d947e071 |
gobex: Add unit test for encoding/decoding apparam headers |
Luiz Augusto von Dentz |
13 years ago |
1 file, +46, -0 |
| faac92a4 |
gobex: Translate posix error code to proper OBEX response opcode
This patch create a map between posix errors code and OBEX response
opcode and use it to generate a proper response in case a transfer
failed instead of always responding with internal error. |
Luiz Augusto von Dentz |
13 years ago |
3 files, +29, -2 |
| 9e1e4742 |
gobex: tools: Fix test-server to use ERTM while on packet mode
OBEX should only be used with ERTM over L2CAP and set MTU properly |
Luiz Augusto von Dentz |
13 years ago |
1 file, +14, -3 |
| b53a7051 |
gobex: Fix ABORT request not processing
G_OBEX_OP_ABORT is defined as 0x7f but error checking of opcode is
done for greater than 0x1f. So abort request is simply ignored. |
Jaganath Kanakkassery |
13 years ago |
1 file, +1, -1 |
| 9166ea3f |
gobex: Add unit test for PUT request followed by ABORT |
Jaganath Kanakkassery |
13 years ago |
1 file, +50, -0 |
| ae33bcb8 |
gobex: tools: Make test-server to use ERTM
If port is bigger than 31 and stream mode is selected then use ERTM |
Luiz Augusto von Dentz |
13 years ago |
1 file, +1, -1 |
| 2a946076 |
gobex: tools: Make test-client use ERTM
If port is bigger than 31 and stream mode is selected then use ERTM |
Luiz Augusto von Dentz |
13 years ago |
1 file, +2, -2 |
| a4f6139e |
gobex: fix automatically including SRM header in CONNECT responses
GOEP 2.0 test specification forbids the server to include SRM headers in
CONNECT response:
"3.16 TP/SRM/BI-03-C Process an OBEX CONNECT request (incorrectly)
containing a SRM header:
• Expected Outcome
Pass Verdict:
– On receiving the invalid SRM header in the OBEX_CONNECT request, the
IUT responds with a SUCCESS without a SRM header.
– OBEX/L2CAP channel is established.
Fail Verdict:
– On receiving the invalid SRM header in the OBEX_CONNECT request, the
IUT does not respond with a SUCCESS and/or includes a SRM header in the
response.
– OBEX/L2CAP channel is not established or OBEX/RFCOMM channel is
established." |
Luiz Augusto von Dentz |
13 years ago |
1 file, +1, -0 |
| f55ddf73 |
gobex: fix not disabling SRM when dealing with GET responses
While sending the final bit can be changed during encoding. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +115, -103 |
| 7099bdd9 |
gobex: Remove reduntant NULL assignment |
Jaganath Kanakkassery |
13 years ago |
1 file, +0, -2 |
| e85cc70c |
gobex: automatically use SRM when transport type is SOCK_SEQPACKET
This simplifies the applications so SRM setup phase became transparent
while using SOCK_SEQPACKET which is useful for GOEP 2.0 since in that
case we can only use SRM if the transport is L2CAP.
This also follows GOEP 2.0 Page 14 - 4.6 Using Single Response Mode:
"The Server cannot issue an enable request, but can only issue a
response to an enable request from the Client. SRM will remain in
effect for the duration of the operation that enabled it (PUT or GET)
...
SRM headers shall not be sent in CONNECT request or response packets."
and Page 22 - 5.4 Establishment of OBEX Connection:
"SRM headers shall not be sent in the Connect request or response
packets (note, this is to preserve backwards compatibility). SRM shall
be enabled through Put and Get operations only."
So only in case of PUT or GET requests SRM is automatically configured,
applications can still enable it manually for other operations by adding
the headers like before but it is not recommended.
Note that it would be a good practice to indicate SRM support by using
value 0x02, but since that should happens during CONNECT command it is
not done automatically for requests when acting as a client, server
responding to indicate requests will automatically add SRM headers though. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +55, -1 |
| f062c462 |
gobex: handle Single Response Mode Parameters (SRMP) headers
Single Response Mode Parameters is a 1-byte quantity containing the
value for the parameters used for SRM. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +34, -5 |
| 6e7d00ce |
gobex: handle Single Response Mode (SRM) headers
Single Response Mode (SRM) is a 1-byte quantity containing a value to
enable or disable SRM, as well as to indicate support for SRM. |
Luiz Augusto von Dentz |
13 years ago |
3 files, +216, -33 |
| cd0af353 |
gobex: simplify naming of tests when transfering sequence of packets
Before random was used but the number of packets were not really random
so now seq is used instead. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +178, -186 |
| ac5aedf4 |
gobex: add unit test for CONN followed by PUT request with SRM |
Luiz Augusto von Dentz |
13 years ago |
1 file, +74, -0 |
| 2cc61936 |
gobex: add unit test for GET request with SRM and SRMP additional wait |
Luiz Augusto von Dentz |
13 years ago |
1 file, +72, -0 |
| 2951b0d6 |
gobex: add unit test for GET response with SRM and SRMP wait |
Luiz Augusto von Dentz |
13 years ago |
1 file, +84, -0 |
| d3f6db2a |
gobex: add unit test for PUT response with SRM and SRMP wait |
Luiz Augusto von Dentz |
13 years ago |
1 file, +86, -1 |
| d4395a7e |
gobex: add unit test for PUT request with SRM and SRMP wait |
Luiz Augusto von Dentz |
13 years ago |
1 file, +66, -0 |
| 4c305704 |
gobex: add unit test for GET request with SRM |
Luiz Augusto von Dentz |
13 years ago |
1 file, +65, -0 |
| f2da5d46 |
gobex: add unit test for PUT response with SRM |
Luiz Augusto von Dentz |
13 years ago |
2 files, +100, -0 |
| 5dbde086 |
gobex: add unit test for GET response with SRM enable |
Luiz Augusto von Dentz |
13 years ago |
1 file, +90, -0 |
| c11d66be |
gobex: introduce g_obex_get_rsp_pkt
g_obex_get_rsp_pkt takes a response packet which sometimes is more
convenient for adding headers. |
Luiz Augusto von Dentz |
13 years ago |
2 files, +27, -12 |
| fc12e4ca |
gobex: add unit test for GET request with SRM and SRMP wait |
Luiz Augusto von Dentz |
13 years ago |
1 file, +70, -0 |
| 34680daa |
gobex: fix unit test when using SOCK_SEQPACKET
Now that SRM is automatically configured when the transport type is
SOCK_SEQPACKET all tests that uses this transport are already testing
SRM so there is no need to keep adding the headers manually.
In addition to that remove the tests for SRM using SOCK_STREAM since
those are currently not supported without including the headers. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +48, -265 |
| 26ce1d48 |
gobex: tools: Fix test-client to use ERTM while on packet mode
OBEX should only be used with ERTM over L2CAP and set MTU properly |
Luiz Augusto von Dentz |
13 years ago |
1 file, +45, -15 |
| cd3e6c9c |
gobex: add unit test for PUT request with SRM |
Luiz Augusto von Dentz |
13 years ago |
2 files, +68, -3 |
| 80c602ba |
gobex: add unit test for GET request with random data |
Luiz Augusto von Dentz |
13 years ago |
1 file, +62, -0 |
| 1e5b2ca1 |
gobex: add unit test for PUT response with random data |
Luiz Augusto von Dentz |
13 years ago |
1 file, +89, -0 |