Commit Graph
5 Commits
Author SHA1 Message Date
moznion 48a9c56e3f Set a couple of parameters by setter, instead of function parameters 2021-01-03 11:34:05 +09:00
moznion 88e01fc828 Separate server bootstrap sequence between listen() and run()
Initially it uses a channel that given through the `run()` parameter to notify when a server becomes ready,
but that doesn't work because it never run the procedure until `await` called.
This means if it calls `await`, it blocks the procedure so it cannot consume a channel simultaneously.
Thus, it separates bootstrap sequence between `listen()` and `run()`.
`listen()`: Start UDP listening. After this function call is finished, the RADIUS server is ready.
`run()`: Start a loop to handle the RADIUS requests.
2021-01-03 11:19:28 +09:00
moznion 2f2c344f2b Restructure 2020-12-12 13:38:40 +09:00
moznion 8b54927110 Remove PartialEq from error enum 2020-12-12 00:10:20 +09:00
moznion 60b67cc2f1 Add E2E test 2020-12-08 00:40:19 +09:00