Titouan Rigoudy
7bb290f0ef
Introduce ProtoEncodeError and use it in ProtoEncoder.
Tests are not fixed yet.
5 years ago
Titouan Rigoudy
c9ffdc5392
Introduce ProtoDecodeError and use it in ProtoDecoder.
5 years ago
Titouan Rigoudy
468c404765
Simplify ProtoDecoder by removing dependency on the bytes crate.
Improve decoding error messages by annotating them with the position
at which the error was encountered. This could use some improvement
in a follow-up by introducing a specific Error type instead of
piggy-backing onto std::io::Error.
It is easier and more generically useful to accept any byte slice
as a buffer. In addition our zero-copy use of the underlying buffer
does not align particularly well with std::io::Read, so we move away
from std::io::Cursor as well.
5 years ago
Titouan Rigoudy
6dee714bfd
Run cargo fmt.
6 years ago
Titouan Rigoudy
f78448d3e8
Upgrade to Rust 2018 edition.
6 years ago
Titouan Rigoudy
c48673c390
Introduce ProtoDecoder instead of extending Buf trait.
7 years ago
Titouan Rigoudy
585e9a5873
Fix use declarations in tests.
7 years ago
Titouan Rigoudy
da6aa38593
Run rustfmt.
7 years ago
Titouan Rigoudy
f9de193b02
Fix unused imports.
7 years ago
Titouan Rigoudy
5a980dbba1
Replace ProtoDecode with Decode, remove ProtoDecoder.
7 years ago
Titouan Rigoudy
766d11d564
Remove DecodeError, use io::Error instead.
7 years ago
Titouan Rigoudy
1848872ccc
Implement Proto{De,En}code for WishlistIntervalResponse.
7 years ago
Titouan Rigoudy
d3ce706db6
Implement Proto{De,En}code for UserStatusResponse.
7 years ago
Titouan Rigoudy
ddf0971984
Implement Proto{De,En}code for UserInfoResponse.
7 years ago
Titouan Rigoudy
535fec66c9
Implement Proto{De,En}code for RoomUserLeftResponse.
7 years ago
Titouan Rigoudy
babead97ab
Use field-init shorthand when constructing proto messages.
7 years ago
Titouan Rigoudy
1056ff5811
Implement Proto{De,En}code for RoomUserJoinedResponse.
7 years ago
Titouan Rigoudy
a40af7ba62
Implement Proto{De,En}code for RoomTickersResponse.
7 years ago
Titouan Rigoudy
83a1364d6d
Implement Proto{De,En}code for RoomMessageResponse.
7 years ago
Titouan Rigoudy
2dec995b48
Implement Proto{De,En}code for RoomListResponse.
7 years ago
Titouan Rigoudy
b5de269c8f
Implement Proto{De,En}code for RoomLeaveResponse.
7 years ago
Titouan Rigoudy
d458e10001
Add name field to User struct.
7 years ago
Titouan Rigoudy
7008d6eee9
Move User struct to proto module.
7 years ago
Titouan Rigoudy
2118586fee
Implement ProtoDecode for RoomJoinResponse.
7 years ago
Titouan Rigoudy
25a3250667
Implement ProtoEncode for RoomJoinResponse.
7 years ago
Titouan Rigoudy
a62b73a752
Run cargo fmt.
7 years ago
Titouan Rigoudy
13b1687a1a
Implement Proto{De,En}code for PrivilegedUsersResponse.
7 years ago
Titouan Rigoudy
5dd29e2b3c
Implement Proto{De,En}code for PeerAddressResponse.
7 years ago
Titouan Rigoudy
142f50f530
Implement Proto{De,En}code for ParentMinSpeedResponse.
7 years ago
Titouan Rigoudy
5375508038
Implement Proto{De,En}code for ParentMinSpeedResponse.
7 years ago
Titouan Rigoudy
b84d75a731
Implement Proto{De,En}code for LoginResponse.
7 years ago
Titouan Rigoudy
01472b1b69
Derive Eq for ServerResponse and use it in tests.
7 years ago
Titouan Rigoudy
a4bc28fc93
Implement Proto{De,En}code for FileSearchResponse.
7 years ago
Titouan Rigoudy
db32e8a9e5
Implement Proto{De,En}code for ConnectToPeerResponse.
7 years ago
Titouan Rigoudy
0854c91d4e
Add skeleton implementations of Proto{De,En}code for ServerResponse.
7 years ago
Titouan Rigoudy
fbaa25d57e
Run (deprecated, old, stable-compatible) rustfmt.
7 years ago
Titouan Rigoudy
4bdab9bd32
Add FileSearchRequest, Response.
9 years ago
Titouan Rigoudy
332a654a87
Implement most of the NAT traversal protocol, still no listening port.
9 years ago
Titouan Rigoudy
12e7e01009
Add UserInfoResponse, both proto and control sides.
9 years ago
Titouan Rigoudy
2c7b0bb2bc
Change Packets to not special-case the code header.
9 years ago
Titouan Rigoudy
1caed415af
Use read_value and write_value in packet read/write macros.
9 years ago
Titouan Rigoudy
0bd1485296
Split MutPacket out of Packet, add OutBuf.
9 years ago
Titouan Rigoudy
a44713473a
Remove read/write_port and comment proto::packet.
9 years ago
Titouan Rigoudy
d59ac09ca0
Use ReadFromPacket and WriteToPacket traits to simplify packet I/O.
9 years ago
Titouan Rigoudy
402e5a7619
Rename FromPacket to ReadFromPacket and move traits to packet.
9 years ago
Titouan Rigoudy
a5654eddc9
Add RoomTickersResponse.
9 years ago
Titouan Rigoudy
083459755e
Use new try_from_packet! macro in ServerResponse::from_packet.
9 years ago
Titouan Rigoudy
5b42c64f5a
Rename UserJoinedRoom to RoomUserJoined.
9 years ago
Titouan Rigoudy
4efd653431
Add RoomUserLeftResponse.
9 years ago
Titouan Rigoudy
99f298f0c8
Add proto::UserNotFoundRequest/Response.
9 years ago