Laurent Pelecq
1139ff7080
Add tcp communication
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
fe74259e43
Fix documentation
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
883e491a7f
Add all requests in AsyncClient.
...
* Simplify fifo tests with tempfile.
* Test getter in async fifo tests.
2 years ago
Laurent Pelecq
7c8874237d
Add AsyncClient in documentation
2 years ago
Laurent Pelecq
ec1b1aca51
New AsyncClient class.
...
* Only few commands are implemented.
* Example async_mio_loop added.
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
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
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
837a84950c
More tests get/set language, rate, ...
3 years ago
Laurent Pelecq
ca890b48e4
Using new type ClientName to create client.
3 years ago
Laurent Pelecq
da3f295f96
Fix type ClientTarget. Move basic types in types.rs.
3 years ago
Laurent Pelecq
0c7bf4f113
move client tests in integration tests
3 years ago
Laurent Pelecq
5a656d5d27
add all commands except notification and history, and no tests
3 years ago
Laurent Pelecq
c6527cb793
add sample in module documentation
3 years ago
Laurent Pelecq
5939548b69
fix speak, add documentation.
3 years ago
Laurent Pelecq
aa73dab21b
add speak and unit tests for the client
3 years ago
Laurent Pelecq
cab51e0fc6
add tests for unix client
3 years ago
Laurent Pelecq
0914f8b191
initial implementation to connect and quit
3 years ago