Titouan Rigoudy
30044af1c6
Move join() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
12707418d3
Move start_joining() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
a30c2c0fa8
Wrap RoomState in RoomEntry inside map.
2 years ago
Titouan Rigoudy
eff56ac051
Move tests from room/map.rs to room/state.rs.
2 years ago
Titouan Rigoudy
4c9b016d61
Rename Message to RoomMessage.
2 years ago
Titouan Rigoudy
15f279e6bc
Rename Visibility to RoomVisibility.
2 years ago
Titouan Rigoudy
d9be1d5f15
Rename Membership to RoomMembership.
2 years ago
Titouan Rigoudy
138f305da9
Rename Room to RoomState.
2 years ago
Titouan Rigoudy
e773b1500f
Introduce RoomNotFoundError.
2 years ago
Titouan Rigoudy
254bd2bce7
Use RoomMap::insert() in regular builds.
2 years ago
Titouan Rigoudy
8afdc9854b
Move Room et al. to room/state.rs.
2 years ago
Titouan Rigoudy
ef34f6d626
Introduce room submodule.
2 years ago
Titouan Rigoudy
214278b418
Handle messages in dispatcher, remove Job abstraction.
Introduce dependency injection to Dispatcher to allow testing.
TODO:
- introduce room/ submodule, move room.rs and room_event.rs in there
- dependency injecton for other handlers
3 years ago
Titouan Rigoudy
75d402bffc
Run cargo update.
2 years ago
Titouan Rigoudy
8d0e138125
Run cargo fmt.
3 years ago
Titouan Rigoudy
3b28f5b60b
Run cargo update.
3 years ago
Titouan Rigoudy
29577b1886
Handle peer address response.
4 years ago
Titouan Rigoudy
82f4330545
Start handling peer connect request.
4 years ago
Titouan Rigoudy
146278cd2a
Allow accepting incoming reverse peer connections.
4 years ago
Titouan Rigoudy
f18e48774d
Allow establishing reverse peer connections.
4 years ago
Titouan Rigoudy
902a5d1b0e
Implement receiving peer connections.
4 years ago
Titouan Rigoudy
d21ffc29d9
Clean up unused solstice-proto dependencies.
4 years ago
Titouan Rigoudy
be6319177f
Remove unused async-stream dependency.
4 years ago
Titouan Rigoudy
8da9fe9d9b
Implement direct peer connection.
4 years ago
Titouan Rigoudy
5418a16cf9
Define PeerConnectionType enum.
4 years ago
Titouan Rigoudy
b822d30c1e
Remove useless dependency from proto crate.
4 years ago
Titouan Rigoudy
c05ed06809
Rename control::ws module to control::listener.
4 years ago
Titouan Rigoudy
35da08bf5c
Handle user list request.
4 years ago
Titouan Rigoudy
cbc9777be0
Move user name from State to Context.
4 years ago
Titouan Rigoudy
fd8bed689d
Define a constant for the channel buffer size.
4 years ago
Titouan Rigoudy
daa2a71b5b
Remove superfluous `use` statements.
4 years ago
Titouan Rigoudy
e5da19c111
Nit: add use declarations to main.
4 years ago
Titouan Rigoudy
c758eed820
Require -c config file command-line argument.
4 years ago
Titouan Rigoudy
5d86a29e96
Run in async mode by default.
4 years ago
Titouan Rigoudy
5bc80be02a
Implement reading configs from toml files.
4 years ago
Titouan Rigoudy
c46876a2b4
Add simple static server binary.
4 years ago
Titouan Rigoudy
c737a6b892
Extract testing server to a new crate.
4 years ago
Titouan Rigoudy
b4d1bf4069
Document plan for testing server module.
4 years ago
Titouan Rigoudy
2b468f1860
Test read error during login.
4 years ago
Titouan Rigoudy
2b4c7bb667
Test unexpected response during login.
4 years ago
Titouan Rigoudy
087fc96290
Add test for failed login.
4 years ago
Titouan Rigoudy
cfec993f66
Remove dependency on testing server from solstice-proto.
4 years ago
Titouan Rigoudy
49347bc9c6
Remove Send bound from ClientHandler trait.
4 years ago
Titouan Rigoudy
f972cd5ae2
Send message timestamp to controller client.
4 years ago
Titouan Rigoudy
1b5928a54a
Suppress last warnings.
4 years ago
Titouan Rigoudy
bb73e71da2
Remove macro_use for log crate.
4 years ago
Titouan Rigoudy
236ccc56a1
Add timestamp to room messages.
Also introduce an injection seam for the system clock.
4 years ago
Titouan Rigoudy
b62022b864
Simplify MessageHandler for single-threaded use.
4 years ago
Titouan Rigoudy
794cba3fe4
Remove executor, exedute jobs single-threaded.
4 years ago
Titouan Rigoudy
2cf82bb77b
Upgrade to 2021 edition.
4 years ago