mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
doc: small fixes
This commit is contained in:
@@ -6,7 +6,7 @@ network. An inbound node receives connections. An outbound node makes
|
||||
connections.
|
||||
|
||||
The behavior of these nodes is defined in what is called a
|
||||
[Session](https://github.com/darkrenaissance/darkfi/blob/master/src/net/session/mod.rs#L93).
|
||||
[Session](https://github.com/darkrenaissance/darkfi/blob/master/src/net/session/mod.rs#L111).
|
||||
There are four types of sessions: `Manual`, `Inbound`, `Outbound` and `SeedSync`.
|
||||
|
||||
There behavior is as follows:
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
|
||||
# Ircd Specification
|
||||
|
||||
Ircd use [Hashchain](https://darkrenaissance.github.io/darkfi/misc/hashchain/hashchain.html)
|
||||
to maintain the synchronization between nodes. The messages are handled as
|
||||
events in Ircd network.
|
||||
|
||||
|
||||
## PrivMsgEvent
|
||||
|
||||
This is the main message type inside Ircd. The `PrivMsgEvent` is an
|
||||
@@ -109,18 +104,19 @@ The channel `Subscription<ClientSubMsg>` used by the server to notify
|
||||
|
||||
### ClientSubMsg
|
||||
|
||||
```rust
|
||||
enum ClientSubMsg {
|
||||
Privmsg(`PrivMsgEvent`),
|
||||
Config(`IrcConfig`),
|
||||
}
|
||||
```
|
||||
|
||||
### NotifierMsg
|
||||
|
||||
```rust
|
||||
enum NotifierMsg {
|
||||
Privmsg(`PrivMsgEvent`),
|
||||
UpdateConfig,
|
||||
}
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user