Laurent Pelecq
c9c80a1b6c
Fix compilation on non-unix platforms
2 years ago
Laurent Pelecq
c67bab22d9
Fix lint warnings in tests
2 years ago
Laurent Pelecq
1139ff7080
Add tcp communication
2 years ago
Laurent Pelecq
14e372e2e8
Move the test server logic outside the unix server implementation
2 years ago
Laurent Pelecq
a827aa06a6
Rename test server to UnixServer
2 years ago
Laurent Pelecq
4619b2c57f
Rename test Server to UnixServer
2 years ago
Laurent Pelecq
f55ac7aa69
Remove unused dependency on libc
2 years ago
Laurent Pelecq
7bc9b0ef22
Remove unnecessary clone in tests.
2 years ago
Laurent Pelecq
155a5dc1f1
Add history commands
2 years ago
Laurent Pelecq
c71698bda8
Implement history_get_client_id
2 years ago
Laurent Pelecq
4528d9c407
Fix response type and remove errors that can be mapped to io::Error.
2 years ago
Laurent Pelecq
9e4b09d96d
Implement history get client list.
2 years ago
Laurent Pelecq
1a2e7fc145
Change MessageId to u32 instead of String.
2 years ago
Laurent Pelecq
3e1a2e0cdc
Add synchronous history commands.
...
* Add commands history_get_clients, ...
* Change type of length from u16 to u32.
2 years ago
Laurent Pelecq
c67a79f3f5
Add history commands and fix types.
...
* Add history commands, not implemented.
* Add types for history commands.
* Fix i8 instead of u8 for rate, pitch and volume.
* Use u16 for length in commands.
2 years ago
Laurent Pelecq
2ed0db35c0
Update readme.
2 years ago
Laurent Pelecq
de5ce128cb
Change AsyncClient to QueuedClient to use with different polling mechanism.
...
* When compiled without mio, QueuedClient returns the raw fd.
* When compiled with mio, there is a register method.
2 years ago
Laurent Pelecq
b5ec9e37ad
Allow to see the last request in async and pop it.
2 years ago
Laurent Pelecq
fe74259e43
Fix documentation
2 years ago
Laurent Pelecq
3622313d78
Fix one clippy warning
2 years ago
Laurent Pelecq
b9b4a70801
Fix examples
2 years ago
Laurent Pelecq
f662405997
Move generic methods send and receive from AsyncClient to Client.
...
* Generic methods can be used in the synchronous API. It gives the choice to use
either specific calls or the generic ones.
* AsyncClient consists in a simple queue of requests.
* Getters only return the generic Response::Get. Callers must convert if it's an
integer.
2 years ago
Laurent Pelecq
fad9440145
Minor version for release
2 years ago
Laurent Pelecq
ea75e00edc
Add missing tests changes.
2 years ago
Laurent Pelecq
883e491a7f
Add all requests in AsyncClient.
...
* Simplify fifo tests with tempfile.
* Test getter in async fifo tests.
2 years ago
Laurent Pelecq
c0f0b69dd8
Don't reexport Source
2 years ago
Laurent Pelecq
7c8874237d
Add AsyncClient in documentation
2 years ago
Laurent Pelecq
1b64550591
Fix version in README
2 years ago
Laurent Pelecq
ec1b1aca51
New AsyncClient class.
...
* Only few commands are implemented.
* Example async_mio_loop added.
2 years ago
Laurent Pelecq
eb4fac99ba
Fix readme example
2 years ago
Laurent Pelecq
5cc696a8b9
Rename FifoBuilder to Builder
...
Builder is not reexported in lib.rs. Module fifo must be imported instead.
2 years ago
Laurent Pelecq
b3dd02603a
Fix send_char and rename error NoLine to TooFewLines
2 years ago
Laurent Pelecq
a2ad2634d9
Add constants for events
2 years ago
Laurent Pelecq
bf33d18bb2
Use log::debug in debug mode to trace communication with server
2 years ago
Laurent Pelecq
c45bb7daa7
Fix minor clippy warnings
2 years ago
Laurent Pelecq
39c2317de9
Test both synchronous and asynchronous API in pipeline
2 years ago
Laurent Pelecq
a186c456db
Dual synchronous and asynchronous API.
...
* Calls have been separate in a "send" and a "receive" to have the same methods in both modes.
* Asynchrone API is enabled with feature "async-mio".
2 years ago
Laurent Pelecq
58b1d5513f
Both sync and async tests pass
2 years ago
Laurent Pelecq
28c3533628
Simplify fifo test by giving the question as a string instead of an array
2 years ago
Laurent Pelecq
aff43c6147
Add error NotReady for asynchronous mode
2 years ago
Laurent Pelecq
4f9f0fe9dc
Change some method names
2 years ago
Laurent Pelecq
73b2531c4f
Dual synchronous and asynchronous API
...
Tests don't work in async mode
2 years ago
Laurent Pelecq
add553a270
Update readme
...
* Direct link to documentation.
* Todo list of features
2 years ago
Laurent Pelecq
64f37c1e9c
Add link in readme to documentation and crates.io
2 years ago
Laurent Pelecq
f1e9f9ffbc
Add repository in Cargo.toml
2 years ago
Laurent Pelecq
40095d578c
Fix readme for first release
2 years ago
Laurent Pelecq
6154769db2
disable test on standard socket if XDG not available
2 years ago
Laurent Pelecq
ced77a3f13
add readme and license
2 years ago
Laurent Pelecq
855b0c5af0
add notifications
2 years ago
Laurent Pelecq
a077ae1f38
implement example list
2 years ago